[Pkg-javascript-commits] [node-hash-base] 04/04: Added description in control file

Shirish Togarla shirish12-guest at moszumanska.debian.org
Tue Feb 7 19:56:49 UTC 2017


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

shirish12-guest pushed a commit to branch master
in repository node-hash-base.

commit 80735553501435de95cd3c3d503725aae6659bf4
Author: Shirish Togarla <shirishtogarla533 at gmail.com>
Date:   Tue Feb 7 19:54:32 2017 +0000

    Added description in control file
---
 debian/control | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/debian/control b/debian/control
index 9c9f1ce..e71c58e 100644
--- a/debian/control
+++ b/debian/control
@@ -19,6 +19,17 @@ Depends:
  , nodejs
  , node-inherits (>= 2.0.1)
 Description: abstract base class for hash-streams
- FIX_ME long description
+ Abstract base class to inherit from if you want to create streams
+ implementing the same API as node crypto Hash 1. For example
+ function MyHash () {
+  HashBase.call(64) // in bytes
+ }
+ inherits(MyHash, HashBase)
+ MyHash.prototype._update = function () {
+  // hashing one block with buffer this._block
+ }
+ MyHash.prototype._digest = function () {
+  // create padding and produce result
+ }
  .
  Node.js is an event-based server-side JavaScript engine.

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



More information about the Pkg-javascript-commits mailing list