Skip to content
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.

do not use os-homedir #12

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 1 addition & 2 deletions osenv.js
Expand Up @@ -2,7 +2,6 @@ var isWindows = process.platform === 'win32'
var path = require('path')
var exec = require('child_process').exec
var osTmpdir = require('os-tmpdir')
var osHomedir = require('os-homedir')

// looking up envs is a bit costly.
// Also, sometimes we want to have a fallback
Expand Down Expand Up @@ -51,7 +50,7 @@ memo('tmpdir', function () {
})

memo('home', function () {
return osHomedir()
return os.homedir()
})

memo('path', function () {
Expand Down
1 change: 0 additions & 1 deletion package.json
Expand Up @@ -6,7 +6,6 @@
"test": "test"
},
"dependencies": {
"os-homedir": "^1.0.0",
"os-tmpdir": "^1.0.0"
},
"devDependencies": {
Expand Down