npm.io
0.2.1 • Published 6 years ago

jsonpath-to-dot

Licence
MIT
Version
0.2.1
Deps
0
Size
2 kB
Vulns
0
Weekly
0
Stars
2

jsonpath-to-dot

build status

Convert a JSONPath into dotnotation.

Example

var toDot = require('jsonpath-to-dot');
console.log(toDot('/tags'));
// 'tags'
console.log(toDot('/tags/1'));
// 'tags.1'
console.log(toDot('/tags/blah'));
// 'tags.blah'

Install

npm install --save jsonpath-to-dot

Test

npm test

License

MIT