2020-08-19 20:27:35 +02:00
|
|
|
# @verdaccio/local-storage
|
|
|
|
|
2020-09-03 21:15:29 +02:00
|
|
|
📦 File system storage plugin for verdaccio
|
2020-08-19 20:27:35 +02:00
|
|
|
|
|
|
|
[![verdaccio (latest)](https://img.shields.io/npm/v/@verdaccio/local-storage/latest.svg)](https://www.npmjs.com/package/@verdaccio/local-storage)
|
|
|
|
[![CircleCI](https://circleci.com/gh/verdaccio/local-storage/tree/master.svg?style=svg)](https://circleci.com/gh/verdaccio/local-storage/tree/master)
|
|
|
|
[![Known Vulnerabilities](https://snyk.io/test/github/verdaccio/local-storage/badge.svg?targetFile=package.json)](https://snyk.io/test/github/verdaccio/local-storage?targetFile=package.json)
|
|
|
|
[![codecov](https://codecov.io/gh/verdaccio/local-storage/branch/master/graph/badge.svg)](https://codecov.io/gh/verdaccio/local-storage)
|
|
|
|
[![backers](https://opencollective.com/verdaccio/tiers/backer/badge.svg?label=Backer&color=brightgreen)](https://opencollective.com/verdaccio)
|
|
|
|
[![discord](https://img.shields.io/discord/388674437219745793.svg)](http://chat.verdaccio.org/)
|
|
|
|
![MIT](https://img.shields.io/github/license/mashape/apistatus.svg)
|
|
|
|
[![node](https://img.shields.io/node/v/@verdaccio/local-storage/latest.svg)](https://www.npmjs.com/package/@verdaccio/local-storage)
|
|
|
|
|
|
|
|
> This package is already built-in in verdaccio
|
|
|
|
|
|
|
|
```
|
|
|
|
npm install @verdaccio/local-storage
|
|
|
|
```
|
|
|
|
|
|
|
|
### API
|
|
|
|
|
|
|
|
### LocalDatabase
|
|
|
|
|
|
|
|
The main object that handle a JSON database the private packages.
|
|
|
|
|
|
|
|
#### Constructor
|
|
|
|
|
|
|
|
```
|
|
|
|
new LocalDatabase(config, logger);
|
|
|
|
```
|
|
|
|
|
2020-09-03 21:15:29 +02:00
|
|
|
- **config**: A verdaccio configuration instance.
|
|
|
|
- **logger**: A logger instance
|
2020-08-19 20:27:35 +02:00
|
|
|
|
|
|
|
### LocalFS
|
|
|
|
|
|
|
|
A class that handle an package instance in the File System
|
|
|
|
|
|
|
|
```
|
|
|
|
new LocalFS(packageStoragePath, logger);
|
|
|
|
```
|
|
|
|
|
|
|
|
## License
|
|
|
|
|
2020-09-03 21:15:29 +02:00
|
|
|
Verdaccio is [MIT licensed](https://github.com/verdaccio/local-storage/blob/master/LICENSE).
|
2020-08-19 20:27:35 +02:00
|
|
|
|
|
|
|
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fverdaccio%2Flocal-storage.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fverdaccio%2Flocal-storage?ref=badge_large)
|