</>PackageGraphPackageGraph

local-pkg

npmv1.2.1TypeScript

Get information on local packages.

Safe to adopt

Yes — local-pkg scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 112 days ago. 7 releases in the last 2 years.

  • ?Adoption: grade ?, Not reported by this registry.

    No download data reported for this package yet.

  • BMaintenance: grade B, Good.

    Last published 112 days ago. 7 releases in the last 2 years.

  • BWeight: grade B, Good.

    Pulls in 8 transitive packages, about 1.1 MB installed (at least — some of the tree is still being crawled).

  • ASupply chain: grade A, Excellent.

    No install scripts, 2 maintainers, and a contained dependency surface.

  • ALicense: grade A, Excellent.

    MIT — permissive, with no copyleft found in the dependency tree.

Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.

Install cost

What you actually take on by adding local-pkg to a project.

3
Direct dependencies

Runtime packages this one declares itself.

8
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

1.1 MB
Install size

Unpacked size of this package plus its entire runtime tree.

2
Tree depth

Longest resolved dependency chain below this package.

Part of this dependency tree has not been crawled yet, so these figures are a lower bound rather than a final total.

Licenses in the dependency tree

MIT

Every license you inherit by installing local-pkg, not just its own. Check this before a legal review, not after.

Compatibility

Node.js
node >=14
Module format
ESM + CommonJS
TypeScript
Types included
Install scripts
None

Quick start

A usage example from the local-pkg README.

import {
  getPackageInfo,
  importModule,
  isPackageExists,
  resolveModule,
} from 'local-pkg'

isPackageExists('local-pkg') // true
isPackageExists('foo') // false

await getPackageInfo('local-pkg')
/* {
 *   name: "local-pkg",
 *   version: "0.1.0",
Example truncated — see the full README.

local-pkg vs the alternatives

Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.

PackageWeekly downloadsDependentsLicenseLast release
local-pkgthis page05MIT3 months ago
find-up04MIT1 day ago
pkg-dirdeprecated01MIT1 day ago
find-up-simple02MIT1 day ago
test-exclude01ISC1 day ago
validate-npm-package-name01ISC1 day ago

Dependencies

Declared by local-pkg v1.2.1. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (14)

@antfu/eslint-config ^5.2.1@antfu/ni ^25.0.0@antfu/utils ^9.2.0@types/chai ^5.2.2@types/node ^24.3.0bumpp ^10.2.3chai ^5.3.1eslint ^9.33.0esno ^4.8.0find-up-simple ^1.0.1typescript ^5.9.2unbuild ^3.6.1unplugin-quansync ^0.4.4vitest ^3.2.4

Used by

Popular packages that depend on local-pkg.

Relationship graph

Dependencies (left) and dependents (right) of local-pkg.

Frequently installed together

Release history

6 releases in the last two years, typically about 51 days apart.

Recent versions of local-pkg
VersionPublishedSizeLicense
1.2.1latest3 months ago20 KBMIT
1.2.03 months ago20 KBMIT
1.1.21 year ago20 KBMIT
1.1.11 year ago20 KBMIT
1.1.01 year ago20 KBMIT
1.0.01 year ago17 KBMIT
0.5.11 year ago27 KBMIT
0.5.02 years ago26 KBMIT
0.4.33 years ago28 KBMIT
0.4.24 years ago25 KBMIT
0.4.14 years ago27 KBMIT
0.4.04 years ago26 KBMIT
0.3.05 years ago26 KBMIT
0.2.05 years ago26 KBMIT
0.1.05 years ago7.3 KBMIT

Overview

local-pkg is an npm package that get information on local packages. It has 5 known dependents in the graph. The latest version is 1.2.1, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need get information on local packages and value a focused solution.

When not to use it

Consider an alternative if you need to minimize your dependency tree, or if a more actively-maintained option better fits your npm stack.

Pros

  • Ships TypeScript type definitions.
  • Clear open-source license (MIT).

Cons

  • Large dependency tree (17 direct dependencies) increases install size and audit surface.

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Keywords

Funding

Frequently asked questions

Should I use local-pkg?

Yes — local-pkg scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 112 days ago. 7 releases in the last 2 years.

How do I install local-pkg?

Run `npm install local-pkg` to add local-pkg to your npm project.

How many dependencies does local-pkg have?

local-pkg declares 17 direct dependencies and pulls in 8 packages in total once its runtime tree is resolved totalling about 1.1 MB on disk.

What license is local-pkg released under?

local-pkg is distributed under the MIT license.

How popular is local-pkg?

npm does not publish download counts. Within PackageGraph's crawl, 5 known packages depend on local-pkg.

Is local-pkg still maintained?

The most recent release of local-pkg (v1.2.1) was published 3 months ago.

Does local-pkg run install scripts?

No. local-pkg does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.