Comparing version 3.0.0 to 3.0.1
@@ -62,2 +62,5 @@ (function() { | ||
homeDir = fsPlus.getHomeDirectory(); | ||
if (homeDir == null) { | ||
return pathToTildify; | ||
} | ||
if (normalized === homeDir) { | ||
@@ -64,0 +67,0 @@ return '~'; |
@@ -0,0 +0,0 @@ Copyright (c) 2013 GitHub Inc. |
{ | ||
"name": "fs-plus", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "node's fs with more helpers", | ||
@@ -5,0 +5,0 @@ "main": "./lib/fs-plus.js", |
@@ -54,3 +54,3 @@ # fs plus | ||
### `tildify(pathToTildify)` | ||
Convert an absolute path to tilde path for linux and mac: | ||
Convert an absolute path to tilde path on Linux and macOS: | ||
/Users/username/dev => ~/dev | ||
@@ -71,4 +71,4 @@ | ||
- Mac: `~/Library/Application Support/` | ||
- Win: `%AppData%` | ||
- macOS: `~/Library/Application Support/` | ||
- Windows: `%AppData%` | ||
- Linux: `/var/lib` | ||
@@ -75,0 +75,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32407
702