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
|
|
|
|
|
|
|
[](https://www.npmjs.com/package/@verdaccio/local-storage)
|
|
|
|
[](https://circleci.com/gh/verdaccio/local-storage/tree/master)
|
|
|
|
[](https://snyk.io/test/github/verdaccio/local-storage?targetFile=package.json)
|
|
|
|
[](https://codecov.io/gh/verdaccio/local-storage)
|
|
|
|
[](https://opencollective.com/verdaccio)
|
|
|
|
[](http://chat.verdaccio.org/)
|
|
|
|

|
|
|
|
[](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
|
|
|
|
|
|
|
[](https://app.fossa.io/projects/git%2Bgithub.com%2Fverdaccio%2Flocal-storage?ref=badge_large)
|