0.0.6 • Published 5 years ago

es6-string-utils v0.0.6

Weekly downloads
2
License
MIT
Repository
github
Last release
5 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

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago