0.2.7 • Published 6 months ago

unlocked v0.2.7

Weekly downloads
-
License
ISC
Repository
github
Last release
6 months ago

Unlocked API Docs

Parse lockfiles from various package managers into a common format

Differences from other tools

  • Monorepo support - CommonLock is build around the idea of importers which are the projects in your monorepo.
  • More Metadata - CommonLock includes additional metadata about the lockfile, such as license information and authors.
  • Interoperability - CommonLock can be converted into other formats, such as CycloneDX SBOMs.
  • CycloneDX & SPDX are just horrible to work with, CommonLock is a lot simpler and not so enterprisey

My primary use case for this is building legalizer which is a tool for generating legal information about your dependencies.

Supported Lockfiles/Package Managers

  • pnpm-lock.yaml
  • package-lock.json (partial)
  • yarn.lock v1
  • yarn.lock v2

Unlocked Ecosystem

Related Packages

Install

$ npm install unlocked

Usage

import { unlock } from "unlocked";
import type { CommonLock } from "unlocked";

const directory = process.cwd();
const lockfile: CommonLock = await unlock(directory);
0.2.7

6 months ago

0.2.6

9 months ago

0.2.5

11 months ago

0.2.4

1 year ago

0.2.3

1 year ago

0.2.2

1 year ago

0.2.1

1 year ago

0.2.0

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago