# @ngochipx/responsive-image

> Tool resize images based on express and imageMagick.

Latest version **1.0.4** (published 2020-06-28) · 0 weekly downloads

## Install

```sh
npm install @ngochipx/responsive-image
pnpm add @ngochipx/responsive-image
yarn add @ngochipx/responsive-image
bun add @ngochipx/responsive-image
```

## 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.4 |
| Published | 2020-06-28 |
| First published | 2020-06-24 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 4.2 KB |
| Known vulnerabilities | 0 (+5 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | ngochip |

## Links

- npm: https://www.npmjs.com/package/@ngochipx/responsive-image
- npm.io page: https://npm.io/package/@ngochipx/responsive-image

## Dependencies (3)

- [debug](https://npm.io/package/debug.md) ^4.1.1
- [sharp](https://npm.io/package/sharp.md) ^0.25.4
- [browser-detect](https://npm.io/package/browser-detect.md) ^0.2.28

## Recent versions

- 1.0.4 (latest) — 2020-06-28
- 1.0.3 — 2020-06-28
- 1.0.2 — 2020-06-28
- 1.0.1 — 2020-06-25
- 1.0.0 — 2020-06-24

## README

# Welcome to @ngochipx/responsive-image!
Tool resize images based on express and imageMagick.

# Install
>yarn add @ngochipx/responsive-image

# Using

### init:
```javascript
const ResponsiveImage = require('@ngochipx/responsive-image')
...
Route.get("/thumb", async ({ request, response }) => {
        if (request.query.src) {
            let src = request.query.src.replace("http://localhost:3000", __ROOTDIR__ +'/public')
            console.log(src)
            let image = new ResponsiveImage(src);
            image.thumb(request, response);
            return false;
         } else {
            response.sendStatus(403);
         }
    })
```

NgocHip

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