lazy-json
Write nice JSON
Last updated 5 years ago by kchan .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install lazy-json 
SYNC missed versions from official npm registry.

lazy-json Build Status

lazy-json makes it happen to require JSON file with comments in it.

It's awesome for lazy-json to work with Atom plugin language-json-comments!

Install

npm install --save lazy-json

Example

// test.lazy.json
{
  // here is my comments
  "github": "oriented programming"
  /* things all done
  ** go home
  */
}

// usage
import { requireJSON } from 'lazy-json'
const obj = requireJSON('./test.lazy')
console.log(obj.github)

Related

License

MIT © EGOIST

Current Tags

  • 0.0.11                                ...           latest (5 years ago)

2 Versions

  • 0.0.11                                ...           5 years ago
  • 0.0.1                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (1)

Copyright 2014 - 2016 © taobao.org |