0.2.1 • Published 4 years ago
jsonpath-to-dot v0.2.1
jsonpath-to-dot
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