How to use @verdaccio/local-storage - 1 common examples

To help you get started, we’ve selected a few @verdaccio/local-storage examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github verdaccio / verdaccio / src / lib / local-storage.ts View on Github external
private _loadStorage(config: Config, logger: Logger): IPluginStorage {
    const Storage = this._loadStorePlugin();

    if (_.isNil(Storage)) {
      assert(this.config.storage, 'CONFIG: storage path not defined');
      return new LocalDatabase(this.config, logger);
    } else {
      return Storage as IPluginStorage;
    }
  }

@verdaccio/local-storage

Local storage implementation

MIT
Latest version published 1 year ago

Package Health Score

69 / 100
Full package analysis

Popular @verdaccio/local-storage functions