npm/scope-it

Name: scope-it

Owner: npm

Description: rewrite your require statements to use a new scope.

Created: 2015-11-07 13:42:53.0

Updated: 2018-01-22 18:46:32.0

Pushed: 2015-12-13 19:19:36.0

Homepage: null

Size: 28

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

scope-it Build Status

rewrite your require statements to use a new scope.

e-it -s @myco private-module-1 some-other-module

will run a “dry run” so you can verify the changes to your code before the files are replaced.

e-it --dry 0 -s @myco private-module-1 some-other-module

adding --dry 0 will update all the javascript file in the project!

install
install -g scope-it
options
e-it [options] [modules to scope]

ons:
scope, -s   the scope name or an empty scope to remove the scopes from
            matching require statements                           [required]
dry         set --dry 0 to save result                       [default: true]
colors, -c  if code output should not be highlighted set this to 0
                                                             [default: true]
dir, -d     specify a module directory. defaults to your current working
            directory       [default: "/home/soldair/projects/npm/scope-it"]
name        set this to 0 if you do not want to also update this module's
            scope                                            [default: true]
, --help    Show help                                              [boolean]
version     Show version number                                    [boolean]
notes

You can use this tool to move from unscoped private modules to your own org scope and to move modules from one scope to another.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.