@snyk/gemfile
A Gemfile.lock parser for Node.js represented with JSON.
Last updated 6 years ago by snyk-admin .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ gnpm install @snyk/gemfile 
SYNC missed versions from official npm registry.

gemfile

A Gemfile.lock parser for Node.js represented with JSON.

Installation

$ npm install gemfile

API

// Takes a path to a Gemfile.lock.
parse(filename) // String => Promise => String
parseSync(filename) // String => String

// Takes the Gemfile.lock in String format.
interpret(gemfile) // String => String

Output Expectations

  1. Anything that looks like a path will be identifiable by .path.
  2. Anything that looks like a package version will be identifiable by .version.
  3. Anything that uses a remote resource that is not https://rubygems.org will be identifiable by .outsourced.
  4. Anything that looks like a SHA-1 will be identifiable by .sha.
  5. Everything other than "BUNDLED WITH" is an object.
  6. "BUNDLED WITH" is not an Object, but rather a String containing the version.

Tests

$ npm test

Contributions

Please feel free to improve the script and submit a pull request.

Current Tags

  • 1.2.0                                ...           latest (6 years ago)

3 Versions

  • 1.2.0                                ...           6 years ago
  • 1.1.0                                ...           6 years ago
  • 1.0.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (3)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |