replace-string-to-object-value

0.3.1 • Public • Published

Replace String for a Object value

What is this package for?

This package solves the following problem:

"User not found, idUser: ${userID}", when 'userID' is impossible to pass to ${userID}.

How do I solve this?

You can solve this:

    const str = "User not found ${userID} and plataform: ${plataform}";
    const obj = { userID: 2, plataform: 'web' };

    const resolvedProblem = replacerString(str, obj);

Readme

Keywords

none

Package Sidebar

Install

npm i replace-string-to-object-value

Weekly Downloads

0

Version

0.3.1

License

ISC

Unpacked Size

2.83 kB

Total Files

5

Last publish

Collaborators

  • williansugiyama