API
EXAMPLES
INSTALL
SOURCE
INSTALL

There are broadly 4 methods of installing LayJS.

(1) NPM

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>

(2) Bower

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>

(3) Rawgit

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>

(4) Direct Download

Lastly, the LAY.js and LAY.min.js files can be directly downloaded and used from the distribution repository.