https://github.com/eno-lang/enojs
DEPRECATED: Please update to enolib (https://github.com/eno-lang/enolib)
https://github.com/eno-lang/enojs
Last synced: about 2 months ago
JSON representation
DEPRECATED: Please update to enolib (https://github.com/eno-lang/enolib)
- Host: GitHub
- URL: https://github.com/eno-lang/enojs
- Owner: eno-lang
- License: mit
- Created: 2018-05-21T19:45:20.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-15T17:48:09.000Z (about 6 years ago)
- Last Synced: 2025-03-29T03:11:41.953Z (2 months ago)
- Language: JavaScript
- Homepage:
- Size: 475 KB
- Stars: 37
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# enojs
JavaScript library for parsing, loading and inspecting eno documents
## End of life notice
The eno notation language is en route to its final version and **enojs will reach end of life by 2020.**
enojs is superseded by the [enolib](https://www.npmjs.com/package/enolib) (core library) and [enotype](https://www.npmjs.com/package/enotype) (type library) packages.Please visit https://eno-lang.org to read up on all changes.
## Installation
```
npm install enojs
```## Getting started
Create an eno document, for instance `intro.eno`:
```eno
Greeting: Hello World!
```A minimal example to read this file with `enojs`:
```js
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](https://eno-lang.org/javascript/)