# download-json-webpack-plugin

> Loads JSON from given URL and saves it locally.

Latest version **0.1.0** (published 2017-02-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install download-json-webpack-plugin
pnpm add download-json-webpack-plugin
yarn add download-json-webpack-plugin
bun add download-json-webpack-plugin
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2017-02-04 |
| First published | 2017-02-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | mikeqcp |
| Maintainers | mikeqcp |

## Links

- npm: https://www.npmjs.com/package/download-json-webpack-plugin
- Repository: https://github.com/mikeqcp/download-json-webpack-plugin
- Issues: https://github.com/mikeqcp/download-json-webpack-plugin/issues
- npm.io page: https://npm.io/package/download-json-webpack-plugin

## Dependencies (1)

- [get-json](https://npm.io/package/get-json.md) 0.0.3

## Recent versions

- 0.1.0 (latest) — 2017-02-04

## README

##How it works

Loads JSON from given URL and saves it locally.

##Usage

```js
const DownloadJsonPlugin = require('download-json-webpack-plugin');
module.exports = {
  plugins: [
    new DownloadJsonPlugin({
      path: '<JSON URL>',
      filename: 'local.json',
      onBeforeSave: (json) => parseJson
    })
  ]
}
```

##Options

* **path** remote URL of the JSON to download
* **filename** filename where loaded JSON will be saved
* **onBeforeSave** optional function that can modify loaded data. It should return object that will be saved.

---
_Source: https://npm.io/package/download-json-webpack-plugin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
