View Code? Open in Web Editor
NEW
:feet: Replace token string {{name}} in json with values from another json where key is token {"name":"Alex"}
Home Page: https://www.npmjs.com/package/@ptkdev/json-token-replace
License: Other
json-token-replace's Issues
Feature description
I ready to get the message at path of pkg, but only one layer can be obtained.
package.json
{
"engines": {
"node": ">= 12.0.0"
}
}
![Node.js](https://camo.githubusercontent.com/8da033e4a2e85852b50e3224dc61e26e33c34115019641cc0e7df7cbae43dd31/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4e6f64652e6a732d2533453d25323031322e302e302d627269676874677265656e2e7376673f7374796c653d706c6173746963266c6f676f3d)
all-shields-cli
should support message = "{{engines.node}}"
for generating the badge above.
lodash.get()
is a good way to solve the problem.
thx