Socket
Book a DemoInstallSign in
Socket

stubborn-server-hash-loader

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stubborn-server-hash-loader

Loader plugin for stubborn-server

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

stubborn-server-hash-loader

NPM version Build Status Coverage percentage License MIT

Loader plugin for stubborn-server

About

stubborn-server is a lightweight mock/stubbing server based upon express.

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.

Installation

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

Usage

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

Keywords

stubborn-server

FAQs

Package last updated on 05 Mar 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts