New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

parse-yarn-lock

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

parse-yarn-lock

parses yarn.lock file using global yarn installation

latest
Source
npmnpm
Version
999.999.2
Version published
Maintainers
1
Created
Source

parse-yarn-lock

parse a yarn.lock file, using the the parser for a specific version of yarn.

build status Build status

install

yarn add parse-yarn-lock@0.28.4, or parse-yarn-lock@$VERSION. the following versions are currently supported:

[
  'v0.23.0',
  'v0.24.6',
  'v0.25.4',
  'v0.26.1',
  'v0.27.5',
  'v0.28.4'
]

until further notice, please only install explicit versions.

usage

var parse = require('parse-yarn-lock').default
var lockfile = fs.readFileSync('yarn.lock').toString()
var parsed = parse(lockfile)
console.log(parsed) // parsed.object in yarn v0.28+
/*
{
  "balanced-match@^0.4.1": {
    "version": "0.4.2",
    "resolved": "https://registry.yarnpkg.com/balanced-match/-/balanced-match-0.4.2.tgz#cb3f3e3c732dc0f01ee70b403f302e61d7709838"
  },
  "brace-expansion@^1.0.0": {
    "version": "1.1.6",
    "resolved": "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.6.tgz#7197d7eaa9b87e648390ea61fc66c84427420df9",
    "dependencies": ...
  ...
}
*/

Keywords

parse

FAQs

Package last updated on 10 Aug 2017

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