@wixc3/isomorphic-yarnpkg-lockfile
TypeScript icon, indicating that this package has built-in type declarations

1.0.7 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @wixc3/isomorphic-yarnpkg-lockfile

Weekly Downloads

778

Version

1.0.7

License

BSD-2-Clause

Unpacked Size

19.2 kB

Total Files

11

Last publish

Collaborators

  • dorza
  • vladba-wix
  • danielgovrin
  • yurimorkovnik
  • ranberko91
  • 0xrezaa
  • gregdamsky
  • alissawix
  • ekaterinaza
  • noammu
  • buchenpilar
  • oleksiiletushev
  • alisalachman
  • vladyslav-baliuk
  • yuriin
  • ilyakwix
  • matang
  • daomry
  • noama
  • shakederin
  • dlvhdr
  • plisovyi
  • pijusn
  • shireewill
  • haryelp
  • iuriikowix
  • itaywix
  • thealmightycrumb
  • devex-infra
  • olehr
  • tomrav
  • avi.vahl
  • alexswix
  • omerk
  • talga
  • cijoe
  • wix-ci
  • wixnpm
  • baraki
  • interal
  • alisey
  • danieleww
  • idoros
  • nadavwix
  • rashellek
  • wtfil
  • denysdovhan
  • vkobeliatskyi
  • pistolpete_
  • nettaru
  • igalh
  • netanelgilad
  • anatfenn
  • erezshasha
  • zemlanin
  • arnonkehat
  • ariki
  • itpurchases
  • danalevy
  • serhiiz
  • oleksandraab
  • idango10
  • mikanadel
  • tetiana0611
  • vladkar
  • yurii-v
  • elig-wix
  • nadav.a
  • vladyslavgoloshchapov