0.2.7 • Published 2 years ago

unlocked v0.2.7

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years 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

2 years ago

0.2.6

2 years ago

0.2.5

2 years ago

0.2.4

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago