Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update how module will be export

  • Loading branch information...
commit 81d5b4bbd2f3a11ceb8dec60652e4a92d187a81d 1 parent 5bfba99
@meritt authored
View
4 README.md
@@ -8,7 +8,7 @@ How to use with JavaScript
--------------------------
```javascript
-var Gisty = require('gisty').Gisty;
+var Gisty = require('gisty');
var gist = new Gisty({username: meritt});
@@ -26,7 +26,7 @@ Or with CoffeeScript
--------------------
```coffeescript
-Gisty = require('gisty').Gisty
+Gisty = require 'gisty'
gist = new Gisty username: 'meritt'
View
2  examples/plain-auth.coffee
@@ -2,7 +2,7 @@
Retrieve starred gist with plain authenticate
###
-Gisty = require('./../lib/gisty').Gisty
+Gisty = require('./../lib/gisty')
gist = new Gisty login: 'login', password: 'password'
View
2  examples/public-access.coffee
@@ -2,7 +2,7 @@
Retrieve public gist
###
-Gisty = require('./../lib/gisty').Gisty
+Gisty = require('./../lib/gisty')
gist = new Gisty username: 'meritt'
View
2  examples/token-auth.coffee
@@ -2,7 +2,7 @@
Retrieve all users gist with OAuth2 access_token
###
-Gisty = require('./../lib/gisty').Gisty
+Gisty = require('./../lib/gisty')
gist = new Gisty token: 'OAuth2 access_token', username: 'meritt'
View
2  src/gisty.coffee
@@ -56,4 +56,4 @@ class Gisty
fn.call self, error, body
-exports.Gisty = Gisty
+module.exports = Gisty
Please sign in to comment.
Something went wrong with that request. Please try again.