[Pkg-javascript-commits] [node-asn1.js] 26/202: readme: partial decode

Bastien Roucariès rouca at moszumanska.debian.org
Thu Apr 20 19:18:51 UTC 2017


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

rouca pushed a commit to branch master
in repository node-asn1.js.

commit 78639ca143ddd885d102241a0327aa2be8ceaa6a
Author: Fedor Indutny <fedor.indutny at gmail.com>
Date:   Sat Dec 7 20:55:02 2013 +0400

    readme: partial decode
---
 README.md | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/README.md b/README.md
index 8be1bfa..0c571b8 100644
--- a/README.md
+++ b/README.md
@@ -60,6 +60,20 @@ console.log(human);
 */
 ```
 
+### Partial decode
+
+Its possible to parse data without stopping on first error. In order to do it,
+you should call:
+
+```javascript
+var human = Human.decode(output, 'der', { partial: true });
+console.log(human);
+/*
+{ result: { ... },
+  errors: [ ... ] }
+*/
+```
+
 #### LICENSE
 
 This software is licensed under the MIT License.

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



More information about the Pkg-javascript-commits mailing list