167-hello-word

learn how to create publih and use a npm package

Usage no npm install needed!

<script type="module">
  import 67HelloWord from 'https://cdn.skypack.dev/167-hello-word';
</script>

README

167-hello-world

  • learn how to create publih and use a npm package

1 create the package

yarn init --yes

2 publish the package

npm login
npm publish

3 run the package

npx 167-hello-word

more

  • package.json->main->index.js
  • package.json->bin->cli