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.3 to 0.0.4

6

lib/core/CFClient.js

@@ -28,3 +28,3 @@ const { version } = require('../index');

*/
this.baseURL = 'https://computerfreaker.cf/api';
this.baseURL = 'https://api.computerfreaker.cf';

@@ -49,3 +49,3 @@ /**

{
return this._snek.get(`${this.baseURL}/anime/read.php`)
return this._snek.get(`${this.baseURL}/v1/anime`)
.set('User-Agent', this.userAgent || `animu.js (v${version} https://github.com/CFCorp/animu.js)`)

@@ -61,3 +61,3 @@ .then((result) => res(result.body))

{
return this._snek.get(`${this.baseURL}/hentai/read.php`)
return this._snek.get(`${this.baseURL}/v1/hentai`)
.set('User-Agent', this.userAgent || `animu.js (v${version} https://github.com/CFCorp/animu.js)`)

@@ -64,0 +64,0 @@ .then((result) => res(result.body))

{
"name": "animu.js",
"description": "An anime API wrapper.",
"version": "0.0.3",
"version": "0.0.4",
"dependencies": {

@@ -6,0 +6,0 @@ "snekfetch": "3.6.4"

# animu.js
animu.js is a Node.js wrapper for my friend [CF](https://computerfreaker.cf)'s Anime API.
## API
`Without User-Agent`:
## Examples
```js
const { CFClient } = require('animu.js');
const client = new CFClient(); // w/o User-Agent
client.getAnime().then((url) => {
console.log(`Here is the animu: ${url}`);
});
client.getHentai().then((body) => {
console.log(`Hentai 4 u: ${body.url}`);
});
```
`With User-Agent`:
```js
const { CFClient } = require('animu.js');
const client = new CFClient('animu.js/Production/v0.0.1');

@@ -35,2 +22,6 @@

* Fixed entry point after installing;
* If no User Agent, uses the default `animu.js ({GITHUB} v0.0.2)`
* 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
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