https://github.com/dcsunset/bangumi-search
a cli and library wrapper for bangumi-data
https://github.com/dcsunset/bangumi-search
Last synced: 4 months ago
JSON representation
a cli and library wrapper for bangumi-data
- Host: GitHub
- URL: https://github.com/dcsunset/bangumi-search
- Owner: DCsunset
- License: mit
- Created: 2020-01-26T12:50:00.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T14:09:42.000Z (over 3 years ago)
- Last Synced: 2025-02-08T18:09:43.727Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 623 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bangumi-search
[](https://www.npmjs.com/package/bangumi-search)
[](https://github.com/DCsunset/bangumi-search/blob/master/LICENSE)
It is a cli and library wrapper for [bangumi-data](https://github.com/bangumi-data/bangumi-data),
used for searching anime names in the database.
## Install
For command line:
```
npm install -g bangumi-search
```
To use as a library:
```
npm install bangumi-search
```
## Usage
### Command line
```
Usage: bangumi-search [options]
Options:
-h, --help Show help [boolean]
-t, --title Show titles only in results [boolean]
-n, --number Limit the number of results. -1 for unlimited. [number] [default: 5]
-v, --version Show version number [boolean]
```
Since the titles in the database are mainly in
Japanese, English and Chinese,
these languages can be used to search.
### Library
Use the exported search function:
```js
const bangumiSearch = require('bangumi-search');
const results = bangumiSearch('keyword');
```
## Develop
Clone this repository, and then run:
```
npm install
node index.js
```
## License
MIT License