levelnamer

1.4.6 • Public • Published

levelnamer

Generates 1E AD&D-style named levels given arbitrary 'classes'.

Installation

npm install levelnamer

Usage

var levelnamer = require('levelnamer');
levelnamer.getNamedLevels(
  {
    word: 'Yob',
    totalLevels: 20,
    config: {
      wordnikAPIKey: 'your-key-goes-here'
    }
  }, 
  showResults
);

function showResults(error, results) {
  console.log(results);
}

You can optionally set memoizeServerPort in the opts if you are using multilevel-cache-tools with wordnok to memoize those calls.

Tests

Run tests with make test.

License

MIT.

Readme

Keywords

none

Package Sidebar

Install

npm i levelnamer

Weekly Downloads

1

Version

1.4.6

License

MIT

Unpacked Size

12.2 kB

Total Files

11

Last publish

Collaborators

  • jimkang