apep-std

1.1.0 • Public • Published

Common generators and combinators for the Apep Javascript text generation library.

Usage

$ npm install apep-std

You can apep-std as a collection of libraries:

const pep = require('apep');
const pep_vars = require('apep-std').vars;
const pep_trans = require('apep-std').transformations;
 
const p = pep_vars.store('var', pep_trans.upper(...));

Or to extend an Apep include with new APIs:

const pep = require('apep-std')(require('apep'));
 
const p = pep.store('var', pep.upper(...));

API

Apep-std is just a collection of sub libraries, each of which exposes one or more APIs. See each sub library for documentation.

  • sep - Apep-std-sep - Helper combinators for working with sequencing generators.
  • transformations - Apep-std-transformations - Transforming text (capitalization, replacement, matching, ...).
  • vars - Apep-std-vars - Working with variables (caching values).

Package Sidebar

Install

npm i apep-std

Weekly Downloads

2

Version

1.1.0

License

MIT

Last publish

Collaborators

  • mattbierner