# stubborn-server-hash-loader

> Loader plugin for stubborn-server

Latest version **1.0.1** (published 2020-03-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install stubborn-server-hash-loader
pnpm add stubborn-server-hash-loader
yarn add stubborn-server-hash-loader
bun add stubborn-server-hash-loader
```

## 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.1 |
| Published | 2020-03-05 |
| First published | 2018-09-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=10 |
| Dependencies | 1 |
| Unpacked size | 4.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Ruy Adorno |
| Maintainers | ruyadorno |
| Keywords | stubborn-server, serve, plugin, stub, hash, loader |

## Links

- npm: https://www.npmjs.com/package/stubborn-server-hash-loader
- Repository: https://github.com/ruyadorno/stubborn-server-hash-loader
- Homepage: https://github.com/ruyadorno/stubborn-server-hash-loader#readme
- Issues: https://github.com/ruyadorno/stubborn-server-hash-loader/issues
- npm.io page: https://npm.io/package/stubborn-server-hash-loader

## Dependencies (1)

- [request-hash](https://npm.io/package/request-hash.md) ^1.0.5

## Alternatives

- [pagerjs](https://npm.io/package/pagerjs.md) — 60 weekly downloads
- [whistle.savefor-mock](https://npm.io/package/whistle.savefor-mock.md) — 4 weekly downloads
- [@ls.graphics/mcp-local](https://npm.io/package/@ls.graphics/mcp-local.md) — 0 weekly downloads
- [@mariiodegen/seed-db](https://npm.io/package/@mariiodegen/seed-db.md) — 0 weekly downloads
- [fake-geolocation](https://npm.io/package/fake-geolocation.md) — 0 weekly downloads

## Recent versions

- 1.0.1 (latest) — 2020-03-05
- 1.0.0 — 2018-09-27

## README

# stubborn-server-hash-loader

[![NPM version][npm-image]][npm-url]
[![Build Status][travis-image]][travis-url]
[![Coverage percentage][coveralls-image]][coveralls-url]
[![License MIT][license-image]][license-url]

> Loader plugin for stubborn-server

## About

[stubborn-server](https://github.com/zeachco/stubborn-server) is a lightweight mock/stubbing server based upon [express](http://expressjs.com/).

**stubborn-server-hash-loader** is a plugin that provides a custom loader that tries to load files using a hash value which is generated by hashing the original request using [request-hash](https://github.com/ruyadorno/request-hash).

## Installation

```sh
$ npm install --save stubborn-server-hash-loader
```

## Usage

```js
const stubbornServer = require('stubborn-server');
const stub = stubbornServer();
const hashLoader = require('stubborn-server-hash-loader');

stub.start({
  plugins: [
    {
      loader: hashLoader({
        // config options, accepts all options from request-hash
        // see: https://github.com/ruyadorno/request-hash
      })
    }
  ]
});
```

## License

MIT © [Ruy Adorno](http://ruyadorno.com)


[npm-image]: https://badge.fury.io/js/stubborn-server-hash-loader.svg
[npm-url]: https://npmjs.org/package/stubborn-server-hash-loader
[travis-image]: https://travis-ci.org/ruyadorno/stubborn-server-hash-loader.svg?branch=master
[travis-url]: https://travis-ci.org/ruyadorno/stubborn-server-hash-loader
[coveralls-image]: https://coveralls.io/repos/ruyadorno/stubborn-server-hash-loader/badge.svg
[coveralls-url]: https://coveralls.io/r/ruyadorno/stubborn-server-hash-loader
[license-image]: http://img.shields.io/badge/license-MIT-blue.svg?style=flat
[license-url]: https://raw.githubusercontent.com/ruyadorno/request-hash/master/LICENSE

---
_Source: https://npm.io/package/stubborn-server-hash-loader · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
