table of contents
other versions
- buster-backports 7.4.0+ds-1~bpo10+2
- testing 7.5.2+ds-2
- unstable 7.5.2+ds-2
- experimental 7.6.3+ds-1
| NPM-SET-SCRIPT(1) | NPM-SET-SCRIPT(1) |
NAME¶
npm-set-script - Set tasks in the scripts section of package.jsonSynopsis¶
An npm command that lets you create a task in the scripts section of the package.json.npm set-script [<script>] [<command>]
Example:
- •
- npm set-script start "http-server ."
{
"name": "my-project",
"scripts": {
"start": "http-server .",
"test": "some existing value"
}
}
See Also¶
- npm help run-script
- npm help install
- npm help test
- npm help start
| January 2021 |