All Projects → depjs → Dep

depjs / Dep

Licence: mit
A little Node.js dependency installer

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Dep

Npm Compare
Compare npm packages from your terminal
Stars: ✭ 55 (-70.43%)
Mutual labels:  command-line, npm
Npm Run
Run locally-installed node module executables.
Stars: ✭ 180 (-3.23%)
Mutual labels:  command-line, npm
Yarnhook
Run `yarn install`, `npm install` or `pnpm install` on git hooks automatically
Stars: ✭ 177 (-4.84%)
Mutual labels:  command-line, npm
Npm Introspect
🔎 Introspect is a tool to traverse the NPM ecosystem and identify quality modules. Use the CLI to upload and examine your project's dependencies.
Stars: ✭ 95 (-48.92%)
Mutual labels:  command-line, npm
Ntl
Node Task List: Interactive cli to list and run package.json scripts
Stars: ✭ 800 (+330.11%)
Mutual labels:  command-line, npm
Cryptocurrency Cli
💰 Cryptocurrency Portfolio On The Command Line 💰
Stars: ✭ 99 (-46.77%)
Mutual labels:  command-line, npm
Cointop
A fast and lightweight interactive terminal based UI application for tracking cryptocurrencies 🚀
Stars: ✭ 2,912 (+1465.59%)
Mutual labels:  command-line
Greenkeeper Lockfile
🔒 Your lockfile, up to date, all the time
Stars: ✭ 181 (-2.69%)
Mutual labels:  npm
Magicli
Automagically generates command-line interfaces (CLI) for any module. Expected options and help sections are created automatically based on parameters names, with support to async.
Stars: ✭ 178 (-4.3%)
Mutual labels:  command-line
Commander
Test your command line interfaces on windows, linux and osx and nodes viá ssh and docker
Stars: ✭ 183 (-1.61%)
Mutual labels:  command-line
Node.js
一步一步学习Node.js,带你从零开始学习Node.js!本仓库是自己总结的Node.js学习图文教程,里面有学习案列和源代码(pubdreamcc原创,欢迎转载,欢迎star)
Stars: ✭ 181 (-2.69%)
Mutual labels:  npm
You Dont Need Gui
Stop relying on GUI; CLI **ROCKS**
Stars: ✭ 4,766 (+2462.37%)
Mutual labels:  command-line
Pqiv
Powerful image viewer with minimal UI
Stars: ✭ 177 (-4.84%)
Mutual labels:  command-line
Git Recall
An interactive way to peruse your git history from the terminal
Stars: ✭ 2,108 (+1033.33%)
Mutual labels:  command-line
Sd
Intuitive find & replace CLI (sed alternative)
Stars: ✭ 2,755 (+1381.18%)
Mutual labels:  command-line
Horus
🎯 A gRPC-Node Distributed Tracing and Monitoring Tool.
Stars: ✭ 184 (-1.08%)
Mutual labels:  npm
Ni
💡 Use the right package manager
Stars: ✭ 179 (-3.76%)
Mutual labels:  npm
Atom Autocomplete Module Import
⚛️ Search & install npm packages from import/require statements.
Stars: ✭ 182 (-2.15%)
Mutual labels:  npm
Cmt
Write consistent git commit messages based on a custom template
Stars: ✭ 179 (-3.76%)
Mutual labels:  command-line
Njt
njt (npm jump to): a quick navigation tool for npm packages
Stars: ✭ 179 (-3.76%)
Mutual labels:  npm

dep

A little Node.js dependency installer with the bare minimum features for module end-users.

ToDo

Table of Contents

Features Usage Concepts Installation Uninstallation Contributing License

Features

  • Install the dependencies defined in a local package.json.
  • Lock the dependencies installed in a local node_modules.
  • Run an arbitrary command from scripts in a local package.json.

dep is trying to have a similar/same interface of the features with npm, but there are some slightly different implementations internally.

Install

dep install

Install all the dependencies defined in a local package.json.

dep install <package name>(@{version|resource})

You can install a package as like npm install.

$ dep install webpack

dep install --save={dev|prod} <package name>(@{version|resource})

You can install the package and save it to either dependencies or devDependencies by using --only={dev|prod}.

$ dep install webpack --save=dev

dep install --only={dev|prod}

You can install either only dependencies or devDependencies by using --only={dev|prod}.

$ dep install --only=prod

Lock

dep lock

ToDo.

It will follow the spec of npm's package-lock.json.

Run

dep run [script] -- <args>

This command will take the matched key with provided [script] among the scripts field defined in package.json and execute the value.

$ dep run test

You also can provide additional arguments by putting --.

$ dep run build -- dist/bundle.js

dep run

If you do not give an arbitrary [script] to dep run, it lists all of the commands from scripts in a local package.json.

$ dep run
Available scripts via `dep run`

dep run build:
  webpack src/index.js
dep run test:
  tap "test/*.js"

Usage

$ dep -h
A little Node.js dependency installer

Commands:
  install  Install dependencies defined in package.json             [aliases: i]
  lock     Lock dependencies installed in node_modules              [aliases: l]
  run      Run an arbitrary command from scripts in package.json    [aliases: r]

Options:
  --help, -h     Show help                                             [boolean]
  --version, -v  Show version information                              [boolean]

Concepts

End users

The target user is always module end-user who makes something with node_modules and doesn't make packages. And the goal of this project is to reproduce most of the features that the end-users use to build their stuff on daily basis.

Save spaces

Speed and local disk capacity are a trade-off. To take the both benefits, it would be better to have the cache in somewhere proxy layer instead of local.

Therefore, dep does not make cache files in a local disc for now.

Stability

Stability is a core value. Having a small set makes keeping the green badges easier.

github-actions

Installation

Since dep works independently of npm, dep has a standalone script to install.

Standalone script

$ curl -L https://github.com/depjs/dep/raw/master/scripts/install.js | node

via npm

$ npm install --global dep

Uninstallation

Also for uninstallation.

Standalone script

$ curl -L https://github.com/depjs/dep/raw/master/scripts/uninstall.js | node

via npm

$ npm uninstall --global dep

Contributing

See CONTRIBUTING.md for more info.

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].