Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

instagrammar

1.0.7 • Public • Published

InstaGrammar

InstaGrammar is a Javascript library that generates a random sentence according to a grammar.

A grammar is a set of syntactic rules written in a very easy to read and understand language.

Installation

npm install instagrammar

Usage

var instagrammar = require("instagrammar")

var grammar = "$start = Hello (World | Universe);"
var ig = new instagrammar.InstaGrammar(grammar);
var output = ig.generate();

// output is either "Hello World" or "Hello Universe".
// check home page for tutorial and syntax

Manual

Check http://instagrammar.surge.sh/

install

npm i instagrammar

Downloadsweekly downloads

7

version

1.0.7

license

ISC

repository

Gitbitbucket

last publish

collaborators

  • avatar
Report a vulnerability