Skip to content

Commit

Permalink
add empty NPM module
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Oberstein committed May 17, 2013
1 parent a879168 commit 5fd154f
Show file tree
Hide file tree
Showing 7 changed files with 48 additions and 0 deletions.
5 changes: 5 additions & 0 deletions module/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
npm-debug.log
node_modules
.*.swp
.lock-*
build
5 changes: 5 additions & 0 deletions module/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
npm-debug.log
node_modules
.*.swp
.lock-*
build
Empty file added module/README.md
Empty file.
1 change: 1 addition & 0 deletions module/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('./lib/autobahn');
11 changes: 11 additions & 0 deletions module/lib/autobahn.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
function Test(msg) {
var self = this;
this._msg = msg;
}

Test.prototype.hello = function (name) {
console.log(name);
console.log(this._msg);
}

module.exports = Test;
22 changes: 22 additions & 0 deletions module/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name": "autobahn",
"version": "0.0.0",
"description": "An implementation of The WebSocket Application Messaging Protocol (WAMP).",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"dependencies": {},
"repository": {
"type": "git",
"url": "git://github.com/tavendo/AutobahnJS.git"
},
"keywords": [
"WAMP",
"WebSocket",
"RPC",
"PubSub"
],
"author": "Tavendo GmbH",
"license": "MIT"
}
4 changes: 4 additions & 0 deletions module/test/test1.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
var ab = require('../');

var test = new ab("Hello");
test.hello("Foobar");

0 comments on commit 5fd154f

Please sign in to comment.