Skip to content

Commit

Permalink
change init location (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
bukinoshita committed Nov 14, 2017
1 parent bc91c08 commit 483dda2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
'use strict'

const path = require('path')
const { join } = require('path')
const { homedir } = require('os')
const storage = require('node-persist')
const { encrypt, decrypt } = require('caesar-encrypt')

class SaveLocal {
constructor(store) {
const s = `.${store}`

storage.initSync({
dir: path.resolve(__dirname, store)
dir: join(homedir(), s)
})
}

Expand Down

0 comments on commit 483dda2

Please sign in to comment.