npm-registry-foo

run npm with a custom registry object

Usage no npm install needed!

<script type="module">
  import npmRegistryFoo from 'https://cdn.skypack.dev/npm-registry-foo';
</script>

README

npm-registry-foo

Run npm(1) with a custom registry object.

#!/usr/bin/env node

var npm = require('npm-registry-foo')
var MyCoolRegistry = require('...')
var registry = new MyCoolRegistry()

npm(registry)

The registry object should be an instance of npm-registry-client, or something compatible with that.