Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Include jshint settings. Format index.js.

  • Loading branch information...
commit aa57704d8e86235cdc20675bd08421e76537907b 1 parent 8408b29
@pH200 authored
Showing with 20 additions and 12 deletions.
  1. +2 −0  .jshintignore
  2. +10 −0 .jshintrc
  3. +8 −12 index.js
View
2  .jshintignore
@@ -0,0 +1,2 @@
+node_modules
+.git
View
10 .jshintrc
@@ -0,0 +1,10 @@
+{
+ "node": true,
+
+ "strict": true,
+ "shadow": true,
+ "laxcomma": true,
+ "eqeqeq": true,
+ "eqnull": true,
+ "undef": true
+}
View
20 index.js
@@ -1,14 +1,10 @@
-/* node.js library for Plurk API 2.0
- */
-
-module.exports.PlurkClient = require('./lib/PlurkClient');
-
var fromFile = require('./lib/fromFile');
-module.exports.fromFile = fromFile.fromFile;
-module.exports.fromFileSync = fromFile.fromFileSync;
-
-module.exports.limitedTo = require('./lib/limitedTo');
-
-module.exports.base36 = require('./lib/base36');
-module.exports.urlMatch = require('./lib/urlMatch');
+module.exports = {
+ PlurkClient: require('./lib/PlurkClient'),
+ fromFile: fromFile.fromFile,
+ fromFileSync: fromFile.fromFileSync,
+ limitedTo: require('./lib/limitedTo'),
+ base36: require('./lib/base36'),
+ urlMatch: require('./lib/urlMatch')
+};
Please sign in to comment.
Something went wrong with that request. Please try again.