1.0.7 • Published 6 months ago

@wixc3/isomorphic-yarnpkg-lockfile v1.0.7

Weekly downloads
-
License
BSD-2-Clause
Repository
github
Last release
6 months ago

Fork notes:

  • removed all that is not related to lock file parsing
  • removed types annotations
  • simplified build process
  • replaced/inlined external deps, except js-yaml

So, no package contains only parsing yarn.lock file functionality and can be used in browser env.

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

6 months ago

1.0.6

6 months ago

1.0.5

6 months ago

1.0.4

7 months ago

1.0.3

7 months ago

1.0.2

8 months ago