JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q34448F
  • License MIT

A fortune teller.

Package Exports

  • nostra

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (nostra) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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