trouble-in-terror-town/node_modules/openupm-cli/lib/client.js
Mikolaj 2bbacbea09 did some more work on networking and removed EOS in favor of LRM
did some more work on networking and removed EOS in favor of Light Reflective Mirror
2022-05-31 15:04:31 +02:00

23 lines
501 B
JavaScript

const { promisify } = require("util");
const RegClient = require("another-npm-registry-client");
const { log } = require("./logger");
/**
* Return npm client
*/
const getNpmClient = function() {
// create client
const client = new RegClient({ log });
return {
// The instance of raw npm client
rawClient: client,
// Promisified methods
get: promisify(client.get.bind(client)),
adduser: promisify(client.adduser.bind(client))
};
};
module.exports = {
getNpmClient
};