Npm-star, stars, start and stop cli commands
In the previous tutorial we showed you how you can perform search operation on the npm registry using npm search, we also showed you how to prepare a package for publishing using the npm shrinkwrap.
In this tutorial, we will show you how to mark your favorite package, view starred packages, start a package and how to stop a package.
The npm star is used to mark your favorite packages.
npm star [<pkg>...] npm unstar [<pkg>...]
if you have interest in a package; you can star it. Starring a package indicates that you have interest in it. This action is taken as a positive way to show that care.
Unstarring a package indicates that you do not have interest or no longer have interest in the package.
This option is a Boolean type option, thus starring a package repeatedly does not have an additional effect.
This command is used to view the packages that have being marked as favorites.
npm stars [<user>]
This command enables you to quickly find all the packages that you have starred. This command can also enable you see the starred packages of another user.
Use the npm start to start a package.
npm start [-- <args>]
This will run an arbitrary command that is specified in the start property of its script object. If there is no start property specified on the scripts object, it runs node server.js
As of the [email protected], you can make use of custom arguments when executing scripts.
This command is used to stop a package.
npm stop [-- <args>]
This command will run the stop script that is provided by the package.
- New Content published on w3resource:
- Scala Programming Exercises, Practice, Solution
- Python Itertools exercises
- Python Numpy exercises
- Python GeoPy Package exercises
- Python Pandas exercises
- Python nltk exercises
- Python BeautifulSoup exercises
- Form Template
- Composer - PHP Package Manager
- PHPUnit - PHP Testing
- Laravel - PHP Framework