tahamajs's picture
|
download
raw
408 Bytes

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);

Xet Storage Details

Size:
408 Bytes
·
Xet hash:
c60f35ffced98f6ee30920a333d1ea250eb37a564166419e1f73be1637f05129

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.