111-hello-world

learn how to create publih and use a npm package

Usage no npm install needed!

<script type="module">
  import 11HelloWorld from 'https://cdn.skypack.dev/111-hello-world';
</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 111-hello-world

more

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