jsonpath-to-dot
Convert a JSONPath into dotnotation
Last updated 9 months ago by imlucas .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install jsonpath-to-dot 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.2.1                                ...           latest (9 months ago)

3 Versions

  • 0.2.1                                ...           9 months ago
  • 0.2.0                                ...           4 years ago
  • 0.1.0                                ...           6 years ago

Copyright 2014 - 2016 © taobao.org |