Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tibuurcio/one-piece-data
Get random names and other stuff from the Japanese anime One Piece
https://github.com/tibuurcio/one-piece-data
Last synced: 10 days ago
JSON representation
Get random names and other stuff from the Japanese anime One Piece
- Host: GitHub
- URL: https://github.com/tibuurcio/one-piece-data
- Owner: tibuurcio
- Created: 2017-05-28T05:03:30.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-05-30T17:37:04.000Z (over 7 years ago)
- Last Synced: 2024-10-06T04:41:03.713Z (about 1 month ago)
- Language: JavaScript
- Size: 16.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# One Piece Data
[![travis build](https://img.shields.io/travis/tibuurcio/one-piece-data.svg)](https://travis-ci.org/tibuurcio/one-piece-data)
[![version](https://img.shields.io/npm/v/one-piece-data.svg)](https://www.npmjs.com/package/one-piece-data)
![MIT license](https://img.shields.io/npm/l/one-piece-data.svg)Get names from the One Piece anime. Data is from [One Piece Wikia](http://onepiece.wikia.com/wiki/List_of_Canon_Characters)
## Install
```
$ npm install --save one-piece-data
```## Usage
```js
const OnePiece = require('one-piece-data');OnePiece.all; //Array with the names of every One Piece character that has ever appeared in or been mentioned in the manga and has been named.
OnePiece.random(); //'Charlotte Pudding'
OnePiece.random(3); //['Enel', 'Portgas D. Ace', 'Trafalgar Law']
OnePiece.strawHatCrew.all; //Array with the names of all members of the straw hat crew
OnePiece.strawHatCrew.random(); //'Nami'
```