rp1-characters
v1.0.2
Published
Get random character from Ready Player One book
Downloads
5
Readme
Ready Player One Characters
Delivers the main characters from the Ernest Cline's book Ready Player One.
Instalation
Local
$ npm install rp1-characters
CDN
<html>
<head>
......
</head>
<body>
.......
<script src="https://npmcdn.com/rp1-characters/dist/index.umd.js"></script>
</body>
</html>
Usage
Local
var rp1Characters = require('rp1-characters');
console.log(rp1Characters.all); // list all the characters
console.log(rp1Characters.random()); // get one random character
console.log(rp1Characters.random(3)); // get 3 random characters
CDN
<script>
console.log(rp1Characters.all); // list all the characters
console.log(rp1Characters.random()); // get one random character
console.log(rp1Characters.random(3)); // get 3 random characters
</script>