8.0.2 • Published 4 months ago

node-hitomi v8.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

npm version npm type definition license

Installation

NOTICE: Please always use the latest version of the package.Since Hitomi changes its method to get image url often, legacy version may not work.

Using npm:

$ npm install node-hitomi

Using yarn:

$ yarn add node-hitomi

Features

  • Get gellary ids by title, tags, and popularity
  • Get gallary data by id
  • Parse, query and get tags
  • Get hitomi-related uris

Without any dependencies!

Usage/Examples

setup:

// CommonJS
const hitomi = require('node-hitomi').default;

// ES Module
import hitomi from 'node-hitomi';

printing title and id of gallery id x:

hitomi.getGallery(x)
.then(function (gallery) {
	console.log(gallery['title']['display'], gallery['id']);

	return;
});

printing supported tags of female starts with letter y:

hitomi.getTags('female', {
	startsWith: 'y'
})
.then(function (tags) {
	console.log(tags);

	return;
});

printing number of gallery with language korean without female tag netorare:

hitomi.getGalleryIds({
	tags: hitomi.getParsedTags('language:korean -female:netorare')
})
.then(function (ids) {
	console.log(ids['length']);

	return;
});

Contribution

Contribution, issues and feature requests are welcome!Feel free to check issues page.

8.0.1

4 months ago

8.0.2

4 months ago

8.0.0

4 months ago

7.0.6

1 year ago

7.0.4

2 years ago

7.0.5

2 years ago

7.0.3

2 years ago

7.0.2

2 years ago

7.0.1

2 years ago

5.0.6

2 years ago

5.0.5

2 years ago

5.0.4

2 years ago

6.1.0

2 years ago

6.0.1

2 years ago

6.0.0

2 years ago

6.3.0

2 years ago

6.2.1

2 years ago

6.2.0

2 years ago

6.0.2

2 years ago

6.3.1

2 years ago

7.0.0

2 years ago

5.0.3

2 years ago

5.0.2

3 years ago

5.0.1

3 years ago

5.0.0

3 years ago

4.2.3

3 years ago

4.2.4

3 years ago

4.2.2

3 years ago

4.2.1

3 years ago

4.2.0

3 years ago

4.1.1

3 years ago

4.1.0

3 years ago

4.0.2

3 years ago

4.0.1

3 years ago

4.0.0

3 years ago

3.1.0

3 years ago

3.0.1

3 years ago

3.0.0

3 years ago

2.0.0

3 years ago

1.2.0

3 years ago

1.1.0

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago