MINI MINI MANI MO

Path : /opt/nvm/versions/node/v15.14.0/lib/node_modules/npm/man/man1/
File Upload :
Current File : //opt/nvm/versions/node/v15.14.0/lib/node_modules/npm/man/man1/npm-set-script.1

.TH "NPM\-SET\-SCRIPT" "1" "March 2021" "" ""
.SH "NAME"
\fBnpm-set-script\fR \- Set tasks in the scripts section of package\.json
.SS Synopsis
.P
An npm command that lets you create a task in the scripts section of the package\.json\.
.P
.RS 2
.nf
npm set\-script [<script>] [<command>]
.fi
.RE
.P
\fBExample:\fR
.RS 0
.IP \(bu 2
\fBnpm set\-script start "http\-server \."\fP

.RE
.P
.RS 2
.nf
{
  "name": "my\-project",
  "scripts": {
    "start": "http\-server \.",
    "test": "some existing value"
  }
}
.fi
.RE
.SS See Also
.RS 0
.IP \(bu 2
npm help run\-script
.IP \(bu 2
npm help install
.IP \(bu 2
npm help test
.IP \(bu 2
npm help start

.RE

OHA YOOOO