{"_id":"@chengaoyuan/int64","_rev":"2-04df7bb0259e29c95fdf2713cc687b81","name":"@chengaoyuan/int64","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@chengaoyuan/int64","version":"1.0.0","description":"int64的序列化与反序列化","main":"dist/index.js","scripts":{"test":"mocha -r ts-register --colors test/*.ts","build":"node del.js && tsc -d"},"repository":{"type":"git","url":"git+https://github.com/GithubCGY/int64.git"},"keywords":["int64"],"author":{"name":"chengaoyuan"},"license":"MIT","bugs":{"url":"https://github.com/GithubCGY/int64/issues"},"homepage":"https://github.com/GithubCGY/int64#readme","devDependencies":{"@types/mocha":"^5.2.5","@types/node":"^10.12.12","mocha":"^5.2.0","ts-node":"^7.0.1","typescript":"^3.2.2"},"gitHead":"049aa4a166356bae539f3a8b3bceb3c597134d96","_id":"@chengaoyuan/int64@1.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"chengaoyuan","email":"chen.gaoyuan@qq.com"},"dist":{"integrity":"sha512-E0gcFC0kkllI6NZfu3DrEGcpCqmog6y65U+0DE0Tqe0D551mdCvfpJz9KpxWNJOsGQsYzpqKTh0MtczDZZqHLg==","shasum":"cedbe540685dcd21cf634797aa3b682ef18d49d3","tarball":"https://registry.npmjs.org/@chengaoyuan/int64/-/int64-1.0.0.tgz","fileCount":6,"unpackedSize":16761,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcE54CCRA9TVsSAnZWagAAe74P/2HoTTLyddCGTtBneGHJ\nly2ge1PCvoeWce/25UOuN/y67MQyUjiIF2kVNOnFymPLqOZCOzssAbc0v9Ll\nuRvV5tNrJLgdHs2alGzBJucOJLEPNNE+WWkg0jqXtQiAZlx7u7lff8aUZHsa\nNck25Cw6e3veDBt78itgc3QY69WciDEH4xTcBD7fsnUTg/36zOadV/TuJDrQ\nGgXCb0EgVnteRicvZo1j7U/6h8rRLoXqPJd+ftycch1igIKmxfjwl2rl6NH+\nLAqQZsscuTq7aDcIcZIV56F1xUhHWhxo90whAO9cH48LxrbXWtWywpqqZoDt\ni+oLOkqpR4lfZcPO3TZ2W7XW/cEVzQ15L3rAqel+tl/3VtF/vM20MUYd5h8c\nOW5pANbrUV+nhqJ3ho5vGupM485mlP1AmE7DvKN71WgSx7Uyn4vdYmhmB/2K\n2HBgu/FBviFMecfyZj8oerP4RIuZrzlnM+ARqMD+UPOGwqWsUqW62p64cqMo\neJbuhuNHIehj249Q1yMO60OnDgCRYmzOV1NSZGmfPSoHvJFcEnlbH5f5ejxA\nufdMap4iR5JxnIiQCPw79GUqe37gAecWd3xxouQ1mI3LUP1/IC1cDhJBPYcP\nZUabCztlSkqm9a+MOT1IK4eGDd2rL5RhOT13M8D5+EgwiyJZQgbYjs0dwWs9\nhAJn\r\n=q5aj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDtQ940AOOLvj7qNiemDwm5L//Czz5olqu5Avs0VMV1YQIgHTnVaACGl5E+JEKmV+RmkOvcNxH34HZBPJa/0ZWLOrE="}]},"maintainers":[{"name":"chengaoyuan","email":"chen.gaoyuan@qq.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/int64_1.0.0_1544789505867_0.9127508362819927"},"_hasShrinkwrap":false},"1.0.1":{"name":"@chengaoyuan/int64","version":"1.0.1","description":"int64的序列化与反序列化","main":"dist/index.js","scripts":{"test":"mocha -r ts-register --colors test/*.ts","build":"node del.js && tsc -d"},"repository":{"type":"git","url":"git+https://github.com/GithubCGY/int64.git"},"keywords":["int64"],"author":{"name":"chengaoyuan"},"license":"MIT","bugs":{"url":"https://github.com/GithubCGY/int64/issues"},"homepage":"https://github.com/GithubCGY/int64#readme","devDependencies":{"@types/mocha":"^5.2.5","@types/node":"^10.12.12","mocha":"^5.2.0","ts-node":"^7.0.1","typescript":"^3.2.2"},"gitHead":"51b6df148e33da336a19a8a715e356835fab6cf8","_id":"@chengaoyuan/int64@1.0.1","_npmVersion":"6.5.0","_nodeVersion":"10.13.0","_npmUser":{"name":"chengaoyuan","email":"chen.gaoyuan@qq.com"},"dist":{"integrity":"sha512-DmJbl5SRfcXtOCf/xnTkTUIwNF7X6u0WL6rwLo8/d+b+NBdUL0Ubdgr//Cn4jN/tf1VOVsSl3n/sJVNwyEcLPg==","shasum":"73d867c8e0629fae7ecb417d43250a7b82d27a81","tarball":"https://registry.npmjs.org/@chengaoyuan/int64/-/int64-1.0.1.tgz","fileCount":6,"unpackedSize":17982,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcFRIICRA9TVsSAnZWagAA0PAP/AqWk+cbCH9fXluFAT5F\nlTCNz2E0j4nGEREYAIhsKB/JSFC+R/rwveZtkX+3VOmWWe7Go5lPbpvK4Ekt\nE2OLvAw8fbd6JxClY3noUSkeG6Jfec1xAonZSnANphmRxNdEKQw89tBLxwip\nLw3MSGnKrHgxncx0CmYguowOrJR9Csxhrx29GqrvPWA4Fo2sl3c7AqtrThk9\n1zV4FgrI3b8NIqxLHGXkoMMw1b3YIMuRfRgyf+bBIbMxHYozyr6+08QihisT\ndWHopZIN4aBskyz4mgcEM5hfWzCQum3AMipH5IArzvrjbK6n4z2ulTprN+iz\nYbDh7WFNQ9imAc23ZXljEyrGJ4KHlBAuyNbl41hM6V9IrZ7AZwRywAZtCJ+k\nxHy5OtaVSXC5leIjDHCbjZf3s9daglFKL857ElLtdYCHkOrIYnketJywOd9K\nHiKp9J1gkhyVVaIDmEgDWb/WS4fzxN5SYizskm92sv/eaveHbFHc9CctOWwm\nobPzy9IC+rhD9nJR7K4vJsMGzD7yzEEwNm8+cZHYPSfD3BemWe984i9ns5fp\nJO/xibNbaeqsx0BJt7gKh+N3zG8e0GWqtvehggF6g5/huDt3QwcRdB72byhE\nx2WqmpV5PCqdr/OVyIW3VjA/OvF5YiKwhufilCSSbZjIqJPqExCPKI8XpQLE\nibB4\r\n=OLKc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDEF81MeJsmAVL7bJs5+oUQ0uJyYJygf2imcyod6LXtBgIgdcv2N40lRHi/EKsopS3N/n1MBecvmVBTa++/harn6pA="}]},"maintainers":[{"name":"chengaoyuan","email":"chen.gaoyuan@qq.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/int64_1.0.1_1544884743515_0.6903450566101961"},"_hasShrinkwrap":false}},"time":{"created":"2018-12-14T12:11:45.697Z","1.0.0":"2018-12-14T12:11:46.044Z","modified":"2022-04-04T22:38:53.405Z","1.0.1":"2018-12-15T14:39:03.638Z"},"maintainers":[{"name":"chengaoyuan","email":"chen.gaoyuan@qq.com"}],"description":"int64的序列化与反序列化","homepage":"https://github.com/GithubCGY/int64#readme","keywords":["int64"],"repository":{"type":"git","url":"git+https://github.com/GithubCGY/int64.git"},"author":{"name":"chengaoyuan"},"bugs":{"url":"https://github.com/GithubCGY/int64/issues"},"license":"MIT","readme":"# int64\r\n\r\n[![npm version](https://badge.fury.io/js/%40chengaoyuan%2Fint64.svg)](https://badge.fury.io/js/%40chengaoyuan%2Fint64)\r\n[![install size](https://packagephobia.now.sh/badge?p=@chengaoyuan/int64)](https://packagephobia.now.sh/result?p=@chengaoyuan/int64)\r\n[![NPM Downloads](https://img.shields.io/npm/dm/@chengaoyuan/int64.svg?style=flat)](https://npmcharts.com/compare/@chengaoyuan/int64?minimal=true)\r\n[![Build Status](https://travis-ci.org/GithubCGY/int64.svg?branch=master)](https://travis-ci.org/GithubCGY/int64)\r\n[![Coverage Status](https://coveralls.io/repos/github/GithubCGY/int64/badge.svg?branch=master)](https://coveralls.io/github/GithubCGY/int64?branch=master)\r\n\r\n## Installation\r\n\r\n    $ npm install @chengaoyuan/int64\r\n\r\n## Usage\r\n\r\n```ts\r\nimport { setInt64, setUint64, getInt64, getUint64 } from \"@chengaoyuan/int64\";\r\nconst ab = new ArrayBuffer(8);\r\nconst dv = new DataView(ab);\r\n\r\nsetInt64(dv, 0, 1234567890, false);\r\nconsole.log(getInt64(dv, 0, false)); // out: 1234567890\r\n\r\nsetInt64(dv, 0, -1234567890, true);\r\nconsole.log(getInt64(dv, 0, true)); // out: -1234567890\r\n\r\nsetUint64(dv, 0, 1234567890, false);\r\nconsole.log(getUint64(dv, 0, false)); // out: 1234567890\r\n```\r\n\r\n## Testing\r\n\r\n    $ npm test\r\n","readmeFilename":"README.md"}