0.0.6 • Published 2 years ago

@hochun836/mini-package v0.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

mini-package

this is a package as small as possible

How to create your mini-package

mkdir mini-package && cd mini-package
npm init --scope=@your-scope
echo console.log("Hello World"); > index.js
node index.js // for test
notepad README.md // write some information

How to publish your mini-package

npm login
npm whoami // for test
npm publish --access public
  • if this package isn't published first time (without a git repository)
npm version <major | minor | patch>
npm publish
  • if this package isn't published first time (with a git repository)
git add .
git commit -m "<your-message>"
git log --oneline --all --graph // for check
npm version <major | minor | patch> // it will create a version commit and tag
git log --oneline --all --graph // for check
git push --follow-tags // push commits and tags
npm publish

How to unpublish your mini-package

npm unpublish @your-scope/mini-package -f
0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago

1.0.0

2 years ago