aboutsummaryrefslogtreecommitdiff
path: root/index.js
diff options
context:
space:
mode:
authordmitry@nexenta.com <root@myhost.(none)>2012-04-13 14:53:42 -0700
committerdmitry@nexenta.com <root@myhost.(none)>2012-04-13 14:53:42 -0700
commitd6fa6bb68af01a8f0234b255141fb7bcda353fdc (patch)
treee29bec36cf7d1a12452bfa65e081037a7d93fc74 /index.js
parentbcddca38145bf094a3d731118631ca84a6e8c003 (diff)
downloadnode-augeas-d6fa6bb68af01a8f0234b255141fb7bcda353fdc.tar.gz
added package.json and index.js
Diffstat (limited to 'index.js')
-rw-r--r--index.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/index.js b/index.js
new file mode 100644
index 0000000..d49716c
--- /dev/null
+++ b/index.js
@@ -0,0 +1,7 @@
+var libaugeas;
+try {
+ libaugeas = require('./build/Release/libaugeas');
+} catch (e) {
+ libaugeas = require('./libaugeas');
+}
+module.exports = libaugeas;