0.0.6 • Published 6 years ago

es6-string-utils v0.0.6

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

es6-string-utils

Javascript utilities

installation

Run yarn add es6-string-utils or npm install es6-string-utils

usages

1. interpolateString

   import { interpolateString } from 'es6-string-utils';

   const rawString = 'Welcome [Person.name.first] from [Person.city] !!!';

   const locale = { Person: { name: { first: 'Raj' }, city: 'New Delhi' } };

   const parsedString = interpolateString(rawString, locale);

   console.log(parsedString);

   // Welcome Raj from New Delhi !!!
0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago