npm-package-example

March 30, 2018 ยท View on GitHub

Example of npm package.

  1. Create package.json and fill name and version field.
  2. Add your script and main field in package.json to point the entry point.
  3. You may want to fill unpkg field for browser build.
  4. Login to npm with npm login command.
  5. npm publish

You will see published package on:

  • https://www.npmjs.com/package/ktsn-npm-package-example
  • https://unpkg.com/ktsn-npm-package-example