Node.js Compatibility

This commit is contained in:
Sean Clark Hess
2012-09-17 13:14:00 -06:00
parent db58c4e4c3
commit 3e90a104bf
3 changed files with 39 additions and 0 deletions
+19
View File
@@ -33,6 +33,25 @@ If you wish to use a more optimized version, please consult
Anton Byrna's fork
L<http://github.com/itrelease/oauthsimple>
=head1 EXAMPLES
Node.js Installation
> npm install oauthsimple
Node.js Example
OAuthSimple = require('OAuthSimple')
oauth = new OAuthSimple("token", "secret")
request = oauth.sign
action: "GET"
path: "http://api.netflix.com/catalog/people"
parameters: { term: 'DeNiro' }
// then use any library to request the following url
request.signed_url
=head1 LICENSE
Code is released under a BSD licence.
+6
View File
@@ -475,3 +475,9 @@ if (OAuthSimple === undefined)
return self;
};
}
// CommonJS Support
if (module && exports) {
module.exports = OAuthSimple;
}
+14
View File
@@ -0,0 +1,14 @@
{
"name": "oauthsimple",
"version": "0.0.1",
"description": "git://github.com/idottv/oauthsimple.git",
"main": "js/OAuthSimple.js",
"scripts": {
},
"repository": {
"type": "git",
"url": "git://github.com/idottv/oauthsimple.git"
},
"author": "jrconlin",
"license": "BSD"
}