https://github.com/web-mech/inset
https://github.com/web-mech/inset
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/web-mech/inset
- Owner: web-mech
- Created: 2017-02-14T02:40:16.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-03-03T04:11:08.000Z (about 2 years ago)
- Last Synced: 2025-03-09T20:16:09.244Z (3 months ago)
- Language: JavaScript
- Size: 20.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: Readme.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Inset
### A super-simple, ultra-lightweight (330B) interpolation module
#### Usage
```
const inset = require('inset');let sentence = inset('Hi, My name is {person.name.first} and I am {person.age}', {
person: {
name: {
first: 'Mike'
},
age: 40
}
});// Hi, My name is Mike and I am 40'
```#### Developing & Contributing
Using mocha & chaijs for simple unit tests.
```
NODE_ENV=development npm installnpm test
```