https://github.com/dergoogler/package-depend-list
Get information out of your paclage dependencies.
https://github.com/dergoogler/package-depend-list
Last synced: 9 months ago
JSON representation
Get information out of your paclage dependencies.
- Host: GitHub
- URL: https://github.com/dergoogler/package-depend-list
- Owner: DerGoogler
- Created: 2022-07-22T14:02:38.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-07-22T18:44:24.000Z (almost 4 years ago)
- Last Synced: 2025-08-20T09:31:57.092Z (10 months ago)
- Language: TypeScript
- Size: 267 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Package Dependencies List
This package generates an list with all listed dependencies or devDependencies
## Install
```bash
# With NPM
npm add package-depend-list
# With Yarn
yarn add package-depend-list
# With bun
bun add package-depend-list
# In some cases you'll need tslib, do this by:
npm add --save-dev tslib
```
## Setup
> Library cannot run with an Webpack production
```ts
import { PackageDependList } from "package-depend-list";
import * as path from "path";
const pkg = new PackageDependList({
package: "./package.json",
node_modules: path.resolve("./", "node_modules"),
});
// if `true`, get the array as a string
console.log(pkg.dependencies(true));
// if `false`, get output as js array
console.log(pkg.devDependencies(false));
```