Package Exports
- es6-string-utils
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (es6-string-utils) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
es6-string-utils
String utils which I created for my requirements
installation
Run yarn add es6-string-utils or npm install es6-string-utils
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);