replace-in-file icon indicating copy to clipboard operation
replace-in-file copied to clipboard

A simple utility to quickly replace contents in one or more files

Results 33 replace-in-file issues
Sort by recently updated
recently updated
newest added

Bumps [kind-of](https://github.com/jonschlinkert/kind-of) from 6.0.2 to 6.0.3. Changelog Sourced from kind-of's changelog. [6.0.3] - 2020-01-16 Merge pull request #31 for issue #30 [6.0.0] - 2017-10-13 refactor code to be more performant...

dependencies

Bumps [glob-parent](https://github.com/gulpjs/glob-parent) from 5.1.1 to 5.1.2. Release notes Sourced from glob-parent's releases. v5.1.2 Bug Fixes eliminate ReDoS (#36) (f923116) Changelog Sourced from glob-parent's changelog. 5.1.2 (2021-03-06) Bug Fixes eliminate ReDoS...

dependencies

Hello Adam, Thanks for the great library, it's really useful. I'd like to mention one thing about its usage: when trying to perform replacements in big files (like hundreds of...

PR welcome
feature
feedback wanted

The `ToCallback` type definition indicates the second argument should be `string`, but actually the function takes the same shape as a [`String.prototype.replace` replacer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace#Specifying_a_function_as_a_parameter). Unfortunately, there's not a surefire way to...

help wanted
typescript

I've got some use cases where I need to know which file is currently handled by a custom processor. Unfortunately the filename is not passed but it's almost there (see...

index.js ``` const re = require('replace-in-file'); const path = require('path'); const fs = require('fs'); function replaceFoo() { const indexHtmlPath = path.join(__dirname, 'index.html'); const isIndexHtmlPathExist = fs.existsSync(indexHtmlPath); console.log(isIndexHtmlPathExist, 'isIndexHtmlPathExist') const option...

I think this one is just plain missing, right? Same for the array version of it? https://github.com/adamreisnz/replace-in-file#custom-processor https://github.com/adamreisnz/replace-in-file/blob/main/types/index.d.ts#L20-L31 ... and after a small patch attempt locally... probably also need to...

PR welcome
typescript

Hello! I'm running in to an issue when running a replace on Windows. I have tested on my local Mac and it works fine but on a Windows machine it...

Bumps [semver](https://github.com/npm/node-semver) from 5.7.1 to 5.7.2. Release notes Sourced from semver's releases. v5.7.2 5.7.2 (2023-07-10) Bug Fixes 2f8fd41 #585 better handling of whitespace (#585) (@​joaomoreno, @​lukekarrys) Changelog Sourced from semver's...

dependencies