Copy source code from npm registry to a local directory.
Using msu, you can move around with them from machine to machine.
# Objective: Copy source code in npm package 'express' to a directory named 'express-src'.
# Create the destination directory (destdir)
$ mkdir ./express-src/
# Run the tool.
# <package> <destdir>
$ cp-from-npm express ./express-src/
Ensure you have msu installed:
$ msu install gh:GochoMugo/cp-from-npm
You need to restart your terminal for cp-from-npm
to be available,
or use msu's alias msu.reload
.
The MIT License (MIT)
Copyright © 2017 GochoMugo mugo@forfuture.co.ke