# expr-prop

> Replace ${foo.baz} properties in strings

Latest version **1.0.2** (published 2016-11-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install expr-prop
pnpm add expr-prop
yarn add expr-prop
bun add expr-prop
```

## 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.2 |
| Published | 2016-11-10 |
| First published | 2016-11-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Elon Xu |
| Maintainers | xukaifu |
| Keywords | property, expr, prop |

## Links

- npm: https://www.npmjs.com/package/expr-prop
- Repository: https://github.com/xukaifu/expr-prop
- Homepage: https://github.com/xukaifu/expr-prop#readme
- Issues: https://github.com/xukaifu/expr-prop/issues
- npm.io page: https://npm.io/package/expr-prop

## Dependencies (1)

- [prop-by-string](https://npm.io/package/prop-by-string.md) ^1.0.1

## Recent versions

- 1.0.2 (latest) — 2016-11-10
- 1.0.1 — 2016-11-03
- 1.0.0 — 2016-11-03

## README

# expr-prop
> Replace ${foo.baz} properties in strings

## Install
```
$ npm install --save expr-prop
```

## Usage
```js
const exprProp = require('expr-prop')
var obj = {
    name: 'expr-prop',
    version: '1.0.0',
    author:{
        email: 'kaifuxu@gmail.com'
    },
    dependencies: [
        {
            module: 'prop-by-string',
            version: '^1.0.1'
        }
    ]
}

exprProp.expr('name: ${name}, email: ${author.email}', obj)
// name: expr-prop, email: kaifuxu@gmail.com

exprProp.expr('depends: ${dependencies[0].module}', obj)
// depends: prop-by-string

```

## License
MIT

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