injecttostr

0.0.0 • Public • Published

InjectToStr

Build Status

InjectToStr is simple library for injecting variables in strings.

It works in both node and client-side applications.

Example
var injectToStr = require('injectToStr');

var str = injectToStr('Follow @[user] on github.', { user: 'goschevski' });
// Follow @goschevski on github.

var str = injectToStr('Follow @[user] on [network].', { user: 'goschevski' });
// Follow @goschevski on [network].

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.0
    1

Package Sidebar

Install

npm i injecttostr

Weekly Downloads

1

Version

0.0.0

License

ISC

Last publish

Collaborators

  • goschevski