Everyone is welcome to improve this documentation by editing javascript.eno and submitting a Pull Request!
Installation from npm:
npm install enojs
Getting started
Create an eno document, for instance intro.eno
:
Greeting: Hello World!
A minimal example to read this file with enojs
:
const eno = require('enojs');
const fs = require('fs');
const input = fs.readFileSync('intro.eno');
const document = eno.parse(input);
console.log( document.field('Greeting') ); // prints 'Hello World!'
Interactive code demos
A preview of the enojs demo page, featuring interactive code examples is available here.
Links
Package on npm - https://npmjs.com/package/enojs/
Repository on github - https://github.com/eno-lang/enojs/