jsonpath-to-dot

0.2.1 • Public • Published

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

Package Sidebar

Install

npm i jsonpath-to-dot

Weekly Downloads

242

Version

0.2.1

License

MIT

Unpacked Size

2.42 kB

Total Files

4

Last publish

Collaborators

  • mongodb-js-user
  • rueckstiess
  • durran
  • alexander_schroll
  • mabaasit
  • lerouxb
  • fredtruman
  • mbroadst
  • hswolff
  • satyasinha
  • matt_d_rat
  • rhysm
  • tomhollander
  • alena.khineika
  • jeff-allen-mongo
  • mmarcon
  • jonathan.balsano
  • mongodb-build
  • jack.weir
  • mcasimir
  • kristina.stefano
  • jarjee
  • shaketbaby
  • devtoolsbot
  • addaleax
  • gribnoysup
  • mutukrish
  • mongo-j
  • orechova
  • himanshusinghs
  • c-buckingham
  • nbbeeken
  • dbx-node
  • nirinchev
  • pearsb1
  • imlucas