Skip to content

Instantly share code, notes, and snippets.

View connerleverett's full-sized avatar

Conner Leverett connerleverett

  • Cognito Health
View GitHub Profile
@pbakondy
pbakondy / parse-json.js
Created July 6, 2015 10:25
Parse JSON, strip BOM
// https://github.com/npm/npm/blob/master/lib/utils/parse-json.js
'use strict'
var parseJSON = module.exports = function (content) {
return JSON.parse(stripBOM(content))
}
parseJSON.noExceptions = function (content) {
try {