Package Exports
- rantjs
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 (rantjs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
RantJS
Demo at RantJS.
Usage
var rantjs = require("rantjs");
var rant = new rantjs.SimpleRant;
var sentence=rant.rantConstructor('<firstname male> likes to <verb-transitive> <noun.plural> with <pron poss male> pet <noun-animal> on <timenoun dayofweek plural>.');
console.log(sentence); // 'Sean likes to chop parrots with his pet cat on Saturdays.'New in version 0.8.6
Added support for [rep:x]
Usage:
[case:title][sep:\n][rep:3]{I like <noun animal plural> but not <noun animal plural>}
// I Like Ogres but not Turtles
// I Like Bulls but not Horses
// I Like Poodles but not OwlsNote: [sep:\n] dictates newlines. Alternatively, you can specify \s for space.
New in version 0.8.5
Added support for [case]-tag.
Usage:
[case:upper]<firstname male>Variants:
[case:none|default|word|upper|lower|case|sentence]