codesthenos-first-npm-package
v2.0.1
Published
`npm i codesthenos-first-npm-package`
Downloads
8
Readme
My first npm package from 0
How to use it
npm i codesthenos-first-npm-package
It has a todo-list webcomponent
How to use it
- Create an
index.htmlthat contains this:
<todo-list title="TODO APP FROM NPM" button-label="DELETE DONE"></todo-list>
<script
type="module"
src="https://cdn.skypack.dev/codesthenos-first-npm-package"
></script>
<!-- use the above script or one of these 2 variations
OR
<script type="module" src="./script.js"></script>
OR
<script type="module">
import 'https://cdn.skypack.dev/codesthenos-first-npm-package'
</script>
-->- If use the OR option, create a
script.jswith this:
import './node_modules/codesthenos-first-npm-package/index.js'