import { readFileSync, writeFileSync } from 'fs'

export default {
  read (filename) {
    const blob = readFileSync(filename).toString()
    return JSON.parse(blob)
  },

  write (filename, content) {
    writeFileSync(filename, JSON.stringify(content, null, 2))
  }
}

import { readFileSync, writeFileSync } from 'fs'

export default {
  read (filename) {
    const blob = JSON.stringify(readFileSync(filename))
    return JSON.parse(blob)
  },

  write (filename, content) {
    writeFileSync(filename, JSON.stringify(content, null, 2))
  }
}

Revert "fix(install): Properly stringify buffer"
Revert "fix(install): Properly stringify buffer"

This reverts commit e92bdf39827315b74ed225fdd63626f5c04bb045.
