https://github.com/tom2drum/spidy
🕸 Get random Spider-man character name
https://github.com/tom2drum/spidy
npm-module
Last synced: 7 months ago
JSON representation
🕸 Get random Spider-man character name
- Host: GitHub
- URL: https://github.com/tom2drum/spidy
- Owner: tom2drum
- License: mit
- Created: 2018-05-02T08:28:30.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-04T08:35:17.000Z (about 8 years ago)
- Last Synced: 2025-02-15T17:36:20.060Z (over 1 year ago)
- Topics: npm-module
- Language: JavaScript
- Homepage:
- Size: 98.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# spider-man-names
list of some spider-man characters names
[](https://travis-ci.org/tom-aglow/spidy)
[](https://codecov.io/gh/tom-aglow/spidy)


[](https://conventionalcommits.org)
[](https://github.com/tom-aglow/spidy/blob/master/LICENSE)
[](http://makeapullrequest.com)

## the problem
make your unit tests more interesting with cool names of spider-man comic characters instead of well-known guy `'John Doe'`
## this solution
this module exposes an API for you to get a random character name every time you call it
## installation
this module is distributed via NPM which is bundled with Node.js and should be installed as one of your project's dependencies:
```
npm install spider-man-names
```
or
```
yarn add spider-man-names
```
alternatively you can get the UMD build which is also published to the npm registry and is therefore available via https://unpkg.com:
* https://unpkg.com/spider-man-names@latest/dist/index.umd.js
* https://unpkg.com/spider-man-names@latest/dist/index.umd.min.js
the UMD build exposes the module as a global called `spiderManNames` or as an unnamed module for AMD/CommonJS (require it by its file path)
## usage
```javascript
const spiderManNames = require('spider-man-names') // CommonJS
console.log(spiderManNames.random()) // Lizard
```
## API
| Method | Result type | Result description |
| -------- | ----------- | ----------------------- |
| all | array | all character's names |
| random() | string | random character's name |
## example
JS Bin [playground](http://jsbin.com/pifuqicetu/edit?html,js,console)
## thanks
thanks to @kentcdodds for his awesome [workshop](https://frontendmasters.com/courses/open-source/)
## license
MIT © [ohhhh.me](http://ohhhh.me)