Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maddhruv/installed-dependencies
Get installed dependencies in your `node_modules`
https://github.com/maddhruv/installed-dependencies
Last synced: 5 days ago
JSON representation
Get installed dependencies in your `node_modules`
- Host: GitHub
- URL: https://github.com/maddhruv/installed-dependencies
- Owner: maddhruv
- Created: 2020-02-21T14:14:22.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-07-07T21:04:05.000Z (over 4 years ago)
- Last Synced: 2024-11-07T19:43:55.575Z (6 days ago)
- Language: JavaScript
- Size: 29.3 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# installed-dependencies
Get installed dependencies in your `node_modules`
## Install
`npm i installed-dependencies`
or
`npm i -g installed-dependencies`
## Usage
### Module
#### The callbacks ☎ way
```js
const installedDependencies = require("installed-dependencies");installedDependencies((dependencies, err) => {
if (err) throw err;
console.log(dependencies);
});
```#### The promises 👏 way
```js
const installedDependencies = require("installed-dependencies");installedDependencies()
.then(dependencies => console.log(dependencies))
.catch(err => console.error(err));
```#### The async/await 💓 way
```js
const installedDependencies = require("installed-dependencies");(async () => {
try {
console.log(await installedDependencies());
} catch (err) {
console.error(err);
}
})();
```### CLI
`npx installed-dependencies`