🚀 Launch Week Day 2:Introducing Custom Tabs for Org Alerts.Learn More →
Socket
Book a DemoInstallSign in
Socket

gcode-parser

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gcode-parser

A G-code parser for Node.js

npmnpm
Version
0.5.1
Version published
Weekly downloads
729
30.88%
Maintainers
1
Weekly downloads
 
Created
Source

gcode-parser build status Coverage Status

NPM

Install

npm install --save gcode-parser

Usage

var fs = require('fs');
var parser = require('gcode-parser');

// Parse from file
var file = 'example.nc';
parser.parseFile(file, function(err, data) {
    console.log(data);
});

// Parse from stream
var stream = fs.createReadStream(file, { encoding: 'utf8' });
parser.parseStream(stream, function(err, data) {
    console.log(data);
});

// Parse from text string
var text = fs.readFileSync(file, 'utf8');
parser.parseText(text, function(err, data) {
    console.log(data);
});

Keywords

cnc

FAQs

Package last updated on 18 Jan 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts