From 624a75f563c9cea42c60d5c9f1d12b265fc4b842 Mon Sep 17 00:00:00 2001 From: Zachary Boyd Date: Thu, 31 Dec 2015 19:29:10 -0800 Subject: [PATCH] adds index --- lib/index.js | 5 +++++ package.json | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index e69de29..d0f2a65 100644 --- a/lib/index.js +++ b/lib/index.js @@ -0,0 +1,5 @@ +module.exports = {}; + +(require('shelljs').ls(__dirname).filter((f) => f !== 'index.js')).forEach(function (name) { + module.exports[name.replace('.js', '')] = require(__dirname+'/'+name);; +}) \ No newline at end of file diff --git a/package.json b/package.json index ee07d67..0076443 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tor-router", - "version": "0.0.1", + "version": "1.0.0", "bin": "bin/tor-router.js", "author": [ {