'use strict' module.exports = function (content) { // Code also yanked from read-package-json. function stripBOM (content) { content = content.toString() // Remove byte order marker. This catches EF BB BF (the UTF-8 BOM) // because the buffer-to-string conversion in `fs.readFileSync()` // translates it to FEFF, the UTF-16 BOM. if (content.charCodeAt(0) === 0xFEFF) return content.slice(1) return content } return JSON.parse(stripBOM(content)) }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
cache-key.js | File | 129 B | 0644 |
|
finished.js | File | 419 B | 0644 |
|
git.js | File | 8.15 KB | 0644 |
|
opt-check.js | File | 1.21 KB | 0644 |
|
pack-dir.js | File | 1.03 KB | 0644 |
|
proclog.js | File | 340 B | 0644 |
|
read-json.js | File | 481 B | 0644 |
|