@gebeto/apply-package-scope

1.1.3 • Public • Published

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.

Package Sidebar

Install

npm i @gebeto/apply-package-scope

Weekly Downloads

1

Version

1.1.3

License

MIT

Unpacked Size

6.24 kB

Total Files

14

Last publish

Collaborators

  • gebeto