akinator

1.0.1 • Public • Published

akinator

provides evented api and a cli app

npm i -g akinator to install akinator which you can run at any time

import Akinator from 'akinator';
 
const akinator = new Akinator();
 
akinator.on('answer', () => {
  // do something
});
 
akinator.on('guess', () => {
  // something else
});
 
akinator.on('end', (win) => {
  if (win) // akinator guessed correctly
});

Dependents (0)

Package Sidebar

Install

npm i akinator

Weekly Downloads

4

Version

1.0.1

License

MIT

Last publish

Collaborators

  • snek