# parcel-plugin-interpolate-webmanifest

> Parcel plugin that interpolates properties in ENV into .webmanifest files

Latest version **0.0.1** (published 2019-02-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install parcel-plugin-interpolate-webmanifest
pnpm add parcel-plugin-interpolate-webmanifest
yarn add parcel-plugin-interpolate-webmanifest
bun add parcel-plugin-interpolate-webmanifest
```

## 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.0.1 |
| Published | 2019-02-26 |
| First published | 2019-02-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 204.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Joël Kuijten |
| Maintainers | pm5544 |

## Links

- npm: https://www.npmjs.com/package/parcel-plugin-interpolate-webmanifest
- Repository: https://github.com/wearespindle/parcel-plugin-interpolate-webmanifest
- Homepage: https://github.com/wearespindle/parcel-plugin-interpolate-webmanifest#readme
- Issues: https://github.com/wearespindle/parcel-plugin-interpolate-webmanifest/issues
- npm.io page: https://npm.io/package/parcel-plugin-interpolate-webmanifest

## Dependencies (1)

- [escape-string-regexp](https://npm.io/package/escape-string-regexp.md) ^1.0.5

## Recent versions

- 0.0.1 (latest) — 2019-02-26

## README

# parcel-plugin-interpolate-webmanifest

Parcel plugin that interpolates properties in ENV into .webmanifest files

## Installation

```Shell
$ npm i -d parcel-plugin-interpolate-webmanifest
```
or
```Shell
$ yarn add --dev parcel-plugin-interpolate-webmanifest
```


_Attention: parcel-bundler has to be installed_

## Usage

This module can be used to interpolate values from .env files into .webmanifest files.
There is no need to enable the plugin in any configuration file. Just make sure it's in your package.json as a devDependency.
You have to escape the ENV with %% around it e.g. `%example%`.

### Example

_**manifest.webmanifest**_

```json
{
    "name": "%NAME%",
    "short_name": "%SHORT_NAME%",
    "display": "minimal-ui",
    "start_url": "%START_URL%",
    "scope": "/",
    "theme_color": "%THEME_COLOR%",
    "background_color": "%BACKGROUND_COLOR%"
}
```

_**.env**_

```
NAME=myapp
SHORT_NAME=My awesome app
START_URL=/
THEME_COLOR=#ff0000
BACKGROUND_COLOR=#0000ff
```

Use parcel like you would normally do to get an interpolated webmanifest.

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