# plucky-mapper

> json reference mapping for configuration

Latest version **0.0.6** (published 2016-10-26) · ISC license · 0 weekly downloads

## Install

```sh
npm install plucky-mapper
pnpm add plucky-mapper
yarn add plucky-mapper
bun add plucky-mapper
```

## 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.6 |
| Published | 2016-10-26 |
| First published | 2016-10-18 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Hung Chen |
| Maintainers | vchenhu |
| Keywords | mapper, json |

## Links

- npm: https://www.npmjs.com/package/plucky-mapper
- Repository: https://github.com/plucky-ci/plucky-mapper
- Homepage: https://github.com/plucky-ci/plucky-mapper#readme
- Issues: https://github.com/plucky-ci/plucky-mapper/issues
- npm.io page: https://npm.io/package/plucky-mapper

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 0.0.6 (latest) — 2016-10-26
- 0.0.5 — 2016-10-20
- 0.0.4 — 2016-10-18
- 0.0.3 — 2016-10-18
- 0.0.1 — 2016-10-18

## README

# Plucky-mapper

json mapper for referencing configurations from outside of loader configuration.

# Usage

```javascript
let globalConfig = {
	"foo": {
		"bar": "someValue",
		"authorized": true,
		"server": {
			"url":"http://some.url.com",
			"port": 123
		}
	}
}

let loaderConfiguration = {
	"port": "${foo.server.port}",
	"authorized": "${foo.authorized}",
	"bar": "${foo.bar}",
	"config": {
		... other configurations
	}
}

const { jsonMapper } = require("jsonmapper");

console.log(jsonMapper(loaderConfiguration, globalConfig));

{
	"port":123,
	"authorized": true,
	"bar": "someValue",
	"config": {
		... other configurations
	}
}
```

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