All Projects → artisonian → erudite

artisonian / erudite

Licence: other
A JavaScript equivalent to Literate CoffeeScript

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to erudite

marc4js
A Node.js API for handling MARC
Stars: ✭ 35 (+94.44%)
Mutual labels:  parse
Android-Shortify
An Android library used for making an Android application more faster with less amount of code. Shortify for Android provides basic functionalities of view and resource binding, view customization, JSON parsing, AJAX, various readymade dialogs and much more.
Stars: ✭ 21 (+16.67%)
Mutual labels:  parse
warframe-worldstate-parser
📗 An Open parser for Warframe's Worldstate in Javascript
Stars: ✭ 50 (+177.78%)
Mutual labels:  parse
libdvbtee
dvbtee: a digital television streamer / parser / service information aggregator supporting various interfaces including telnet CLI & http control
Stars: ✭ 65 (+261.11%)
Mutual labels:  parse
der-parser
BER/DER parser written in pure Rust. Fast, zero-copy, safe.
Stars: ✭ 73 (+305.56%)
Mutual labels:  parse
Splain
small parser to create more interesting language/sentences
Stars: ✭ 15 (-16.67%)
Mutual labels:  parse
HttpUtility
HttpUtility is an open source MIT license project which is helpful in making HTTP requests and returns a decoded object from server. Right now this utility only parses JSON.
Stars: ✭ 28 (+55.56%)
Mutual labels:  parse
cmd-ts
💻 A type-driven command line argument parser
Stars: ✭ 92 (+411.11%)
Mutual labels:  parse
gitsum
parse and summarise git repository history
Stars: ✭ 43 (+138.89%)
Mutual labels:  parse
parse-cloud-class
Extendable way to set up Parse Cloud classes behaviour
Stars: ✭ 40 (+122.22%)
Mutual labels:  parse
pyhaproxy
Python library to parse haproxy configurations
Stars: ✭ 50 (+177.78%)
Mutual labels:  parse
CROHME extractor
CROHME dataset extractor for OFFLINE-text-recognition task.
Stars: ✭ 77 (+327.78%)
Mutual labels:  parse
easy-json-parse
Parse your json safely and easily.
Stars: ✭ 33 (+83.33%)
Mutual labels:  parse
parse-commit-message
(!! moved to tunnckoCore/opensource !! try `parse-commit-message@canary`) Parse, stringify or validate a commit messages that follows Conventional Commits Specification
Stars: ✭ 31 (+72.22%)
Mutual labels:  parse
carsBase
База автомобилей с марками и моделями JSON, CSV, XLSX и MySQL
Stars: ✭ 49 (+172.22%)
Mutual labels:  parse
mtgsqlive
MTGJSON build scripts to generate alternative data formats
Stars: ✭ 40 (+122.22%)
Mutual labels:  parse
vgprompter
C# library to parse a subset of Ren'Py script syntax
Stars: ✭ 17 (-5.56%)
Mutual labels:  parse
crawler CIA CREST
R-crawler for CIA website (CREST)
Stars: ✭ 15 (-16.67%)
Mutual labels:  parse
expresol
Library for executing customizable script-languages in python
Stars: ✭ 11 (-38.89%)
Mutual labels:  parse
eval-estree-expression
Safely evaluate JavaScript (estree) expressions, sync and async.
Stars: ✭ 22 (+22.22%)
Mutual labels:  parse

Erudite

A tool that parses and executes JavaScript from Markdown, akin to Literate CoffeeScript. Check out the annotated source or the docs below.

Getting Started

npm install -g erudite

CLI Usage

Usage: erudite [options] /path/to/filename

  -h, --help     show this help text
  -o, --outfile  write to the given file path
  -e, --stage    ECMAScript proposal stage (0-4)
      --stdout   write to stdout (ignores -o)

API Usage

erudite exports a single function which parses and executes a given buffer of Markdown text:

var fs = require('fs');
var erudite = require('erudite');

var filename = './literate-javascript.md';
var text = fs.readFileSync(filename, 'utf8');

erudite(text, {
  filename: filename
});

You can also parse and execute separately:

var source = erudite.parse(buf);
erudite.exec(source, opts);

erudite.parse(text, opts)

  • text A string of Markdown text to process
  • opts A configuration object
    • eol (Optional) The string to use to concatenate code blocks (defaults to os.EOL)

erudite.exec(src, opts)

  • src A string of JavaScript source code
  • opts A configuration object
    • filename (Optional) The name of the source file (defaults to erudite)

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].