chore: default exports

This commit is contained in:
calebboyd
2017-04-12 09:03:06 -05:00
parent 0d67b1dd4c
commit ac4ca3fe56
19 changed files with 140 additions and 110 deletions
+13 -1
View File
@@ -1,4 +1,7 @@
export function dequote (input) {
import { readFile, writeFile } from 'fs'
import { promisify } from 'bluebird'
function dequote (input) {
input = input.trim()
const singleQuote = input.startsWith('\'') && input.endsWith('\'')
@@ -8,3 +11,12 @@ export function dequote (input) {
}
return input
}
const readFileAsync = promisify(readFile)
const writeFileAsync = promisify(writeFile)
export {
readFileAsync,
writeFileAsync,
dequote
}