Socket
Book a DemoInstallSign in
Socket

@gebeto/apply-package-scope

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gebeto/apply-package-scope

CLI tool for applying scope to package.json name

latest
Source
npmnpm
Version
1.1.3
Version published
Maintainers
1
Created
Source

apply-package-scope

CLI tool for adding scope to you package.json name

NPM Publish GPR Publish

Getting Started

Install using yarn:

 $ yarn add -D apply-package-scope

Or npm:

 $ npm install --save-dev apply-package-scope

Usage

Add "scope" to your package.json:

{
    "name": "my-package",
    "scope": "@gebeto",
    ...
}

After adding "scope" you can run command:

 $ apply-package-scope

Field "name" in your package.json will be changed to "${scope}/${name}":

{
-   "name": "my-package",
+   "name": "@gebeto/my-package",
    "scope": "@gebeto",
    ...
}

!!! TIP !!!

You can add apply-package-scope to the package.json scripts to run it using npm run or yarn:

{
    "scripts": {
        "apply-package-scope": "apply-package-scope"
    }
}

License

apply-package-scope is MIT licensed.

Keywords

nodejs

FAQs

Package last updated on 19 Jul 2020

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