Skip to content

Commit 32fc14b

Browse files
committed
Update README.md
1 parent 5e649b3 commit 32fc14b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,16 +56,16 @@ Given the above data file here are the entries in `package.json` to run them:
5656

5757
```
5858
"scripts": {
59-
"copy": "node ./node_modules/typhonjs-npm-scripts-runner/scripts/runner.js .scriptdata copy.files.scripts",
60-
"runmult": "node ./node_modules/typhonjs-npm-scripts-runner/scripts/runner.js .scriptdata run.scripts"
59+
"copy": "node ./node_modules/typhonjs-npm-scripts-runner/scripts/runner.js .scriptdata copy.files.scripts '<optional custom message>'",
60+
"runmult": "node ./node_modules/typhonjs-npm-scripts-runner/scripts/runner.js .scriptdata run.scripts '<optional custom message>'"
6161
},
6262
```
6363

64-
For programmatic usage see the following example:
64+
For programmatic usage see the following example; you may include a 3rd string parameter for a custom message:
6565
```
6666
var runner = require('typhonjs-npm-scripts-runner');
6767
68-
runner.run('.scriptdata', 'copy.files.scripts');
68+
runner.run('.scriptdata', 'copy.files.scripts', '<optional custom message>');
6969
```
7070

7171
Please note that you can add comments to the script JSON data file.

0 commit comments

Comments
 (0)