Latest Threat ResearchGlassWorm Loader Hits Open VSX via Developer Account Compromise.Details
Socket
Book a DemoInstallSign in
Socket

hackfile

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hackfile

Parser for the hackfile format

Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

hackfile

Parser for the hackfile format

npm install hackfile

build status

Format

The hackfile format is similar to a Makefile

{name}
(indent){arg1} {arg2}...

Usage

Assuming you have a hackfile that looks like this

foo
  bar
  baz

bar
  bar baz

The following example

var hackfile = require('hackfile')
var fs = require('fs')

var parsed = hackfile(fs.readFileSync('hackfile', 'utf-8'))
console.log(parsed)

Prints out

{
  foo: [['bar'], ['baz']],
  bar: [['bar', 'baz']]
}

License

MIT

FAQs

Package last updated on 08 Dec 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