nostra
v0.0.7
Published
A fortune teller.
Downloads
9
Maintainers
Readme
Nostra
Generates random-ish fortune-teller text.
Installation
npm install nostra
Usage
var nostra = require('nostra');
var fortune = nostra.generate();
Tests
Components:
ES6 -- Publishing to npm handled by configuring the package.json file
- See
build
andprepublish
(which calls build) in thescripts
section. - The .npmignore file contains the
src
dir -- it doesn't get published to npm. - The .gitignore file contains the
dist
dir -- it doesn't get saved to git - In
package.json
,main
points to the file at './dist/index.js'
ES6 -- Testing
- The test file should call the files in the
dist
directory, not thesrc
. - See
test
in thescripts
section -- make sure it builds before it runs the tests.
Resources
Notes
Adapted from Michael Sproul's python Horoscope Generator.