mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-02-17 23:45:29 -05:00
55 lines
1.7 KiB
Markdown
55 lines
1.7 KiB
Markdown
|
# verdaccio-memory
|
||
|
|
||
|
[](https://circleci.com/gh/ayusharma/verdaccio-memory)
|
||
|
[](https://codecov.io/gh/verdaccio/verdaccio-memory)
|
||
|
[](https://www.npmjs.com/package/verdaccio-memory)
|
||
|
[](https://snyk.io/test/github/verdaccio/verdaccio-memory?targetFile=package.json)
|
||
|
[](https://opencollective.com/verdaccio)
|
||
|
[](http://chat.verdaccio.org/)
|
||
|

|
||
|
[](https://www.npmjs.com/package/verdaccio-memory)
|
||
|
|
||
|
A memory based **storage plugin**.
|
||
|
|
||
|
```
|
||
|
npm install --global verdaccio-memory
|
||
|
```
|
||
|
|
||
|
### Requirements
|
||
|
|
||
|
> `verdaccio@3.0.0` or `verdaccio@4.x`
|
||
|
|
||
|
```
|
||
|
npm install -g verdaccio
|
||
|
```
|
||
|
|
||
|
Complete configuration example:
|
||
|
|
||
|
```yaml
|
||
|
store:
|
||
|
memory:
|
||
|
limit: 1000
|
||
|
```
|
||
|
|
||
|
in `config.yaml`
|
||
|
|
||
|
If `store:` is present `storage:` fallback is being ignored.
|
||
|
|
||
|
```yaml
|
||
|
storage: /Users/user/.local/share/verdaccio/storage
|
||
|
auth:
|
||
|
htpasswd:
|
||
|
file: ./htpasswd
|
||
|
store:
|
||
|
memory:
|
||
|
limit: 1000
|
||
|
```
|
||
|
|
||
|
## Disclaimer
|
||
|
|
||
|
This plugin should not be use for production environments. It might be useful for testing or such places as CI where data does not need to be persisted.
|
||
|
|
||
|
## License
|
||
|
|
||
|
[MIT](http://www.opensource.org/licenses/mit-license.php)
|