1.0.0 • Published 3 years ago

is-zumrudu-anka v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

Create and Publish NPM Package

Steps

  • Create a github repository for your package and clone to your local machine
  • Go to the repository and create package.json file with run npm init and set your options whatever you want
  • Create js file for your package
  • Run npm link when on your package folder.

    npm link : First, npm link in a package folder will create a symlink in the global folder {prefix}/lib/node_modules/ that links to the package where the npm link command was executed. It will also link any bins in the package to {prefix}/bin/{name}. Note that npm link uses the global prefix (see npm prefix -g for its value). Next, in some other location, npm link package-name will create a symbolic link from globally-installed package-name to node_modules/ of the current folder. Note that package-name is taken from package.json, not from the directory name.

  • Create test directory in a different directory than your package directory
  • Go to the test directory and run npm link <your-package-name>