Skip to content

Instantly share code, notes, and snippets.

View SpenceDiNicolantonio's full-sized avatar

Spence DiNicolantonio SpenceDiNicolantonio

View GitHub Profile
@SpenceDiNicolantonio
SpenceDiNicolantonio / .prettierrc
Last active April 28, 2024 04:15
Prettier config #config #template
{
"bracketSameLine": true,
"printWidth": 80,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "all",
"useTabs": true
}
@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 {