{"_id":"negative-zero","_rev":"4215865","name":"negative-zero","description":"Check if a number is negative zero","dist-tags":{"latest":"4.0.0"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2026-03-04T17:10:39.000Z","created":"2015-05-20T21:43:28.980Z","4.0.0":"2021-05-03T09:43:48.693Z","3.0.0":"2019-04-23T07:56:16.909Z","2.0.0":"2016-11-15T19:16:46.414Z","1.0.0":"2015-05-20T21:43:28.980Z"},"users":{},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/negative-zero.git"},"versions":{"4.0.0":{"name":"negative-zero","version":"4.0.0","description":"Check if a number is negative zero","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/negative-zero.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["number","is","check","detect","negative","zero"],"devDependencies":{"ava":"^1.4.1","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"ed8963aaace3977421b65dc2d296e489564d2019","bugs":{"url":"https://github.com/sindresorhus/negative-zero/issues"},"homepage":"https://github.com/sindresorhus/negative-zero#readme","_id":"negative-zero@4.0.0","_nodeVersion":"16.0.0","_npmVersion":"7.5.4","dist":{"shasum":"449904a16edafac7c6897fc353f8bd697d21a668","size":1477,"noattachment":false,"key":"/negative-zero/-/negative-zero-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/negative-zero/download/negative-zero-4.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/negative-zero_4.0.0_1620035028553_0.5083868970620207"},"_hasShrinkwrap":false,"publish_time":1620035028693,"deprecated":"Deprecated. Just use `Object(number, -0)`.","_cnpm_publish_time":1620035028693,"_cnpmcore_publish_time":"2021-12-17T02:54:49.029Z"},"3.0.0":{"name":"negative-zero","version":"3.0.0","description":"Check if a number is negative zero","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/negative-zero.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["number","is","check","detect","negative","zero"],"devDependencies":{"ava":"^1.4.1","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"9d8abf69be6c8f047ecb7d0877c3ffc51c32fb9f","bugs":{"url":"https://github.com/sindresorhus/negative-zero/issues"},"homepage":"https://github.com/sindresorhus/negative-zero#readme","_id":"negative-zero@3.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"b9c1dc02f6721fc8d1ab7113c6d6da1e08f2d7de","size":1496,"noattachment":false,"key":"/negative-zero/-/negative-zero-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/negative-zero/download/negative-zero-3.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/negative-zero_3.0.0_1556006176775_0.6856843888175277"},"_hasShrinkwrap":false,"publish_time":1556006176909,"_cnpm_publish_time":1556006176909,"_cnpmcore_publish_time":"2021-12-17T02:54:49.238Z"},"2.0.0":{"name":"negative-zero","version":"2.0.0","description":"Check if a number is negative zero","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/negative-zero.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["number","is","check","detect","negative","zero"],"devDependencies":{"ava":"*","xo":"*"},"xo":{"esnext":true},"gitHead":"960d7f14a1fd599a8772995f0e6ca344f285dc92","bugs":{"url":"https://github.com/sindresorhus/negative-zero/issues"},"homepage":"https://github.com/sindresorhus/negative-zero#readme","_id":"negative-zero@2.0.0","_shasum":"ee301aa3014b40180916a19e37792a3756708557","_from":".","_npmVersion":"3.10.9","_nodeVersion":"7.1.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"ee301aa3014b40180916a19e37792a3756708557","size":1432,"noattachment":false,"key":"/negative-zero/-/negative-zero-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/negative-zero/download/negative-zero-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/negative-zero-2.0.0.tgz_1479237406184_0.09231027821078897"},"directories":{},"publish_time":1479237406414,"_hasShrinkwrap":false,"_cnpm_publish_time":1479237406414,"_cnpmcore_publish_time":"2021-12-17T02:54:49.456Z"},"1.0.0":{"name":"negative-zero","version":"1.0.0","description":"Check if a number is negative zero","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/negative-zero.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":["number","is","check","detect","negative","zero"],"devDependencies":{"ava":"0.0.4"},"gitHead":"0bc187ffd77c0e6d32b5b03a2555ae5be20866d0","bugs":{"url":"https://github.com/sindresorhus/negative-zero/issues"},"homepage":"https://github.com/sindresorhus/negative-zero#readme","_id":"negative-zero@1.0.0","_shasum":"9af422f36effb2dc582bcdc66b86bf1adba11605","_from":".","_npmVersion":"2.10.0","_nodeVersion":"0.12.3","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"9af422f36effb2dc582bcdc66b86bf1adba11605","size":1448,"noattachment":false,"key":"/negative-zero/-/negative-zero-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/negative-zero/download/negative-zero-1.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1432158208980,"_hasShrinkwrap":false,"_cnpm_publish_time":1432158208980,"_cnpmcore_publish_time":"2021-12-17T02:54:49.656Z"}},"readme":"Deprecated. Just use `Object(number, -0)`.\n\n---\n\n\n# negative-zero\n\n> Check if a number is [negative zero](https://en.wikipedia.org/wiki/Signed_zero)\n\n\n## Install\n\n```\n$ npm install negative-zero\n```\n\n\n## Usage\n\n```js\nconst negativeZero = require('negative-zero');\n\nnegativeZero(-0);\n//=> true\n\nnegativeZero(0);\n//=> false\n\nnegativeZero(+0);\n//=> false\n```\n\n\n## Related\n\n- [positive-zero](https://github.com/sindresorhus/positive-zero) - Check if a number is positive zero\n\n\n## License\n\nMIT © [Sindre Sorhus](https://sindresorhus.com)\n","_attachments":{},"homepage":"https://github.com/sindresorhus/negative-zero#readme","bugs":{"url":"https://github.com/sindresorhus/negative-zero/issues"},"license":"MIT"}