Nothing Special   »   [go: up one dir, main page]

Skip to content

hchiam/npm-package-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

NPM Package Example

Just one of the things I'm learning. https://github.com/hchiam/learning

This repo is a fork of https://github.com/ktsn/npm-package-example

To publish your own NPM package:

  1. Fork this repo or click "Use this template" (in GitHub, see the green button above).
  2. Edit package.json fields (e.g., name, version, author, description, etc.).
  3. Makes sure the main field in package.json points to the entry point index.js, or whatever you file/filename you choose.
  4. The unpkg field is for browser build.
  5. In CLI: login to NPM with npm login command.
  6. npm publish

Example published package:

Live example usage (using browser build):

https://codepen.io/hchiam/pen/VwwgZEm

You might also like:

https://github.com/hchiam/learning-github-packages

About

Example of npm package

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%