# librarian-local-storage

> Local filesystem storage engine for LibrarianJS

Latest version **1.0.4** (published 2015-06-26) · ISC license · 0 weekly downloads

## Install

```sh
npm install librarian-local-storage
pnpm add librarian-local-storage
yarn add librarian-local-storage
bun add librarian-local-storage
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2015-06-26 |
| First published | 2014-11-26 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+5 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Josh Vanderwillik |
| Maintainers | joshwillik |

## Links

- npm: https://www.npmjs.com/package/librarian-local-storage
- Repository: https://github.com/librarianjs/local-storage
- Issues: https://github.com/librarianjs/local-storage/issues
- npm.io page: https://npm.io/package/librarian-local-storage

## Dependencies (1)

- [lodash](https://npm.io/package/lodash.md) ^2.4.1

## Recent versions

- 1.0.4 (latest) — 2015-06-26
- 1.0.3 — 2015-05-11
- 1.0.2 — 2015-04-18
- 1.0.1 — 2014-12-13
- 1.0.0 — 2014-11-26

## README

# Librarian Local Storage

## Installation
```
$ npm install librarian-local-storage
```

## Usage
```js
var express = require( 'express' )
var librarian = require( 'librarian' )
var LocalStorage = require( 'librarian-local-storage' )
var storage = new LocalStorage({
  // Where are these images stored?
  files: '/uploads', // optional, defaults to $PWD/files
})

var app = express()
app.use( '/files', librarian({
    storageEngine: storage
}) )

app.listen( 8888, function(){
    console.log( 'app listening' )
})
```

## Note

LocalStorage is the default storage engine used for librarian out of the box. If you do not specify otherwise, a directory called 'files' will be created and used in the the current working directory.

## Note

LocalStorage will attempt to create the directory given, but will continue whether this succeeds or fails.
If you need special permissions on this directory, ensure it is created ahead of time.

---
_Source: https://npm.io/package/librarian-local-storage · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
