{"_id":"ion-hash-js","_rev":"5-0a7f8cea40f97c664b0e8542d23f0447","name":"ion-hash-js","dist-tags":{"latest":"2.1.0"},"versions":{"0.1.0-SNAPSHOT":{"name":"ion-hash-js","version":"0.1.0-SNAPSHOT","description":"JavaScript implementation of Amazon Ion Hash","main":"dist/commonjs/es5/IonHash.js","types":"dist/commonjs/es5/IonHash.d.ts","scripts":{"test":"grunt test","release":"grunt release"},"repository":{"type":"git","url":"git+https://github.com/amzn/ion-hash-js.git"},"keywords":["ion","hash"],"author":{"name":"The Ion Team","email":"ion-team@amazon.com","url":"https://amzn.github.io/ion-docs/"},"license":"Apache-2.0","bugs":{"url":"https://github.com/amzn/ion-hash-js/issues"},"homepage":"https://github.com/amzn/ion-hash-js#readme","devDependencies":{"grunt":"^1.0.1","grunt-contrib-clean":"^1.0.0","grunt-ts":"^6.0.0-beta.19","grunt-typedoc":"^0.2.4","intern":"^4.4.3","typedoc":"^0.14.2","typescript":"^3.5.3"},"dependencies":{"crypto":"^1.0.1","ion-js":"^3.0.0"},"gitHead":"f1d68a48abc86492d632365e3130968c47ff99f9","_id":"ion-hash-js@0.1.0-SNAPSHOT","_nodeVersion":"12.10.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-FapBqNgTzHZEdPhmU7CuwKofz4N1lv0aFFZzdmWWkW4vuU0Ydy5iZEQkW1Vo/SA/syLJxY8JfaanAV+Zy2L6Hg==","shasum":"0fe22659bf658fbabab4219d621a122721043060","tarball":"https://registry.npmjs.org/ion-hash-js/-/ion-hash-js-0.1.0-SNAPSHOT.tgz","fileCount":57,"unpackedSize":330145,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdiK9ZCRA9TVsSAnZWagAAWVwP/RPbN111rHa29ibLwPhP\nvzxKd25wUZk0uyaUYQvJZlRPXk4ECFnmITBJ8LDCGj26sVgpDYsKEMPDe2kO\nwoptnDXe2k5+NpNYyEf0EAxPCDXVjc8UjQ0D6ubdC7YtLSfINsfjzj/geNfw\n5lE2JeqsXYvPDggaMKncWpuyRF/EIp4o6b6kp+5dOe41fRYeevRV4Vo3FT6H\ncEY7XDIU1ZrdYk1MD8KXXH/4f/s8QNVp6ACHOnzzl8e8HCxq9ynIAIWuZE1B\nUcMuSxsgUoy43a+CbUwhfDMuM3ZAPRKc28xlWVeWRLLYPNlw8SQFP1ERIGvC\nwHDIQjjwKHrhQ/45rTjZrtEitbJRe/J75Ouap9O17rBALXlH4X+yZtZU4vFm\niRaTzOyUO105U0f1WyOnA9IKf6NzXShDz3D1tiy9s0rJrxpWJ4qFBXOixjnE\noAAu8HIk8AtWfnQM3gFj70uQlMuf1Sd9NErhGM5vhI02FQKHsJOP8dwCUSJw\nm0jS906ZtvWqunXcJAZ7sNTyklTnvaf0yhLzrt4vRQvtgweMLJQ9zU4dvRHw\nqX4im218844ejw5n8Ewt0f0kyCrRybjEOW6nF8J88Vt4HMczLfzpM5dOCM/h\namqleb0/0RY4S1UT+ptNQI3125guk7jKEC7RAWCo8Eesx9naPzq94lNBT6rP\nRCvR\r\n=hWiN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCnACwBf+vhyH+KtpdPe/oRgBHKy9+LbeFwMJONKI8UJQIgHpg/86im7A6bTm747QNkTsnPVcY7KEQkjTFA8Wwsks4="}]},"maintainers":[{"name":"froid1911","email":"frank.polster@maibornwolff.de"}],"_npmUser":{"name":"froid1911","email":"frank.polster@maibornwolff.de"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ion-hash-js_0.1.0-SNAPSHOT_1569238872349_0.22838702978557546"},"_hasShrinkwrap":false},"1.0.2":{"name":"ion-hash-js","version":"1.0.2","description":"JavaScript implementation of Amazon Ion Hash","main":"dist/commonjs/es5/IonHash.js","types":"dist/commonjs/es5/IonHash.d.ts","scripts":{"test":"grunt test","release":"grunt release"},"repository":{"type":"git","url":"git+https://github.com/amzn/ion-hash-js.git"},"keywords":["ion","hash"],"author":{"name":"The Ion Team","email":"ion-team@amazon.com","url":"https://amzn.github.io/ion-docs/"},"license":"Apache-2.0","bugs":{"url":"https://github.com/amzn/ion-hash-js/issues"},"homepage":"https://github.com/amzn/ion-hash-js#readme","devDependencies":{"grunt":"^1.0.1","grunt-contrib-clean":"^1.0.0","grunt-ts":"^6.0.0-beta.19","grunt-typedoc":"^0.2.4","intern":"^4.4.3","typedoc":"^0.14.2","typedoc-plugin-no-inherit":"^1.1.10","typescript":"^3.5.3"},"dependencies":{"crypto":"^1.0.1","ion-js":"^3.1.2"},"gitHead":"ba76e6bf7301f7951e4ef6a4e26f499b7150706e","_id":"ion-hash-js@1.0.2","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"ion-team","email":"ion-team@amazon.com"},"dist":{"integrity":"sha512-kgX5eZEYZJIvo4Ewof2v0Hvubv20xQk1ufUIKIAAMSSjF77WAUKWN7SHnqxPWFQv//nlyO15cGtaZ54Bw1EAlg==","shasum":"269ce21c7de3f0947243019076c8dc810b122f73","tarball":"https://registry.npmjs.org/ion-hash-js/-/ion-hash-js-1.0.2.tgz","fileCount":41,"unpackedSize":399427,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdwd60CRA9TVsSAnZWagAAAtIP/RaIC0lNV9l00PQMaAGV\n3s3eM0QiziDlGGvfwoxbrTnY0/gXcH/qOQExlMABpxd7C1g5HLC3sRgYmx4H\nUNK4aRgAV0WgJbpvXRRvBDLCl0xxbjfwOHgV/V3pckRGUPXJ9T4w17qlvR+s\nPwfRfcf0ci/3ghaCAW+Rk/ZbxgMkwxcmkrorvDUziQIuLOdR7a/PFnOJhgU6\nql1HvsvvQN/qf19UXlLd+JTd5Mv+Vi+EWIC1uzEhgCA2UvFaiaJs1LIR+Gq0\nwKEGEpiUJIH3E9PR9pq93a1pTNKQLAc90CqNXLzQmwEDPHbSaL23J8BansB1\nj94nZUE1UJYyVnSpk4kKXk6/fHBh+tmVyuUxC5kbeaLuRWE4qyNNiAyjiluj\nFLUIK1EE4cuBXvQUjHMAH0Z3JNEJ54oIae8sdoGihhggfKye2uKHGqYakLdt\n/Mt0Ye8E6yZtmNMkxPvyB0tPMg2/nNXP8dL8/A6ocLFvPBSHmpOgNGR3YxxJ\nq89zkyzP4ImrWbtjaePl+F+TwTdR4sJX2p8zxTppHgyIyLesvVTLt+T109mp\np7pOqtudj1LmeqIEEe1Z6bP18IG2m3dlz6aEAjaMj7PeV3iVFjPEMy48x4WT\nnq7dYDH/F0DKKSkY8YkQpZL2aceDQzQ7g7NHAn48E0qKfsVS29CiPaOQ8JIA\nq1ck\r\n=RAe5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDG1pW6F2+01QDCY9kOuJ5ddifyYeilBGSsIl6x2eLwPgIgBZbK2v1/EiyhWTpohApe+2zde45lCuTi6REh8vJVZjs="}]},"maintainers":[{"name":"froid1911","email":"frank.polster@maibornwolff.de"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ion-hash-js_1.0.2_1572986548394_0.9023971303865843"},"_hasShrinkwrap":false},"1.0.3":{"name":"ion-hash-js","version":"1.0.3","description":"JavaScript implementation of Amazon Ion Hash","main":"dist/commonjs/es5/IonHash.js","types":"dist/commonjs/es5/IonHash.d.ts","scripts":{"test":"grunt test","release":"grunt release"},"repository":{"type":"git","url":"git+https://github.com/amzn/ion-hash-js.git"},"keywords":["ion","hash"],"author":{"name":"The Ion Team","email":"ion-team@amazon.com","url":"https://amzn.github.io/ion-docs/"},"license":"Apache-2.0","bugs":{"url":"https://github.com/amzn/ion-hash-js/issues"},"homepage":"https://github.com/amzn/ion-hash-js#readme","devDependencies":{"grunt":"^1.0.1","grunt-contrib-clean":"^1.0.0","grunt-ts":"^6.0.0-beta.19","grunt-typedoc":"^0.2.4","intern":"^4.4.3","typedoc":"^0.14.2","typedoc-plugin-no-inherit":"^1.1.10","typescript":"^3.5.3"},"dependencies":{"ion-js":"^3.1.2"},"gitHead":"5035c0a91784700a17d254a6e7e113ab84962cbe","_id":"ion-hash-js@1.0.3","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"ion-team","email":"ion-team@amazon.com"},"dist":{"integrity":"sha512-c1U7DW9icOrof1cfzktq/8zaPXLneDJqZhYydhTmNBbHJ+D6JHTFydp5fu+PlwirgEt6qB+wPUcaVdJPQgqKug==","shasum":"5472aaf84f1f7b5a30e8ea885794df861cf4293e","tarball":"https://registry.npmjs.org/ion-hash-js/-/ion-hash-js-1.0.3.tgz","fileCount":41,"unpackedSize":399403,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdxKCUCRA9TVsSAnZWagAAzskP/1GQ20c01+qPbRF83e8k\nyocRUKkrZY87FFGc+a/4S+Qwx2uYxX9GfEmc/IAiEdxhGBaQzuxSeM0Q0edD\n1e6jlfMm7c0X+FWrJyCQ4jXOpPbKnaRpILmb+iVQQWfBOkuS8yoXScgVJSBO\nn4bzcMoQKHnEEfA5KGv6/8D8XbQT9xtOTD9f9z/R2bwlSpw7SGCHcXwjt2Ib\n9qO10vIDijx5Y9A57i37339MKqfKlxkQ037lllz1UOYR3GmTxlRJMFKyDwyW\nw46sc6c3bz7wTXwSkT+t0e2n9xyrBQ4Cy/q2heJEq2eF3E4m2t6L+9J4CHXN\nPPtYmZGt7Zxf2LIMfE8qr6YZnndUGFErW8FhwggQYbBxjvxz+wEj7BygKN18\nj/NPB8YYp6Zq0ukgeWpuvPPlVBZwlkEQTeUW7gOlZ3CeLuxOuqU3OEF477JO\nbFUqXsknypXrQ+AfzeKCB2+YCQVWBZr+sjynvK9mP8fjMT+xl4rG2xgBAml/\nZF1MogBtDvRBJyWtqis1qkK8fIr7TeN7ZKQyLHPjVnwAQlcAlACh1FADSjuN\nWa2SxSCK7lv2fBEPNHPSLPw73Q80Fl71zuKYUXbecgbBG5sPfcPwF6/ecDES\no8sGiOaiO1Ommw40uCLnK4SpQl2XvO36BYtCaPSWSCt9S/vWFSgUfPqGLj0c\nNx08\r\n=BpTQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICq4ZHV5dHmbpGRuCzLEiiHGSsTP+swNmz2o4c5u7U2FAiAtSnMU/3JgaHebuvEOUzRKOeCb+EeUdgZCnMD7z+c1lw=="}]},"maintainers":[{"name":"froid1911","email":"frank.polster@maibornwolff.de"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ion-hash-js_1.0.3_1573167252226_0.939348805884173"},"_hasShrinkwrap":false},"2.0.0":{"name":"ion-hash-js","version":"2.0.0","description":"JavaScript implementation of Amazon Ion Hash","main":"dist/commonjs/es5/IonHash.js","types":"dist/commonjs/es5/IonHash.d.ts","scripts":{"test":"grunt test","release":"grunt release"},"repository":{"type":"git","url":"git+https://github.com/amzn/ion-hash-js.git"},"keywords":["ion","hash"],"author":{"name":"The Ion Team","email":"ion-team@amazon.com","url":"https://amzn.github.io/ion-docs/"},"license":"Apache-2.0","bugs":{"url":"https://github.com/amzn/ion-hash-js/issues"},"homepage":"https://github.com/amzn/ion-hash-js#readme","devDependencies":{"grunt":"^1.0.1","grunt-contrib-clean":"^1.0.0","grunt-ts":"^6.0.0-beta.19","grunt-typedoc":"^0.2.4","intern":"^4.4.3","ion-js":"^4.0.0","jsbi":"3.1.1","typedoc":"^0.17.3","typedoc-plugin-no-inherit":"^1.1.10","typescript":"^3.5.3"},"peerDependencies":{"ion-js":"^4.0.0","jsbi":"^3.1.1"},"gitHead":"6d29a90137a324e3208d750e6bea50c94de11ea6","_id":"ion-hash-js@2.0.0","_nodeVersion":"10.15.3","_npmVersion":"6.14.3","dist":{"integrity":"sha512-5E9YmRhxn1XGv/qftwqma1iTM0fWgfLbH8qWf6OCHIGppft7uQ+ClUkI5swNB4n9IDZ7GL0rFHINW2oPrurr5Q==","shasum":"b3fd33d01814afd9844f443c34259a4d303e1873","tarball":"https://registry.npmjs.org/ion-hash-js/-/ion-hash-js-2.0.0.tgz","fileCount":42,"unpackedSize":405101,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeg4LnCRA9TVsSAnZWagAA8AgP/33UG3rYtw7mYfN7P52M\no5HvE/3m5YrgdTEnFYAIQmUovVphkNL5vpRfsSPHOs3QiXoLFWzwgrOhYJga\nWI5GM9Mf5rcbmVm5APgiKj3b1p050BA2lWmNwk95HKNs0h65YboaGEb8Eq3T\n0RqtidLDr/rJSZ3oGaOlg3M8M/bx1dEBuegVEcHmYX0eK9T3TY5Spfven2L7\n4IttarYvH8OxdZ58m+nnow6GzMrm5px7RSfMvMt6T9bEjQfdR/WtEjboe9aH\n7OfTsmpgroiY8F2xJTWpq1X51Li6rpJ5SZKxIEyuaW4QZBzpjKxLw/yPuj6R\nY5j7Is1QdFIaLJOyV8u2UZN0sO9KSXlfSotInpwJAQfIh15nvqydNNxWfs2L\njcp1mXqpCWZ3OSNAKUgxVXKMxGTgmERGqWLGXQ5BOBMWrk7srJFUelgwNlyf\nbwej9EMUhIOwbWIvxNe5GVYypwJ+GoU9EgnqF3dm4nrDUcS7AWw8Ii79hr7c\nIpJ0OhGlMi/EhryuacfuLv5hHG5SSSJW7CKlh+o3iRJ4qrH9ZcuIP2dV0xPa\nd+k/NVVUe1trTlTPwcPFFmZkvkkc0k9kj3aloCZJ6MQyZcrjK4hvHZHnaTYc\nAS4JvGy+mNMOPwbMokss4YO9URXwimgWgQs+3Q/Dc921j8sq24x4rPP1dsID\nbl4i\r\n=/OZO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDDERqXcTTRN17pFbcYUM7UlBLwFDEEHmE+x95lgeXXzwIhAJoH1TR+UH2D9YCbmeA852R8yBV8234Q6XK2CKRPdZ6T"}]},"maintainers":[{"name":"froid1911","email":"frank.polster@maibornwolff.de"}],"_npmUser":{"name":"ion-team","email":"ion-team@amazon.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ion-hash-js_2.0.0_1585677030703_0.5580395169132131"},"_hasShrinkwrap":false},"2.1.0":{"name":"ion-hash-js","version":"2.1.0","description":"JavaScript implementation of Amazon Ion Hash","main":"dist/commonjs/es5/IonHash.js","types":"dist/commonjs/es5/IonHash.d.ts","scripts":{"test":"grunt test","release":"grunt release"},"repository":{"type":"git","url":"git+https://github.com/amazon-ion/ion-hash-js.git"},"keywords":["ion","hash"],"author":{"name":"The Ion Team","email":"ion-team@amazon.com","url":"https://amazon-ion.github.io/ion-docs/"},"license":"Apache-2.0","bugs":{"url":"https://github.com/amazon-ion/ion-hash-js/issues"},"homepage":"https://github.com/amazon-ion/ion-hash-js#readme","devDependencies":{"grunt":"^1.6.1","grunt-contrib-clean":"^1.1.0","grunt-ts":"^6.0.0-beta.22","grunt-typedoc":"^0.2.4","intern":"^4.10.1","ion-js":"^5.2.0","typedoc":"^0.25.3","typedoc-plugin-no-inherit":"^1.4.0","typescript":"^5.2.2"},"peerDependencies":{"ion-js":"^5.2.0"},"_id":"ion-hash-js@2.1.0","gitHead":"cb33265f0e9e2170a55e60842fa9a2322cc09ea5","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-DnfejpON743DsjMbyjTQD6rxtCsUnAy9UVUDHkYjUfaGPQC6NjZ22YRurxUhsrUfWZqBYkuUKjc27ASx/alqiA==","shasum":"5a6e9f1e4b43826d2fad17bcee3e88c952c12753","tarball":"https://registry.npmjs.org/ion-hash-js/-/ion-hash-js-2.1.0.tgz","fileCount":79,"unpackedSize":537298,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIElaJguQu/ZYFFRRHf2YqcOs6Oc5cCX5gH53SgrKxcYpAiEA01GXWfvtApDxN8BQYohVfbsT89cd5kjulItF1BN1fuU="}]},"_npmUser":{"name":"ion-team","email":"ion-team@amazon.com"},"directories":{},"maintainers":[{"name":"ion-team","email":"ion-team@amazon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ion-hash-js_2.1.0_1704229638593_0.43214148242843264"},"_hasShrinkwrap":false}},"time":{"created":"2019-09-23T11:41:12.348Z","0.1.0-SNAPSHOT":"2019-09-23T11:41:12.494Z","modified":"2024-01-02T21:07:19.038Z","1.0.2":"2019-11-05T20:42:28.581Z","1.0.3":"2019-11-07T22:54:12.412Z","2.0.0":"2020-03-31T17:50:30.832Z","2.1.0":"2024-01-02T21:07:18.846Z"},"maintainers":[{"name":"ion-team","email":"ion-team@amazon.com"}],"description":"JavaScript implementation of Amazon Ion Hash","homepage":"https://github.com/amazon-ion/ion-hash-js#readme","keywords":["ion","hash"],"repository":{"type":"git","url":"git+https://github.com/amazon-ion/ion-hash-js.git"},"author":{"name":"The Ion Team","email":"ion-team@amazon.com","url":"https://amazon-ion.github.io/ion-docs/"},"bugs":{"url":"https://github.com/amazon-ion/ion-hash-js/issues"},"license":"Apache-2.0","readme":"# Amazon Ion Hash JavaScript\n\nAn implementation of [Amazon Ion Hash](https://amazon-ion.github.io/ion-hash) in JavaScript.\n\n[![Build Status](https://travis-ci.org/amzn/ion-hash-js.svg?branch=master)](https://travis-ci.org/amzn/ion-hash-js)\n[![npm version](https://img.shields.io/npm/v/ion-hash-js.svg)](https://www.npmjs.com/package/ion-hash-js)\n[![license](https://img.shields.io/hexpm/l/plug.svg)](https://github.com/amazon-ion/ion-hash-js/blob/master/LICENSE)\n[![docs](https://img.shields.io/badge/docs-api-green.svg?style=flat-square)](https://amazon-ion.github.io/ion-hash-js/api)\n\n## Getting Started\n\nThis library is designed to work with Node 8/ES5/CommonJS.\n\n## Node\n\n1. Add dependencies for ion-hash-js and its peerDependencies:\n    ```\n    npm install --save ion-hash-js ion-js\n    ```\n\n1. Note the examples below assume the availability of\n   the following utility method:\n    ```javascript\n    function toHexString(byteArray) {\n        let sb = '';\n        byteArray.forEach(b => {\n            if (sb != '') { sb += ' ' }\n            sb += ('0' + (b & 0xFF).toString(16)).slice(-2);\n        });\n        return sb;\n    }\n    ```\n\n1. Use the library to generate the Ion hash of any value:\n    ```javascript\n    let ionHash = require('ion-hash-js');\n\n    let digest = ionHash.digest([1, 2, 3], 'md5');\n    console.log('digest: ' + toHexString(digest));\n    ```\n\n    produces:\n\n    ```digest:  8f 3b f4 b1 93 5c f4 69 c9 c1 0c 31 52 4b 26 25```\n\n1. Use cases for which a more efficient API is preferable\n   should consider using the low-level HashReader API\n   to generate an Ion hash:\n\n    ```javascript\n    let ion = require('ion-js');\n    let ionHash = require('ion-hash-js');\n\n    let ionStr = '[1, 2, 3]';\n    let hashReader = ionHash.makeHashReader(\n        ion.makeReader(ionStr),\n        ionHash.cryptoHasherProvider('md5'));\n    hashReader.next();\n    hashReader.next();\n\n    let digest = hashReader.digest();\n    console.log('digest: ' + toHexString(digest));\n    ```\n\n    produces:\n\n    ```digest:  8f 3b f4 b1 93 5c f4 69 c9 c1 0c 31 52 4b 26 25```\n\n1. A low-level HashWriter API may be used to generate an Ion hash\n   while writing Ion data:\n    ```javascript\n    let ion = require('ion-js');\n    let ionHash = require('ion-hash-js');\n\n    let hashWriter = ionHash.makeHashWriter(\n        ion.makeTextWriter(),\n        ionHash.cryptoHasherProvider('md5'));\n    hashWriter.stepIn(ion.IonTypes.LIST);\n    hashWriter.writeInt(1);\n    hashWriter.writeInt(2);\n    hashWriter.writeInt(3);\n    hashWriter.stepOut();\n\n    let digest = hashWriter.digest();\n    console.log('digest: ' + toHexString(digest));\n    ```\n\n    produces:\n\n    ```digest:  8f 3b f4 b1 93 5c f4 69 c9 c1 0c 31 52 4b 26 25```\n\n\n## Development\n\nThis repository contains a [git submodule](https://git-scm.com/docs/git-submodule)\ncalled `ion-hash-test`, which holds test data used by `ion-hash-js`'s unit tests.\n\nThe easiest way to clone the `ion-hash-js` repository and initialize its `ion-hash-test`\nsubmodule is to run the following command:\n\n```\n$ git clone --recursive https://github.com/amazon-ion/ion-hash-js.git ion-hash-js\n```\n\nAlternatively, the submodule may be initialized independently from the clone\nby running the following commands:\n\n```\n$ git submodule init\n$ git submodule update\n```\n\n\n## Known Issues\n\nAny tests commented out in [tests/ion_hash_tests.ion](https://github.com/amazon-ion/ion-hash-js/blob/master/tests/ion_hash_tests.ion)\nare not expected to work at this time.\n\n\n## License\n\nThis library is licensed under the Apache 2.0 License. \n","readmeFilename":"README.md"}