contextex

1.2.0 • Public • Published

Context Expression

Context expression template

Badges

  • Build Status

  • Coverage Status

Usage

Install with npm:

$ npm install contextex --save

Script with contentex:

const explain = require('contextex');

const jackson = {name: "Jackson Tian", age: 18};

const str = 'I am ${@name}, I am ${@age} years old.';
const result = explain(str, context);

console.log(result);
// => 'I am Jackson Tian, I am 18 years old.'

License

The MIT license

Readme

Keywords

none

Package Sidebar

Install

npm i contextex

Weekly Downloads

9

Version

1.2.0

License

MIT

Last publish

Collaborators

  • jacksontian