An open API service indexing awesome lists of open source software.

https://github.com/carvilsi/snoopm

SnOOpm: snooping around Node.js code dependencies
https://github.com/carvilsi/snoopm

cli dependencies javascript node-modules nodejs npm

Last synced: 2 months ago
JSON representation

SnOOpm: snooping around Node.js code dependencies

Awesome Lists containing this project

README

        


snoopm


:dog: Snooping around Node.js code dependencies


npm
tst


A cli to get the basics of other Node.js code at a glance and get ideas on what to use in your next project.


Lists the URL and description of the dependencies.


It's also useful to use it for your own code, e.g. to quickly remember which dependency was used in a project.


### Install

`$ npm install snoopm -g`

### Usage

Usage: snoopm [options] [package dir or url repository]

ProTip: On OS X Terminal Command Key + double_click must open the link on default browser

Options:

-h, --help output usage information
-V, --version output the version number, shows if there is newer version
-v, --verbose prints name, url and version (shows if there is newer version)
-c, --color no colors for output
-d, --dev snooping devDependencies
-l, --lines outputs lines instead table

### Examples

- Snooping local dependencies (same directory than source):

`$ snoopm .` or `$ snoopm`

![Alt vmware](https://github.com/carvilsi/snoopm/raw/master/images/local.png)

- Snooping remote dependencies by URL:

`$ snoopm https://github.com/remy/nodemon` or

`$ snoop https://github.com/remy/nodemon/blob/main/package.json` or

`$ snoop https://raw.githubusercontent.com/remy/nodemon/main/package.json`

![Alt vmware](https://github.com/carvilsi/snoopm/raw/master/images/remote.png)

- Snooping with verbose output:

`$ snoopm -v .`

![Alt vmware](https://github.com/carvilsi/snoopm/raw/master/images/verbose.png)

- Snooping the development dependencies:

`$ snoopm -d .`

![Alt vmware](https://github.com/carvilsi/snoopm/raw/master/images/dev.png)

- Snooping and retriving lines as output; useful for post-processing:

`$ snoopm -l .`

![Alt vmware](https://github.com/carvilsi/snoopm/raw/master/images/lines.png)

- Supressing the colors of the output:

`$ snoopm -lc .`

![Alt vmware](https://github.com/carvilsi/snoopm/raw/master/images/color.png)

### Collaborators

SnOOpm **logo** made by [@psikoz](https://github.com/psikoz)