1.1.1 • Published 6 years ago

spider-man-names v1.1.1

Weekly downloads
5
License
MIT
Repository
github
Last release
6 years ago

spider-man-names

list of some spider-man characters names

Build Status codecov npm npm bundle size (minified) Conventional Commits license PRs Welcome

neon spider-man

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:

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

const spiderManNames = require('spider-man-names') // CommonJS
console.log(spiderManNames.random()) // Lizard

API

MethodResult typeResult description
allarrayall character's names
random()stringrandom character's name

example

JS Bin playground

thanks

thanks to @kentcdodds for his awesome workshop

license

MIT © ohhhh.me

1.1.1

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago