Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rousan/git-npm
Tool for lazy developers, run npm commands directly through git and be more lazy :sunglasses:
https://github.com/rousan/git-npm
developer git indolent lazy npm run sloth
Last synced: 3 months ago
JSON representation
Tool for lazy developers, run npm commands directly through git and be more lazy :sunglasses:
- Host: GitHub
- URL: https://github.com/rousan/git-npm
- Owner: rousan
- License: mit
- Created: 2018-07-21T10:23:53.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-07-21T19:04:45.000Z (over 6 years ago)
- Last Synced: 2024-07-19T15:30:20.862Z (4 months ago)
- Topics: developer, git, indolent, lazy, npm, run, sloth
- Language: Shell
- Homepage:
- Size: 346 KB
- Stars: 14
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
[![NPM version](https://img.shields.io/npm/v/git-plus-npm.svg)](https://www.npmjs.com/package/git-plus-npm)
[![NPM total downloads](https://img.shields.io/npm/dt/git-plus-npm.svg)](https://www.npmjs.com/package/git-plus-npm)
[![Contributors](https://img.shields.io/github/contributors/rousan/git-npm.svg)](https://github.com/rousan/git-npm/graphs/contributors)
[![License](https://img.shields.io/github/license/rousan/git-npm.svg)](https://github.com/rousan/git-npm/blob/master/LICENSE)# What is it?
As we use `git` frequently to manage our *Web projects*, it is common to make a mistake to mix `npm` commands with `git` e.g. we mistakenly type
`git install` instead of `npm install` or `git start` instead of `npm start` etc.Then here this tool comes to solve these issues: now you can run any `npm` command directly through `git` command e.g. run `git install` to install npm *node modules*
or run `git test` to run *test cases* or even run `git start` to start the *server*, you don't need to switch from `git` to `npm`, **JUST BE LAZY 😎**.> Run npm commands through git
## How does it work?
It just adds `aliases` for every npm commands to git and it doesn't affect the existing git commands, so you are good to go.
## Installation
Install it from npm registry:
```bash
npm install -g git-plus-npm
```## Usage
After installing the tool, you are ready use npm commands through git:
### Run `git install` instead of `npm install`
### Run `git i` instead of `npm i`
### Run `git test` instead of `npm test`
### Run `git start` instead of `npm start`
## Supported Commands
The following `npm` commands can be run through `git`:
* access
* adduser
* audit
* bin
* bugs
* c
* cache
* ci
* cit
* completion
* create
* ddp
* dedupe
* deprecate
* dist-tag
* docs
* doctor
* edit
* explore
* get
* help-search
* hook
* i
* isntall
* install
* install-test
* it
* link
* list
* ln
* login
* logout
* ls
* outdated
* owner
* pack
* ping
* prefix
* profile
* prune
* publish
* rb
* rebuild
* repo
* restart
* root
* run
* run-script
* s
* se
* search
* set
* shrinkwrap
* star
* stars
* start
* stop
* t
* team
* test
* token
* tst
* un
* uninstall
* r
* unlink
* remove
* unpublish
* unstar
* up
* update
* v
* view
* whoami## Contributing
Your PRs and stars are always welcome.
Checkout the [CONTRIBUTING](https://github.com/rousan/git-npm/blob/master/CONTRIBUTING.md) guides.