Socket
Socket
Sign inDemoInstall

animu.js

Package Overview
Dependencies
1
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.4 to 0.1.0

lib/core/AnimuClient.js

33

examples/index.js

@@ -1,9 +0,26 @@

const { CFClient, version } = require('../lib/index');
const client = new CFClient('animu.js-example/Production/0.0.1');
const Animu = require('../lib');
const client = new Animu.Client('animu.js/v0.0.0/Example');
client.getAnimu().then((body) => {
console.log(`[VERSION ${version}]: Here is your anime: ${body.url}`);
});
client.getHentai().then((b) => {
console.log(`[VERSION ${version}]: Here is your hentai: ${b.url}`);
});
client.anime()
.then((result) => console.log(result.url))
.catch((error) => console.error(error));
client.hentai()
.then((result) => console.log(result.url))
.catch((error) => console.error(error));
client.dva()
.then((result) => console.log(result.url))
.catch((error) => console.error(error));
client.trap()
.then((result) => console.log(result.url))
.catch((error) => console.error(error));
client.hug()
.then((result) => console.log(result.url))
.catch((error) => console.error(error));
client.baguette()
.then((result) => console.log(result.url))
.catch((error) => console.error(error));
module.exports = {
CFClient: require('./core/CFClient'),
Client: require('./core/AnimuClient'),
Constants: require('./util/Constants'),
version: require('../package.json').version
};
{
"name": "animu.js",
"description": "An anime API wrapper.",
"version": "0.0.4",
"description": "animu.js is an API Wrapper that handles requests to CF's API~",
"version": "0.1.0",
"dependencies": {
"snekfetch": "3.6.4"
"snekfetch": "4.0.4"
},
"author": "August (Chris)",
"license": "MIT",
"bugs": {
"url": "https://github.com/ohlookitsAugust/animu.js/issues"
},
"scripts": {
"test": "cd examples && node index.js"
},
"repository": {
"type": "git",
"url": "https://github.com/ohlookitsAugust/animu.js"
},
"main": "./lib/index.js"
}
# animu.js
animu.js is a Node.js wrapper for my friend [CF](https://computerfreaker.cf)'s Anime API.
[**`animu.js`**](https://npmjs.com/package/animu.js) is an API Wrapper that handles requests to [CF](https://computerfreaker.cf)'s API~
## Examples
```js
const { CFClient } = require('animu.js');
const client = new CFClient('animu.js/Production/v0.0.1');
**You can add `animu.js` as an dependency by:**
```sh
# Yarn
$ yarn add animu.js
client.getAnimu().then((b) => {
console.log(`Here is your animu: ${b.url}`);
});
client.getHentai().then((body) => {
console.log(`Hentai 4 u: ${body.url}`);
});
```
## Releases
* v0.0.1 => Initial Release
* v0.0.2 =>
* `CFClient#getHentai` function;
* Fixed entry point after installing;
* If no User Agent, uses the default `animu.js ({GITHUB} v0.0.2)`
* v0.0.3 =>
* Basically v0.0.2
* v0.0.4 =>
* Update the endpoints
# NPM
$ npm install animu.js
```

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc