Skip to content

Commit

Permalink
Added usage for NPM in the Readme file
Browse files Browse the repository at this point in the history
  • Loading branch information
devbyray committed Jan 5, 2018
1 parent 4df2284 commit 7b87492
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ supporting just the img-tag without responsive parts. This plugin is supposed to

## Installation

#### file include
### file include
You can download the latest [release](https://github.com/fhopeman/justlazy/releases) and include
the `justlazy.js` file as follows in your page:
```
Expand All @@ -30,10 +30,31 @@ If you want to use the lazy spinner, following css file is needed:
<link href="stylesheets/justlazy.css" type="text/css" rel="stylesheet">
```

#### npm
### NPM
```
$ npm install justlazy
```

#### Usage

Import the CSS file:

```
@import "justlazy/src/justlazy.css";
```

Import/require the JavaScript file:

```
var justLazy = require('justlazy/src/justlazy.js');
```

Or

```
import justLazy from 'justlazy/src/justlazy.js';
```

## Contributing
Just feel free to contribute ..

Expand Down

0 comments on commit 7b87492

Please sign in to comment.