# ecchi-api

> Memberi gambar henta* secara random

Latest version **1.0.4** (published 2023-07-25) · ISC license · 0 weekly downloads

## Install

```sh
npm install ecchi-api
pnpm add ecchi-api
yarn add ecchi-api
bun add ecchi-api
```

## 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 | 2023-07-25 |
| First published | 2023-07-25 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Zeev-x |
| Maintainers | zeevalya |

## Links

- npm: https://www.npmjs.com/package/ecchi-api
- Repository: https://github.com/Zeev-x/ecchi-api
- Homepage: https://github.com/Zeev-x/ecchi-api#readme
- Issues: https://github.com/Zeev-x/ecchi-api/issues
- npm.io page: https://npm.io/package/ecchi-api

## Dependencies (1)

- [axios](https://npm.io/package/axios.md) ^1.4.0

## Recent versions

- 1.0.4 (latest) — 2023-07-25
- 1.0.3 — 2023-07-25
- 1.0.2 — 2023-07-25
- 1.0.0 — 2023-07-25

## README

# Ecchi

Memberikan gambar henta* dan cosplay secara acak

## Example henta*

```
const ecchi = require("ecchi-api");

ecchi.hentai()
  .then(result => {
    console.log(result);
  });
```

## Example cosplay

```
const ecchi = require("ecchi-api");

ecchi.cosplay()
  .then(result => {
    console.log(result);
  });
```

## Example donghua

```
const ecchi = require("ecchi-api");

ecchi.donghua()
  .then(result => {
    console.log(result);
  });
```

## Contoh kode lengkap

Membutuhkan npm ```express``` dan ```readline```.

```
const express = require("express");
const ecchi = require("ecchi-api");
const readline = require("readline").createInterface({
  input : process.stdin,
  output : process.stdout
});

const app = express();

readline.question("Masukan port : ",port => {
  app.listen(port,()=> {
    console.log("Website berjalan di http://localhost:"+port);
  });
  readline.close();
});

app.get("/",async (req,res) => {
  ecchi.hentai().then(data => {
    var web = `<center>
                 <br><br>
                 <h1>Ecchi image</h1><br>
                 <a href="${data.url}"><img src="${data.url}" height="720px"></a><br>
               </center>`;
    res.send(web);
  });
});

app.get("/cosplay",async (req,res) => {
  ecchi.cosplay().then(data => {
    var web = `<center>
                 <br><br>
                 <h1>Ecchi image</h1><br>
                 <a href="${data.url}"><img src="${data.url}" height="720px"></a><br>
               </center>`;
    res.send(web);
  });
});

app.get("/donghua",async (req,res) => {
  ecchi.donghua().then(data => {
    var web = `<center>
                 <br><br>
                 <h1>Ecchi image</h1><br>
                 <a href="${data.url}"><img src="${data.url}" height="720px"></a><br>
               </center>`;
    res.send(web);
  });
});
```

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