1.0.5 • Published 4 years ago
js-stage v1.0.5
JS Stage
Description
This is a basic project template for creating and publishing an (Unscoped) npm package. To add organization or user scope, change the name in package.json from js-stage
to @scope/js-stage
Referenced article
https://itnext.io/step-by-step-building-and-publishing-an-npm-typescript-package-44fe7164964c
Published public npm package
https://www.npmjs.com/package/js-stage
Test before publishing
npm install full-path-to-package-directory
Signup for an npm user account
Login to your npm account
npm login
Create a new version of the package
npm version patch
Publish package
npm publish
This command will publish publicly for unscoped package, and privately for scoped package by default. To explicitly specifying the access level, use this command:
npm publish --access=public
Unpublish package (only works within 72 hours of the initial publish)
npm unpublish js-stage -f
How to install
npm install js-stage
How to use:
- Add
import {Greeter} from 'js-stage';
to the top of the file - Calling
Greeter("zakhan4")
returns"Hello zakhan4"