@glpkg/installer
v0.1.4
Published
Package installation for GitLab registry (npm and generic)
Downloads
371
Maintainers
Readme
@glpkg/installer
Package installation for GitLab registry.
Installation
npm install @glpkg/installerUsage
import {
NpmInstaller,
NpmrcManager,
GenericInstaller
} from '@glpkg/installer';API
NpmInstaller
Install npm packages from GitLab registry.
const installer = new NpmInstaller({ token: 'xxx' });
await installer.install('@scope/package', '1.0.0');NpmrcManager
Manage .npmrc configuration for GitLab registry.
const manager = new NpmrcManager();
manager.addRegistry('@scope', 'https://gitlab.com/.../npm/');
manager.setAuthToken('gitlab.com', 'xxx');GenericInstaller
Install generic (tarball) packages from GitLab.
const installer = new GenericInstaller({ token: 'xxx' });
await installer.install('package-name', '1.0.0', './dest');Types
InstallOptions- Installation optionsInstallResult- Installation resultNpmrcEntry- .npmrc entry structure
License
MIT
