Socket
Book a DemoInstallSign in
Socket

scope-it

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scope-it

scope-it --------

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

scope-it

rewrite your require statements to use a new scope.

scope-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.

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

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

install

npm install -g scope-it

options

scope-it [options] [modules to scope]

Options:
  --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]
  -h, --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.

Keywords

scope

FAQs

Package last updated on 10 Dec 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts