There are broadly 4 methods of installing LayJS.
Using npm, install the "lay-js" package by pasting the below command into your shell:
npm install lay-js
And then included using the following way:
<script type="text/javascript" src="node_modules/lay-js/LAY.js"></script>
or for the minified version:
<script type="text/javascript" src="node_modules/lay-js/LAY.min.js"></script>
Using bower, install the "LAY" package by pasting the below command into your shell:
bower install LAY
And then included using the following way:
<script type="text/javascript" src="bower_components/LAY/LAY.js"></script>
or for the minified version:
<script type="text/javascript" src="bower_components/LAY/LAY.min.js"></script>
Using Rawgit, LAY.js
and LAY.min.js
can be accessed using:
https://rawgit.com/LayJS/dist/master/LAY.js
https://rawgit.com/LayJS/dist/master/LAY.min.js
And then included using the following way:
<script type="text/javascript" src="https://rawgit.com/LayJS/dist/master/LAY.js"></script>
or for the minified version:
<script type="text/javascript" src="https://rawgit.com/LayJS/dist/master/LAY.min.js"></script>
Lastly, the LAY.js
and LAY.min.js
files can be directly downloaded and used from the distribution repository.