🚀 Launch Week Day 5:Introducing Immutable Scans.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.2.0
Version published
Weekly downloads
1.2K
63.01%
Maintainers
1
Weekly downloads
 
Created
Source

gcode-parser build status Coverage Status

NPM

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);
});

FAQs

Package last updated on 04 Dec 2015

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