0.3.1 • Published 5 years ago

replace-string-to-object-value v0.3.1

Weekly downloads
1
License
ISC
Repository
-
Last release
5 years ago

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);
0.3.1

5 years ago

0.3.0

5 years ago

0.2.8

5 years ago

0.2.7

5 years ago

0.2.6

5 years ago

0.2.5

5 years ago

0.2.0

5 years ago

0.1.0

5 years ago