tinfoil
v0.0.15
Published
To compile the project, run:
Downloads
396
Readme
Compiling
To compile the project, run:
npm run build:browser
This will create a browser.js
file in the dist
folder.
Including the Script
Include the compiled script in your index.html
file as follows:
<script src="browser.js" data-param="tinfoil" async></script>
Testing
To test the compiled script:
- Move
index.html
andbrowser.js
to a new folder. - Open
index.html
in a web browser.
Publishing NPM Package
Follow these steps to publish the NPM package:
Bump the version number in
package.json
:"version": "0.0.XX"
Build the package:
npm run build
Publish the package:
npm publish
Updating js.tinfoil.sh
Go to the jsdelivr repo and follow the README there.