npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

npme-import

v1.0.0

Published

imports packages from an artifactory export into an npme instance

Downloads

2

Readme

npme import

Build Status Coverage Status

This is a CLI tool designed to import export directories from other npm repositories into npmE.

Installation

npm i npme-import -g

Use

The import tool will scan from the top of the path provided and attempt to publish all private tarballs it finds to the specified registry.

If a scope argument is provided, the import tool will force the scope on all packages that it publishes to your npme registry. This is a recommended behavior as it allows you to associate a scope with your npme instance. Our scope-it tool will rewrite your require statements in source to include the new scope.

If no scope is provided, then the import tool will publish private packages as is so that previously scoped packages will retain the same scope name as before and unscoped packages will not receive a new scope.

npmei import /path/to/export --registry=http://my.npme.registry:8080 --scope=myscope
  • /path/to/export - the path containing the exported registries
  • --registry - the URL to your npme registry
  • --scope - the scope you have associated with your registry
  • --verbose - display more detailed debug output about what's going on

About Performance

You should expect this process to take quite some time. For every package it has to:

  • check to see if the package is public or private
  • pull versions for private packages from your npme instance
  • use available data to determine the packages which are missing and eligible for publish
  • (optionally) rewrite the package with the new scope
  • publish each missing version of eligible packages to your npme instance

The tool is design not to make changes to any of the original export files and will output working files and folder to the /tmp folder. It will attempt to clean up when everything completes successfully.

In the event of network disruption or failures, the tool can be re-run without worrying that it will cause registry issues or package corruption. It will just ignore any existing package versions that have already been published.

Important Things

  • Don't edit or tamper with the exported tarballs from the source system.
  • Don't point the import tool at any endpoint other than your primary npme instance (for multi-node clusters)
  • Don't remove or change files or folders it creates in /tmp during a run