animu.js
Advanced tools
Comparing version 0.0.4 to 0.1.0
@@ -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
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
5435
9
96
3
11
1
+ Addedsnekfetch@4.0.4(transitive)
- Removedsnekfetch@3.6.4(transitive)
Updatedsnekfetch@4.0.4