Link Search Menu Expand Document
const {
  parse,
  stringify,
  assign 
} = require('comment-json')
const fs = require('fs')
 
const obj = parse(fs.readFileSync('package.json').toString())
 
console.log(obj.name) // comment-json
 
stringify(obj, null, 2)

Copyright © 2020 Thence LLC