verdaccio-migrate
v0.1.9
Published
Migrate all packages in a verdaccio to another npm registry with npm publish.
Downloads
6
Readme
verdaccio-migrate
Migrate all packages in a verdaccio to another npm registry with npm publish.
Install
npm i verdaccio-migrate
Usage
import verdaccioMigrate from "verdaccio-migrate";
const from = "https://registry.npmjs.org/"; // source registry url
const to = "http://localhost:4873/"; // target registry url
verdaccioMigrate(from, to).then(
({
succeeded, // ['@my/[email protected]', '@my/[email protected]']
failed,
skipped,
}) => {
// migrated
}
);
Cli Usage
npx verdaccio-migrate --from=https://registry.npmjs.org/ --to=http://localhost:4873/
Details
For more details, checkout npm-migrate-all.