@yarnpkg/lockfile
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/yarnpkg__lockfile package

1.1.0 • Public • Published

yarn-lockfile

Parse and/or write yarn.lock files

Usage Examples

const fs = require('fs');
const lockfile = require('@yarnpkg/lockfile');
// or (es6)
import fs from 'fs';
import * as lockfile from '@yarnpkg/lockfile';

let file = fs.readFileSync('yarn.lock', 'utf8');
let json = lockfile.parse(file);

console.log(json);

let fileAgain = lockfile.stringify(json);

console.log(fileAgain);

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.0
    6,737,741
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.0
    6,737,741
  • 1.0.2
    271,919
  • 1.0.1
    26
  • 1.0.0
    629

Package Sidebar

Install

npm i @yarnpkg/lockfile

Weekly Downloads

5,829,054

Version

1.1.0

License

BSD-2-Clause

Unpacked Size

280 kB

Total Files

4

Last publish

Collaborators

  • daniel15
  • bestander
  • cpojer
  • arcanis
  • yarnbot