Gathering detailed insights and metrics for local-package-publisher
Gathering detailed insights and metrics for local-package-publisher
Gathering detailed insights and metrics for local-package-publisher
Gathering detailed insights and metrics for local-package-publisher
local-package-publisher-xos
A utility app for publishing your npm packages locally for testing
package-local-publisher
``` Usage: package-local-publisher [options]
@klettelars/local-build-publisher
Package for assisting publishing test versions of a node package to a local repository
A utility app for publishing your npm packages locally for testing
npm install local-package-publisher
Typescript
Module System
Node Version
NPM Version
64.4
Supply Chain
96.9
Quality
71.6
Maintenance
50
Vulnerability
98.2
License
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
24 Stars
25 Commits
2 Forks
1 Watchers
4 Branches
1 Contributors
Updated on Mar 06, 2025
Latest Version
1.0.5
Package Id
local-package-publisher@1.0.5
Unpacked Size
20.63 kB
Size
5.24 kB
File Count
4
NPM Version
9.6.5
Node Version
18.14.1
Published on
Jun 20, 2023
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
A utility app for publishing your npm packages locally for testing, which works !!
You have created this awesome npm package and you want to test it locally, before publishing to NPM repository. What are the options you have?
Well, below are some of the possible options, but each of them has some caveat, and as a result, it found out need for this project.
Symbolic Linking :
At the root directory of your npm package under test, run the command npm link
. It would create a symbolic link to the entire folder to the global namespace. So, a folder will be created in the directory where global packages are stored with the name that is same as that of the value of name
property in package.json
.
To test/consume this package, at the root of the target project, run npm link [name]
, where [name]
is the value of name
property in package.json
which is being consumed.
Cons: Every file in the directory gets linked, which can create problems and can interfere with the build process if the linked package is consumed in another project.
Local NPM Repository :
You can publish the package under test to a local npm repository hosted using these awesome projects like CNPM,Sinopia, Verdaccio, local-npm etc.
Cons: You will need to change the registry which npm is pointing to by running npm set registry http://localhost:[port]
.
For most of us this might not be a feasible option due to several reasons, but if it does then it is indeed an option worth considering.
Manual Process :
You can first run npm pack
command at the root directory of the project under test. It will generate a tar file with the name [package-name]-[version].tgz
.
Then, unzip the tar file content to a directory, separate from your project.
Go, to this new directory where the tar contents have been extracted, and run npm link
from the directory root. Rest of the steps are same as option 1.
Cons: The process is a bit cumbersome and involves a lot of steps.
I have found out the third option i.e. Manual Process to be most elegant, even though it requires more steps since it relies on npm pack
and it ensures that the content it packs will be same as that of when it will be actually published to NPM repository.
npm install --save-dev local-package-publisher
To install the package locally to the project
or
npm install -g local-package-publisher
To install the package globally
Say, you have created a project with the name my-awesome-new-package
To publish this package, go to root directory of the project and run below command:
local-package-publisher -p
or
local-package-publisher --publish
Once you run this command it will give you below success message.
my-awesome-new-package
package published successfully to globalThis command will publish the package globally. It will also create a directory .local-pack with a setings.json file in it, in your project. Please do not delete it.
You can safely add below line to .gitignore
as well.
.local-pack
Thats it !! Now whenever you do any modification in the project and you want to publish the changes, just run the local-package-publisher -p
command again.
Now, to consume this published package, just go the root directory of the project where you want to consume it, and run below command. It needs to be done only once.
npm link my-awesome-new-package
Note: No need to run above command again and again.
Once, you are done and you want to remove the published package from global, run below command in the root directory of my-awesome-new-package
project:
local-package-publisher -u
or
local-package-publisher --unpublish
Once you run this command it will give you below message.
my-awesome-new-package
package has been removed from globallocal-package-publisher
wouldn't be possible without using the modules from the following authors:
Licensed under MIT
Copyright (c) 2019-2020 Debashish Pal
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
7 existing vulnerabilities detected
Details
Reason
Found 0/22 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More