Socket
Socket
Sign inDemoInstall

@snyk/gemfile

Package Overview
Dependencies
0
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@snyk/gemfile

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


Version published
Maintainers
2
Created

Readme

Source

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.

Keywords

FAQs

Package last updated on 08 Feb 2019

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc