Skip to content

moonou/json-prefix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

json-prefix

travis NPM Version NPM Downloads

traverse json tree add prefix to string

var prefix = require('json-prefix')

var json = {
  foo: {
    bar: 'foo/bar'
  },
  stringa: 'stringa',
  number: 7
}

var result = prefix(json, 'prefixstr')

console.log(result)
/**
{
  foo: {
    bar: 'prefixstrfoo/bar'
  },
  stringa: 'prefixstrstringa',
  number: 7  
}
*/

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published