# img-lazy

> An image lazyload tool for web.

Latest version **1.0.2** (published 2018-07-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install img-lazy
pnpm add img-lazy
yarn add img-lazy
bun add img-lazy
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2018-07-26 |
| First published | 2018-07-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | tianwang |
| Maintainers | tianwang |
| Keywords | img-lazy, lazyload, lazy, image, img, web, js |

## Links

- npm: https://www.npmjs.com/package/img-lazy
- Repository: https://github.com/tianwang8090/img-lazy
- Homepage: https://github.com/tianwang8090/img-lazy#readme
- Issues: https://github.com/tianwang8090/img-lazy/issues
- npm.io page: https://npm.io/package/img-lazy

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.0.2 (latest) — 2018-07-26
- 1.0.1 — 2018-07-26
- 1.0.0 — 2018-07-26

## README

# img-lazy
website: [https://github.com/tianwang8090/img-lazy](https://github.com/tianwang8090/img-lazy)

An image lazyload tool for web.

## install & use

### install with npm or `srcipt` tag
`npm i lazy-img -S`   or    `<script src="https://unpkg.com/img-lazy"></script>`

### use
```html
<script src="https://unpkg.com/img-lazy"></script>

<!-- set the real img source value in 'data-src' -->
<img data-src="x.jpg">

```
```javascript
// with import
import lazyImg from "img-lazy";

lazyImg();
```

---
_Source: https://npm.io/package/img-lazy · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
