[Pkg-javascript-commits] [node-create-hash] 05/40: use crypto in node

Bastien Roucariès rouca at moszumanska.debian.org
Sat May 27 14:10:33 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-create-hash.

commit f241b7dd04ba6e60326f0b1ea63bc172cfc5bf71
Author: Calvin Metcalf <cmetcalf at appgeo.com>
Date:   Wed Jan 14 10:16:52 2015 -0500

    use crypto in node
---
 index.js     | 1 +
 package.json | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/index.js b/index.js
new file mode 100644
index 0000000..9d2d26f
--- /dev/null
+++ b/index.js
@@ -0,0 +1 @@
+module.exports = require('crypto').createHash;
\ No newline at end of file
diff --git a/package.json b/package.json
index d49ded5..1076756 100644
--- a/package.json
+++ b/package.json
@@ -2,7 +2,8 @@
   "name": "create-hash",
   "version": "1.0.1",
   "description": "create hashes for browserify",
-  "main": "create-hash.js",
+  "browser": "create-hash.js",
+  "main": "index.js",
   "scripts": {
     "test": "node test.js | tspec"
   },

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-create-hash.git



More information about the Pkg-javascript-commits mailing list