Larry Davis a1182e1c3a Added README and simplify inplace example, related to #23 10 years ago
..
README.md a1182e1c3a Added README and simplify inplace example, related to #23 10 years ago
file.txt a1182e1c3a Added README and simplify inplace example, related to #23 10 years ago
gulpfile.js a1182e1c3a Added README and simplify inplace example, related to #23 10 years ago
package.json 2cb5d46eaf Added inplace replace example, related to #23 10 years ago

README.md

Replace file contents in place

This example shows you how to replace file contents in place.

Running the example

Type the following commands from the root of this repository:

npm install # install the plugin's dependencies
cd examples/inplace
npm install # install the example's dependencies
cat file.txt # See original file contentes
gulp
cat file.txt # See changed file contents

You should see something like this:

$ cat file.txt
The roof is on fire!
$ gulp
[gulp] Starting 'replace'...
[gulp] Finished 'replace' after 19 ms
[gulp] Starting 'default'...
[gulp] Finished 'default' after 8.01 μs
$ cat file.txt
The world is on fire!