Installing Kinto.js
NodeJS
If you're using NodeJS and npm as a frontend package manager, you'll need NodeJS v0.12.x installed on your system. Then:
$ npm install kinto --save
Notes
Read more about how to build Kinto.js in the Contributing section.
Static assets
Dev and production ready assets are available in the gh-pages
branch of the repository. In general, you should download these files and ship them along your own projects, though you can also link them during development:
- Dev version, including source maps: kinto.js
- Production version, minified, no source maps: kinto.min.js
- Minimalist version, without polyfills kinto.noshim.js
Notes
Only stable tags are released as dist files; if you plan on using latest versions from master, you need to build them manually.
Subresource integrity
To make sure that you are using the right code when loading from a CDN, you can use subresource integrity with the hash provided below:
<script src="//npmcdn.com/kinto@X.Y.Z/dist/kinto.min.js"
integrity="sha384-<refer to the table below to retrieve the proper hash>"
crossorigin="anonymous">
</script>
Filename | Hash |
---|---|
kinto.js | sha384-sopYM7/KT6RQFPMKZsLOI4YNxFCDJqXR7fPq8EDecxaA8ae371Rew1rRxa1Ztlq9 |
kinto.min.js | sha384-34iNwNPw54OeR61rJM4yS0xpFfIBGltlcgFf87LDDsh4Ku8fKHS4OPam2MgTSwAh |
kinto.noshim.js | sha384-dZTeBoJewA8OhyojBwwY4HNAe1O+DpibSuCgZyYGJpYygR1SyfO7N/YmMUltArHd |