Coder Social home page Coder Social logo

git-npm's Introduction




NPM version NPM total downloads Contributors 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:

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

git install

Run git i instead of npm i

git i

Run git test instead of npm test

git test

Run git start instead of npm start

git 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 guides.

git-npm's People

Contributors

rousan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

cherifsy

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.