JSPM

es6-string-utils

0.0.6
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q27501F
  • License MIT

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

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 !!!