Skip to content

balena-io-modules/chp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CHP

npm npm license npm downloads build status

CHIP image format

Install via npm

$ npm install --save chp

Usage

var CHP = require('chp')

Parsing a .chp image

var fs = require('fs')
var argv = process.argv.slice(2)

var filename = argv.shift()
var parser = new CHP.Parser()

fs.createReadStream(filename)
  .pipe(parser)
  .on('data', function (command) {
    console.log(command)
  })