mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-11-13 03:35:52 +01:00
b56d5cec39
* chore: relocated mock package * refactor: relocate local-storage htpasswd to plugins because they are * chore: format
48 lines
1.9 KiB
Markdown
48 lines
1.9 KiB
Markdown
# @verdaccio/local-storage
|
|
|
|
📦 File system storage plugin for verdaccio
|
|
|
|
[![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);
|
|
```
|
|
|
|
- **config**: A verdaccio configuration instance.
|
|
- **logger**: A logger instance
|
|
|
|
### LocalFS
|
|
|
|
A class that handle an package instance in the File System
|
|
|
|
```
|
|
new LocalFS(packageStoragePath, logger);
|
|
```
|
|
|
|
## License
|
|
|
|
Verdaccio is [MIT licensed](https://github.com/verdaccio/local-storage/blob/master/LICENSE).
|
|
|
|
[![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)
|