+2
-2
| language: node_js | ||
| node_js: | ||
| - "0.11" | ||
| - "0.10" | ||
| - "4" | ||
| - "6" |
+5
-0
| # appdirsjs changelog | ||
| ## v1.1.0 (2016-12-22) | ||
| * Changing supported Node.js versions to include v4 and v6. | ||
| * PR #1 - Adding Windows support (Thanks, @f3lang!) | ||
| ## v1.0.0 (2015-06-27) | ||
@@ -4,0 +9,0 @@ |
+17
-9
@@ -52,3 +52,3 @@ // Copyright (c) 2014. David M. Lee, II. | ||
| /** | ||
| * Windows appdirs implementation. (unimplemented) | ||
| * Windows appdirs implementation. | ||
| * | ||
@@ -60,21 +60,29 @@ * The standard directory structure for Windows can be found on | ||
| exports.windows = { | ||
| // Judging from appdirs.py, Windows support is quite complicated. | ||
| // Maybe another time... | ||
| userDataDir: function (appname, appauthor, version, roaming) { | ||
| throw new Error('Unimplemented'); | ||
| var dir = roaming ? process.env.APPDATA : process.env.LOCALAPPDATA; | ||
| return appendNameVersion(dir, appname, version); | ||
| }, | ||
| userConfigDir: function (appname, appauthor, version, roaming) { | ||
| throw new Error('Unimplemented'); | ||
| var dir = roaming ? process.env.APPDATA : process.env.LOCALAPPDATA; | ||
| return appendNameVersion(dir, appname, version); | ||
| }, | ||
| userCacheDir: function (appname, appauthor, version) { | ||
| throw new Error('Unimplemented'); | ||
| return appendNameVersion(process.env.LOCALAPPDATA, appname, version); | ||
| }, | ||
| siteDataDir: function (appname, appauthor, version, multipath) { | ||
| throw new Error('Unimplemented'); | ||
| var dir = appendNameVersion(process.env.ALLUSERSPROFILE, appname, version); | ||
| if (multipath) { | ||
| return [dir]; | ||
| } | ||
| return dir; | ||
| }, | ||
| siteConfigDir: function (appname, appauthor, version, multipath) { | ||
| throw new Error('Unimplemented'); | ||
| var dir = appendNameVersion(process.env.ALLUSERSPROFILE, appname, version); | ||
| if (multipath) { | ||
| return [dir]; | ||
| } | ||
| return dir; | ||
| }, | ||
| userLogDir: function (appname, appauthor, version) { | ||
| throw new Error('Unimplemented'); | ||
| return appendNameVersion(process.env.ALLUSERSPROFILE, appname, version); | ||
| } | ||
@@ -81,0 +89,0 @@ }; |
+1
-1
| { | ||
| "name": "appdirs", | ||
| "version": "1.0.0", | ||
| "version": "1.1.0", | ||
| "author": "David M. Lee, II <leedm777@yahoo.com>", | ||
@@ -5,0 +5,0 @@ "description": "Node.js port of Python's appdirs", |
AI-detected possible typosquat
Supply chain riskAI has identified this package as a potential typosquat of a more popular package. This suggests that the package may be intentionally mimicking another package's name, description, or other metadata.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 9 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 6 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
18067
2.74%388
2.11%22
57.14%1
Infinity%