You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gnats

Parse GNATS data

0.0.3
latest
Version published
Maintainers
1
Created

GNATS parser

If you are unfortunate enough to be working with a GNATS bug tracking system, this module will help you convert raw text to JSON objects.

Install

$ npm install gnats

Use

var gnats = require('gnats');

// From string
var pr = gnats.parse(pr_text);

// From file
gnats.fetch('31337.txt', function (err, pr_text) {
    var pr = gnats.parse(pr_text);
});

// From URL (same as file)
gnats.fetch('http://www.example.com/gnats/31337', function (err, pr_text) {
    var pr = gnats.parse(pr_text);
});

FAQs

Package last updated on 17 Nov 2014

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