## Installation - `yarn install @emergencyx/e4p`
yarn install @emergencyx/e4p
const fs = require('fs');
const e4p = require('@emergencyx/e4p'); // Import e4p buffer = fs.readFileSync('file.e4p');
prototype = e4p.parse(buffer); // Returns decoded prototype
`
Write a prototype
`
const fs = require('fs');
const e4p = require('@emergencyx/e4p'); // Import e4p
...
buffer = e4p.serialize(prototype); // Convert prototype to .e4p buffer
`Testing
- yarn testParses and serializes .e4p files placed in
test/input/.Test data must be compressed before committing:
tar -zcf input.tar.gz test/input`.