JavaScript library for parsing, loading and inspecting eno documents
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
performance
specs
.gitignore
CHANGELOG.md
LICENSE
README.md
eno.js
jest.config.js
package-lock.json
package.json

README.md

enojs

JavaScript library for parsing, loading and inspecting eno documents

Installation

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', 'utf-8');

const document = eno.parse(input);

console.log( document.field('Greeting') );  // prints 'Hello World!'

Complete documentation and API reference

See eno-lang.org/javascript