{"_id":"int","_rev":"23-a9ece095363c322a4712b4a872fb041b","name":"int","description":"arbitrary precision integer and library in javascript","dist-tags":{"latest":"0.2.0"},"versions":{"0.0.1":{"author":{"name":"Roman Shtylman","email":"shtylman@gmail.com"},"name":"int","description":"arbitrary precision integer and library in pure javascript","version":"0.0.1","repository":{"type":"git","url":"git://github.com/shtylman/node-int.git"},"main":"int.js","dependencies":{},"devDependencies":{"mocha":">=1.x.x"},"optionalDependencies":{},"license":"MIT","engines":{"node":"*"},"_npmUser":{"name":"shtylman","email":"shtylman@gmail.com"},"_id":"int@0.0.1","contributors":[{"name":"Jonas Raoni"},{"name":"Soares Silva"},{"name":"Roman Shtylman","email":"shtylman@gmail.com"}],"_engineSupported":true,"_npmVersion":"1.1.19","_nodeVersion":"v0.6.16","_defaultsLoaded":true,"dist":{"shasum":"292e9251a5cbcd991b7cf983663b25a88a9b3a4e","tarball":"https://registry.npmjs.org/int/-/int-0.0.1.tgz","integrity":"sha512-MTCLH2THOVp4lv6OI/RA+Mq1P9lXWlzbuXwV0OUbuDOifkv9YmKAz9VrHo0vqlUen25ijeIyuRrWmFHqh/eEkQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD+GjOEHufFVZDvQk7of9ibRQJy6XnidECrivhCE3VNugIgewUgwVUbiNegzvnPq9yEu90CPlyo22St9MDVWtlnKR8="}]},"scripts":{},"maintainers":[{"name":"shtylman","email":"shtylman@gmail.com"}],"directories":{}},"0.0.3":{"author":{"name":"Roman Shtylman","email":"shtylman@gmail.com"},"name":"int","description":"arbitrary precision integer and library in pure javascript","version":"0.0.3","repository":{"type":"git","url":"git://github.com/shtylman/node-int.git"},"main":"int.js","dependencies":{},"devDependencies":{"mocha":">=1.x.x"},"optionalDependencies":{},"license":"MIT","engines":{"node":"*"},"_npmUser":{"name":"shtylman","email":"shtylman@gmail.com"},"_id":"int@0.0.3","contributors":[{"name":"Jonas Raoni"},{"name":"Soares Silva"},{"name":"Roman Shtylman","email":"shtylman@gmail.com"}],"_engineSupported":true,"_npmVersion":"1.1.12","_nodeVersion":"v0.6.14","_defaultsLoaded":true,"dist":{"shasum":"a198d46b7b548bf01c76fe00cfd00c396bcb16e3","tarball":"https://registry.npmjs.org/int/-/int-0.0.3.tgz","integrity":"sha512-nf9HXNmsR7VJPcd9f2JfutvB0IHLHE5Z7fr7EjDlnitgZZcMsYsg6xkKtlqqSsfgXrl9M1EhmaSIMUI9cwhBEw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFgAlvseyxfQsZxWMUMz2hBmL9Fh//ASr35kJzoHTqWMAiAW6xWrKZVHdGNyhcU7+lsOBoa6Ia4DEk9mWMMtIf0mvw=="}]},"scripts":{},"maintainers":[{"name":"shtylman","email":"shtylman@gmail.com"}],"directories":{}},"0.1.0":{"author":{"name":"Roman Shtylman","email":"shtylman@gmail.com"},"name":"int","description":"arbitrary precision integer and library in pure javascript","version":"0.1.0","repository":{"type":"git","url":"git://github.com/shtylman/node-int.git"},"main":"int.js","dependencies":{},"devDependencies":{"mocha":">=1.x.x"},"optionalDependencies":{},"license":"MIT","engines":{"node":"*"},"scripts":{"test":"mocha"},"_npmUser":{"name":"shtylman","email":"shtylman@gmail.com"},"_id":"int@0.1.0","contributors":[{"name":"Jonas Raoni"},{"name":"Soares Silva"},{"name":"Roman Shtylman","email":"shtylman@gmail.com"}],"_engineSupported":true,"_npmVersion":"1.1.12","_nodeVersion":"v0.6.14","_defaultsLoaded":true,"dist":{"shasum":"7a691c48fcd8b73489bb9e03d9c16d705da685c2","tarball":"https://registry.npmjs.org/int/-/int-0.1.0.tgz","integrity":"sha512-FYXoCp0v55s6xZ3hanw9+yImNPboCbBNREVA2xjTn0ZibCG95e1fElEDsI6WGzNRoSkdK7RD5YMC2nTe9d0/Ng==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCTX2146a9jaie2Jp1cp7r8hX94pUzVvUEgbI6DxNm2eQIhAO1djc6wN4qQBX/nmTpXj1vA4hQhAZCXLY4y4kacsNsH"}]},"maintainers":[{"name":"shtylman","email":"shtylman@gmail.com"}]},"0.1.1":{"author":{"name":"Roman Shtylman","email":"shtylman@gmail.com"},"name":"int","description":"arbitrary precision integer and library in pure javascript","version":"0.1.1","repository":{"type":"git","url":"git://github.com/shtylman/node-int.git"},"keywords":["int","integer","arbitrary"],"main":"int.js","devDependencies":{"mocha":"~1.8.0"},"license":"MIT","scripts":{"test":"mocha"},"testling":{"browsers":["ie8","ie9","firefox/15","chrome/22","safari/5.1"],"harness":"mocha-tdd","files":"test/*.js"},"contributors":[{"name":"Jonas Raoni"},{"name":"Soares Silva"},{"name":"Roman Shtylman","email":"shtylman@gmail.com"}],"_id":"int@0.1.1","dist":{"shasum":"d7c79f2f83cff505d35e86980f81fa14f3387a4c","tarball":"https://registry.npmjs.org/int/-/int-0.1.1.tgz","integrity":"sha512-jCeGYLSeiRhkkj69YzCSEhoh0BqSLyiZ45Ld+whuqoLfg2hMgCtNkbJG3wSviwio42bzVYavn3cXflxfaPIeFQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICW2b+IBYS+DVlV3q7ChRP0pmID8BWfW0IoOnB3dpCedAiAVJr0YlSVaXrOOI36njtBaFY6KvgtCpwODePSAzjODBw=="}]},"_from":".","_npmVersion":"1.2.3","_npmUser":{"name":"shtylman","email":"shtylman@gmail.com"},"maintainers":[{"name":"shtylman","email":"shtylman@gmail.com"}]},"0.1.2":{"author":{"name":"Roman Shtylman","email":"shtylman@gmail.com"},"name":"int","description":"arbitrary precision integer and library in javascript","version":"0.1.2","repository":{"type":"git","url":"git://github.com/defunctzombie/int.git"},"keywords":["int","integer","number","bignum"],"main":"int.js","devDependencies":{"zuul":"~1.7.0","mocha":"~1.8.0"},"license":"MIT","scripts":{"test":"mocha && zuul -- test/*.js","test-local":"zuul --local -- test/*.js"},"contributors":[{"name":"Jonas Raoni"},{"name":"Soares Silva"},{"name":"Roman Shtylman","email":"shtylman@gmail.com"}],"gitHead":"06b806f50702058a2ae5d9ca332295a7e529e744","bugs":{"url":"https://github.com/defunctzombie/int/issues"},"homepage":"https://github.com/defunctzombie/int","_id":"int@0.1.2","_shasum":"71b202aabb128bafd687e48f389831d51f825a93","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"shtylman","email":"shtylman@gmail.com"},"maintainers":[{"name":"shtylman","email":"shtylman@gmail.com"}],"dist":{"shasum":"71b202aabb128bafd687e48f389831d51f825a93","tarball":"https://registry.npmjs.org/int/-/int-0.1.2.tgz","integrity":"sha512-zmTKKSGQnruBcvkVdI+dBCE/JUMUou9kCNOpdiQb70kXpHtMM9LZo2A5sXlFwS0QrVOwSbgmsdYNoIxaQhxB8A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDa3R19vkVpImzMCNmjHkqeLOuwiSSt4WEKilf892J2KAIgJUl102UkB2TdVZvGAQhIZOQzHoIlWMduZYr34seLfbk="}]}},"0.2.0":{"author":{"name":"Roman Shtylman","email":"shtylman@gmail.com"},"name":"int","description":"arbitrary precision integer and library in javascript","version":"0.2.0","repository":{"type":"git","url":"git://github.com/defunctzombie/int.git"},"keywords":["int","integer","number","bignum"],"main":"int.js","devDependencies":{"zuul":"~1.13.1","mocha":"~2.0.1"},"license":"MIT","scripts":{"test":"mocha && zuul -- test/*.js","test-local":"zuul --local -- test/*.js"},"contributors":[{"name":"Jonas Raoni"},{"name":"Soares Silva"},{"name":"Roman Shtylman","email":"shtylman@gmail.com"}],"gitHead":"ec2b915665724ad7edc8a1012ddd568310fc7238","bugs":{"url":"https://github.com/defunctzombie/int/issues"},"homepage":"https://github.com/defunctzombie/int","_id":"int@0.2.0","_shasum":"589f05b03b8d8c08c918c8884784cb62a94ef47e","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"shtylman","email":"shtylman@gmail.com"},"maintainers":[{"name":"shtylman","email":"shtylman@gmail.com"}],"dist":{"shasum":"589f05b03b8d8c08c918c8884784cb62a94ef47e","tarball":"https://registry.npmjs.org/int/-/int-0.2.0.tgz","integrity":"sha512-DpVz1YLYteAWaNsgbDXzzggi+7dplHBCWXqTHp85erZ6qJjDqbM+LC29hkCBC+zeHfFd7ig8gGYbcqLpJdcuLQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBjCsC7TVw549zfI3K9PopriJeaDTwoMHTpJqonkEW97AiAnz4g8idEpngkbH02H9zbTpmEGdjycrBXZyrhb0ZKTWw=="}]}}},"readme":"[![Build Status](https://secure.travis-ci.org/defunctzombie/int.svg)](http://travis-ci.org/defunctzombie/int)\n\n**int** is an arbitrary size integer library written in javascript for node.js and browsers.\n\n## quick and dirty ##\n\n```\nnpm install int\n```\n\n```javascript\nvar int = require('int');\n\nvar large = int('1234567890').mul('1234567890');\n\nconsole.log(large.toString());\n//'1524157875019052100'\n\n// other cool stuff\nvar add_me = int('123456').add('-123456');\nvar power_up = int(2).pow(10);\n```\n\n## api ##\n\nBesides the **int** function, all of the other methods operate on the objects returned by **int**\n\n### int (value) ###\n> construct a new aribtrary precision integer\n\n> valid values are native numbers, strings, or int objects. Anything after a decimal point will be discarded\n\n### add (value) ###\n> add {value} to our number and return a new int\n\n### sub (value) ###\n> subtract {value} from our number and return a new int\n\n### mul (value) ###\n> multiply our int by {value} and return a new int\n\n### div (value) ###\n> divide our int by {value} and return a new int (can truncate)\n\n### pow (value) ###\n> raise our int by {value} and return a new int\n\n### mod (value) ###\n> mod our int by {value} and return the new int\n\n### neg ###\n> return a new int that is the negative\n\n### abs ###\n> return a new int that is the absolute value\n\n### cmp (value) ###\n> compare our value to {value}\n\n> return 0 if self and value are equal, -1 if self < value, 1 if self > value\n\n### lt (value) ###\n> return true if self < value\n\n### lte (value) ###\n> return true if self <= value\n\n### gt (value) ###\n> return true if self > value\n\n### gte (value) ###\n> return true if self >= value\n\n### eq (value) ###\n> return true if self == value\n\n### ne (value) ###\n> return true if self != value\n","maintainers":[{"name":"defunctzombie","email":"shtylman@gmail.com"}],"time":{"modified":"2022-06-19T01:39:52.632Z","created":"2012-05-01T05:01:36.650Z","0.0.1":"2012-05-01T05:01:37.266Z","0.0.2":"2012-05-01T22:19:55.671Z","0.0.3":"2012-05-02T18:23:11.351Z","0.1.0":"2012-05-09T20:54:03.005Z","0.1.1":"2013-01-27T17:46:43.064Z","0.1.2":"2014-06-29T23:20:20.825Z","0.2.0":"2014-11-25T20:51:55.986Z"},"author":{"name":"Roman Shtylman","email":"shtylman@gmail.com"},"repository":{"type":"git","url":"git://github.com/defunctzombie/int.git"},"users":{"shtylman":true,"defunctzombie":true},"homepage":"https://github.com/defunctzombie/int","keywords":["int","integer","number","bignum"],"contributors":[{"name":"Jonas Raoni"},{"name":"Soares Silva"},{"name":"Roman Shtylman","email":"shtylman@gmail.com"}],"bugs":{"url":"https://github.com/defunctzombie/int/issues"},"license":"MIT","readmeFilename":"README.md"}