1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-14 02:06:29 +00:00

Enable to set configs in ~/.boostnoterc

This commit is contained in:
asmsuechan
2017-03-09 17:16:14 -08:00
parent 0f745361ad
commit d47ff96b13
2 changed files with 34 additions and 4 deletions

View File

@@ -0,0 +1,12 @@
const path = require('path')
const sander = require('sander')
function parse (boostnotercPath) {
if (!sander.existsSync(boostnotercPath)) return
let config = JSON.parse(sander.readFileSync(boostnotercPath).toString())
return config
}
export default {
parse
}