Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

appdirs

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

appdirs - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

5

CHANGES.md
# 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 @@

26

index.js

@@ -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 @@ };

{
"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",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc