nostra

A fortune teller.

Usage no npm install needed!

<script type="module">
  import nostra from 'https://cdn.skypack.dev/nostra';
</script>

README

NPMBuild StatusCoverage Status

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 and prepublish (which calls build) in the scripts 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 the src.
  • See test in the scripts section -- make sure it builds before it runs the tests.

Resources

Notes