{"_id":"chromium-pickle","_rev":"3373284","name":"chromium-pickle","description":"Binary value packing and unpacking","dist-tags":{"latest":"0.1.4"},"maintainers":[{"name":"jlord","email":"to.jlord@gmail.com"},{"name":"kevinsawicki","email":""},{"name":"zcbenz","email":"zcbenz@gmail.com"},{"name":"zeke","email":"zeke@sikelianos.com"}],"time":{"modified":"2024-08-26T02:57:26.000Z","created":"2014-09-21T14:59:33.964Z","0.1.4":"2015-01-15T19:03:29.232Z","0.1.3":"2014-09-27T14:48:58.750Z","0.1.2":"2014-09-24T05:30:45.665Z","0.1.1":"2014-09-22T04:08:00.215Z","0.1.0":"2014-09-21T14:59:33.964Z"},"users":{},"repository":{"type":"git","url":"https://github.com/atom/node-chromium-pickle.git"},"versions":{"0.1.4":{"main":"./lib/main.js","name":"chromium-pickle","description":"Binary value packing and unpacking","version":"0.1.4","licenses":[{"type":"MIT","url":"http://github.com/atom/node-chromium-pickle/raw/master/LICENSE"}],"repository":{"type":"git","url":"https://github.com/atom/node-chromium-pickle.git"},"bugs":{"url":"https://github.com/atom/node-chromium-pickle/issues"},"dependencies":{"bindings":"1.1.0","native-mate":"0.2.6"},"scripts":{"install":"node-gyp rebuild"},"gypfile":true,"gitHead":"2a9a9c4cb02d859cd9d92084f95c95365269c86b","homepage":"https://github.com/atom/node-chromium-pickle","_id":"chromium-pickle@0.1.4","_shasum":"09a951705c31a9c4a2d817bc0e9057491fc3c4b7","_from":".","_npmVersion":"2.1.11","_nodeVersion":"0.10.33","_npmUser":{"name":"zcbenz","email":"zcbenz@gmail.com"},"maintainers":[{"name":"jlord","email":"to.jlord@gmail.com"},{"name":"kevinsawicki","email":""},{"name":"zcbenz","email":"zcbenz@gmail.com"},{"name":"zeke","email":"zeke@sikelianos.com"}],"dist":{"shasum":"09a951705c31a9c4a2d817bc0e9057491fc3c4b7","size":9495,"noattachment":false,"key":"/chromium-pickle/-/chromium-pickle-0.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/chromium-pickle/download/chromium-pickle-0.1.4.tgz"},"directories":{},"publish_time":1421348609232,"_hasShrinkwrap":false,"_cnpm_publish_time":1421348609232,"_cnpmcore_publish_time":"2021-12-16T17:30:25.373Z","hasInstallScript":true},"0.1.3":{"main":"./lib/main.js","name":"chromium-pickle","description":"Binary value packing and unpacking","version":"0.1.3","licenses":[{"type":"MIT","url":"http://github.com/atom/node-chromium-pickle/raw/master/LICENSE"}],"repository":{"type":"git","url":"https://github.com/atom/node-chromium-pickle.git"},"bugs":{"url":"https://github.com/atom/node-chromium-pickle/issues"},"dependencies":{"bindings":"1.1.0","native-mate":"0.2.5"},"scripts":{"install":"node-gyp rebuild"},"gypfile":true,"gitHead":"389b405f027ba2bf1fe37d82a20af7bcc742a2cc","homepage":"https://github.com/atom/node-chromium-pickle","_id":"chromium-pickle@0.1.3","_shasum":"237d063069132287fbe6fe08536d25a42617132c","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"zcbenz","email":"zcbenz@gmail.com"},"maintainers":[{"name":"jlord","email":"to.jlord@gmail.com"},{"name":"kevinsawicki","email":""},{"name":"zcbenz","email":"zcbenz@gmail.com"},{"name":"zeke","email":"zeke@sikelianos.com"}],"dist":{"shasum":"237d063069132287fbe6fe08536d25a42617132c","size":9488,"noattachment":false,"key":"/chromium-pickle/-/chromium-pickle-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/chromium-pickle/download/chromium-pickle-0.1.3.tgz"},"directories":{},"publish_time":1411829338750,"_hasShrinkwrap":false,"_cnpm_publish_time":1411829338750,"_cnpmcore_publish_time":"2021-12-16T17:30:25.626Z","hasInstallScript":true},"0.1.2":{"main":"./lib/main.js","name":"chromium-pickle","description":"Binary value packing and unpacking","version":"0.1.2","licenses":[{"type":"MIT","url":"http://github.com/atom/node-chromium-pickle/raw/master/LICENSE"}],"repository":{"type":"git","url":"https://github.com/atom/node-chromium-pickle.git"},"bugs":{"url":"https://github.com/atom/node-chromium-pickle/issues"},"dependencies":{"bindings":"1.1.0","native-mate":"0.2.4"},"scripts":{"install":"node-gyp rebuild"},"gypfile":true,"homepage":"https://github.com/atom/node-chromium-pickle","_id":"chromium-pickle@0.1.2","_shasum":"402906549b53510258d0a8768fe681f49e12d240","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"zcbenz","email":"zcbenz@gmail.com"},"maintainers":[{"name":"jlord","email":"to.jlord@gmail.com"},{"name":"kevinsawicki","email":""},{"name":"zcbenz","email":"zcbenz@gmail.com"},{"name":"zeke","email":"zeke@sikelianos.com"}],"dist":{"shasum":"402906549b53510258d0a8768fe681f49e12d240","size":9554,"noattachment":false,"key":"/chromium-pickle/-/chromium-pickle-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/chromium-pickle/download/chromium-pickle-0.1.2.tgz"},"directories":{},"publish_time":1411536645665,"_hasShrinkwrap":false,"_cnpm_publish_time":1411536645665,"_cnpmcore_publish_time":"2021-12-16T17:30:25.812Z","hasInstallScript":true},"0.1.1":{"main":"./lib/main.js","name":"chromium-pickle","description":"Binary value packing and unpacking","version":"0.1.1","licenses":[{"type":"MIT","url":"http://github.com/atom/node-chromium-pickle/raw/master/LICENSE"}],"repository":{"type":"git","url":"https://github.com/atom/node-chromium-pickle.git"},"bugs":{"url":"https://github.com/atom/node-chromium-pickle/issues"},"dependencies":{"bindings":"1.1.0","native-mate":"0.2.4"},"scripts":{"install":"node-gyp rebuild"},"gypfile":true,"homepage":"https://github.com/atom/node-chromium-pickle","_id":"chromium-pickle@0.1.1","_shasum":"c3c453fcc66ea6e321bc03f5d519e65cd12ed80a","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"zcbenz","email":"zcbenz@gmail.com"},"maintainers":[{"name":"jlord","email":"to.jlord@gmail.com"},{"name":"kevinsawicki","email":""},{"name":"zcbenz","email":"zcbenz@gmail.com"},{"name":"zeke","email":"zeke@sikelianos.com"}],"dist":{"shasum":"c3c453fcc66ea6e321bc03f5d519e65cd12ed80a","size":9443,"noattachment":false,"key":"/chromium-pickle/-/chromium-pickle-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/chromium-pickle/download/chromium-pickle-0.1.1.tgz"},"directories":{},"publish_time":1411358880215,"_hasShrinkwrap":false,"_cnpm_publish_time":1411358880215,"_cnpmcore_publish_time":"2021-12-16T17:30:26.043Z","hasInstallScript":true},"0.1.0":{"main":"./lib/main.js","name":"chromium-pickle","description":"Binary value packing and unpacking","version":"0.1.0","licenses":[{"type":"MIT","url":"http://github.com/atom/node-chromium-pickle/raw/master/LICENSE"}],"repository":{"type":"git","url":"https://github.com/atom/node-chromium-pickle.git"},"bugs":{"url":"https://github.com/atom/node-chromium-pickle/issues"},"dependencies":{"bindings":"1.1.0","native-mate":"0.2.4"},"scripts":{"install":"node-gyp rebuild"},"gypfile":true,"gitHead":"70e6a5f0f2f59f700e96ce2ed84e11b35fe39109","homepage":"https://github.com/atom/node-chromium-pickle","_id":"chromium-pickle@0.1.0","_shasum":"51dcbd107e4430b795c68581f567d3199176e20d","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"zcbenz","email":"zcbenz@gmail.com"},"maintainers":[{"name":"jlord","email":"to.jlord@gmail.com"},{"name":"kevinsawicki","email":""},{"name":"zcbenz","email":"zcbenz@gmail.com"},{"name":"zeke","email":"zeke@sikelianos.com"}],"dist":{"shasum":"51dcbd107e4430b795c68581f567d3199176e20d","size":9444,"noattachment":false,"key":"/chromium-pickle/-/chromium-pickle-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/chromium-pickle/download/chromium-pickle-0.1.0.tgz"},"directories":{},"publish_time":1411311573964,"_hasShrinkwrap":false,"_cnpm_publish_time":1411311573964,"_cnpmcore_publish_time":"2021-12-16T17:30:26.256Z","hasInstallScript":true}},"readme":"# chromium-pickle\n\nThis module ports Chromium's `Pickle` class to Node, see `Pickle`'s header for\nintroduction:\n\n> This class provides facilities for basic binary value packing and unpacking.\n>\n> The Pickle class supports appending primitive values (ints, strings, etc.)\n> to a pickle instance.  The Pickle instance grows its internal memory buffer\n> dynamically to hold the sequence of primitive values.   The internal memory\n> buffer is exposed as the \"data\" of the Pickle.  This \"data\" can be passed\n> to a Pickle object to initialize it for reading.\n>\n> When reading from a Pickle object, it is important for the consumer to know\n> what value types to read and in what order to read them as the Pickle does\n> not keep track of the type of data written to it.\n>\n> The Pickle's data has a header which contains the size of the Pickle's\n> payload.  It can optionally support additional space in the header.  That\n> space is controlled by the header_size parameter passed to the Pickle\n> constructor.\n\n## Install\n\n```bash\n$ npm install chromium-pickle\n```\n\n## Usage\n\n### createEmpty()\n\nReturns an empty `Pickle` object.\n\n### createFromBuffer(buffer)\n\n* `buffer` Buffer\n\nReturns a `Pickle` object that initialized from a `buffer`. The data is not\ncopied so you have to ensure the `buffer` lives when using the Pickle object,\nand you should never modify the Pickle object created this way.\n\n### Pickle.createIterator()\n\nReturns a `PickleIterator` object that can be used to read data from this\n`Pickle` object.\n\n### Pickle.toBuffer()\n\nReturns a `Buffer` object that contains this `Pickle` object's data.\n\n### Pickle.writeBool(value)\n\nWrites `value` to `Pickle` object as `bool`. Returns `true` when succeeded and\nreturns `false` when failed.\n\n### Pickle.writeInt(value)\n\nWrites `value` to `Pickle` object as `int`. Returns `true` when succeeded and\nreturns `false` when failed.\n\n### Pickle.writeUInt32(value)\n\nWrites `value` to `Pickle` object as `uint32`. Returns `true` when succeeded and\nreturns `false` when failed.\n\n### Pickle.writeInt64(value)\n\nWrites `value` to `Pickle` object as `int64`. Returns `true` when succeeded and\nreturns `false` when failed.\n\n### Pickle.writeUInt64(value)\n\nWrites `value` to `Pickle` object as `uint64`. Returns `true` when succeeded and\nreturns `false` when failed.\n\n### Pickle.writeFloat(value)\n\nWrites `value` to `Pickle` object as `float`. Returns `true` when succeeded and\nreturns `false` when failed.\n\n### Pickle.writeDouble(value)\n\nWrites `value` to `Pickle` object as `Double`. Returns `true` when succeeded and\nreturns `false` when failed.\n\n### Pickle.writeString(str)\n\n* `str` String\n\nWrites `str` to `Pickle` object. Returns `true` when succeeded and returns\n`false` when failed.\n\n### PickleIterator.readBool()\n\nReturns current value as `bool` and seeks to next data. A`TypeError` exception\nwould be thrown when failed.\n\n### PickleIterator.readInt()\n\nReturns current value as `int` and seeks to next data. A`TypeError` exception\nwould be thrown when failed.\n\n### PickleIterator.readUInt32()\n\nReturns current value as `uint32` and seeks to next data. A`TypeError` exception\nwould be thrown when failed.\n\n### PickleIterator.readInt64()\n\nReturns current value as `int64` and seeks to next data. A`TypeError` exception\nwould be thrown when failed.\n\n### PickleIterator.readUInt64()\n\nReturns current value as `uint64` and seeks to next data. A`TypeError` exception\nwould be thrown when failed.\n\n### PickleIterator.readFloat()\n\nReturns current value as `float` and seeks to next data. A`TypeError` exception\nwould be thrown when failed.\n\n### PickleIterator.readDouble()\n\nReturns current value as `double` and seeks to next data. A`TypeError` exception\nwould be thrown when failed.\n\n### PickleIterator.readString()\n\nReturns current value as `String` and seeks to next data. A`TypeError` exception\nwould be thrown when failed.\n","_attachments":{},"homepage":"https://github.com/atom/node-chromium-pickle","bugs":{"url":"https://github.com/atom/node-chromium-pickle/issues"}}