Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
leedm777 committed Mar 11, 2014
0 parents commit 19b9c2b
Show file tree
Hide file tree
Showing 26 changed files with 1,231 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules/
doc/
out/
.idea/workspace.xml
1 change: 1 addition & 0 deletions .idea/.name

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

45 changes: 45 additions & 0 deletions .idea/codeStyleSettings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/copyright/dlee.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/copyright/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/inspectionProfiles/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/jsLibraryMappings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

68 changes: 68 additions & 0 deletions .idea/jsLinters/jshint.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions .idea/libraries/Node_js_Dependencies_for_appdirsjs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/scopes/scope_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions .jshintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules/**
out/**
52 changes: 52 additions & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
/* From https://github.com/airbnb/javascript/blob/master/linters/jshintrc */
{
/*
* ENVIRONMENTS
* =================
*/

// Define globals exposed by Node.js.
"node": true,

/*
* ENFORCING OPTIONS
* =================
*/

// Force all variable names to use either camelCase style or UPPER_CASE
// with underscores.
"camelcase": true,

// Prohibit use of == and != in favor of === and !==.
"eqeqeq": true,

// Suppress warnings about == null comparisons.
"eqnull": true,

// Enforce tab width of 2 spaces.
"indent": 2,

// Prohibit use of a variable before it is defined.
"latedef": true,

// Require capitalized names for constructor functions.
"newcap": true,

// Enforce use of single quotation marks for strings.
"quotmark": "single",

// Prohibit trailing whitespace.
"trailing": true,

// Prohibit use of explicitly undeclared variables.
"undef": true,

// Warn when variables are defined but never used.
"unused": true,

// Enforce line length to 80 characters
"maxlen": 80,

// Enforce placing 'use strict' at the top function scope
"strict": true
}
35 changes: 35 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# AppDirs.js

> The wonderful thing about standards is that there are so many of them to
> choose from.
-- _Andrew Tanenbaum_

When it comes to storing application data, the convention on where to store
your data varies from platform to platform.

This package is a port of the Python [appdirs][] library, which provides a small
set of methods which can be used to locate the preferred directories for user
and site data for an application.

It currently supports OS X and Unix operating systems (Unix support is
according to the [XDG specification][]). Windows support is not yet
implemented, but a pull request adding that would be greatly appreciated!

## Directories

The directories the AppDirs.js can help you locate are:

* user data dir (`user_data_dir`)
* user config dir (`user_config_dir`)
* user cache dir (`user_cache_dir`)
* site data dir (`site_data_dir`)
* site config dir (`site_config_dir`)
* user log dir (`user_log_dir`)

## Usage

See the JSDocs for specifics on using the API.

[appdirs]: https://github.com/ActiveState/appdirs
[xdg specification]: http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
10 changes: 10 additions & 0 deletions appdirsjs.iml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="Node.js Dependencies for appdirsjs" level="project" />
</component>
</module>

Loading

0 comments on commit 19b9c2b

Please sign in to comment.