{"name":"sinon","version":"20.0.0","keywords":["sinon","test","testing","unit","stub","spy","fake","time","clock","mock","xhr","assert"],"author":{"name":"Christian Johansen"},"license":"BSD-3-Clause","_id":"sinon@20.0.0","maintainers":[{"name":"fatso83","email":"carlerik@gmail.com"},{"name":"cjohansen","email":"christian@cjohansen.no"},{"name":"mantoni","email":"mail@maxantoni.de"},{"name":"mrgnrdrck","email":"morgan@roderick.dk"}],"homepage":"https://sinonjs.org/","bugs":{"url":"http://github.com/sinonjs/sinon/issues"},"cdn":"./pkg/sinon.js","esm":{"cjs":{"cache":true,"mutableNamespace":false},"mode":"auto"},"nyc":{"reporter":["text","lcovonly"],"temp-dir":"coverage/.nyc_output","instrument":false},"dist":{"shasum":"4b653468735f7152ba694d05498c2b5d024ab006","tarball":"http://registry-npm.ywwl.com/sinon/download/sinon-20.0.0.tgz","fileCount":48,"integrity":"sha512-+FXOAbdnj94AQIxH0w1v8gzNxkawVvNqE3jUzRLptR71Oykeu2RrQXXl/VQjKay+Qnh73fDt/oDfMo6xMeDQbQ==","signatures":[{"sig":"MEQCIG90++QMU6anXo+861ZFqit+MdvMWYLOi6VIXGT8vA4oAiBAJ9fRh89jFQprwTgkafOuLJ4eMNi76slnEr+g/ZWoDw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2076115,"size":444598,"noattachment":false,"key":"/sinon/-/sinon-20.0.0.tgz"},"main":"./lib/sinon.js","type":"module","module":"./pkg/sinon-esm.js","browser":"./lib/sinon.js","exports":{".":{"import":"./pkg/sinon-esm.js","browser":"./pkg/sinon-esm.js","require":"./lib/sinon.js"},"./*":"./*"},"funding":{"url":"https://opencollective.com/sinon","type":"opencollective"},"gitHead":"ba7a21a12146625a4d62ad452f06e847577ec16c","mochify":{"spec":"test/**/*-test.js","bundle":"esbuild --bundle --sourcemap=inline --define:process.env.NODE_DEBUG=\"\" --external:fs","timeout":10000,"reporter":"dot","bundle_stdin":"require"},"scripts":{"lint":"eslint --max-warnings 0 '**/*.{js,cjs,mjs}'","test":"npm run test-node && npm run test-headless && npm run test-webworker","build":"node ./build.cjs","version":"./scripts/version.sh","prebuild":"rimraf pkg && npm run check-dependencies && npm run update-compatibility","test-dev":"npm run test-node --  -n watch -n  watch-path=test --node-option watch-path=lib -R min","postbuild":"npm run test-esm-support && npm run test-esm-browser-build","test-docs":"cd docs; make check-links","test-node":"mocha --recursive -R dot \"test/**/*-test.js\"","build-docs":"cd docs; make build","preversion":"./scripts/preversion.sh","serve-docs":"cd docs; make livereload","test-cloud":"./scripts/test-cloud.sh","postversion":"./scripts/postversion.sh","test-coverage":"nyc nyc --exclude-after-remap false mochify --driver puppeteer --bundle 'node coverage.cjs'","test-headless":"mochify --driver puppeteer","prepublishOnly":"npm run build","prettier:check":"prettier --check '**/*.{js,css,md}'","prettier:write":"prettier --write '**/*.{js,css,md}'","test-webworker":"mochify --driver puppeteer --serve . test/webworker/webworker-support-assessment.js","test-esm-support":"mocha test/es2015/module-support-assessment-test.mjs","pretest-webworker":"npm run build","check-dependencies":"dependency-check package.json --no-dev --ignore-module esm","update-compatibility":"node ./scripts/update-compatibility.cjs","test-esm-browser-build":"node test/es2015/check-esm-bundle-is-runnable.js","test-runnable-examples":"docs/release-source/release/examples/run-test.sh"},"_npmUser":{"name":"mrgnrdrck","email":"morgan@roderick.dk"},"jsdelivr":"./pkg/sinon.js","repository":{"url":"git+ssh://git@github.com/sinonjs/sinon.git","type":"git"},"_npmVersion":"10.7.0","description":"JavaScript test spies, stubs and mocks.","directories":{},"lint-staged":{"*.js":"eslint --quiet","*.mjs":"eslint --quiet --ext mjs --parser-options=sourceType:module","**/*.{js,css,md}":"prettier --write"},"_nodeVersion":"18.20.3","dependencies":{"diff":"^7.0.0","supports-color":"^7.2.0","@sinonjs/samsam":"^8.0.1","@sinonjs/commons":"^3.0.1","@sinonjs/fake-timers":"^13.0.5"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^17.0.0","debug":"^4.3.7","mocha":"^10.7.3","rimraf":"^6.0.1","semver":"^7.6.3","esbuild":"^0.23.1","shelljs":"^0.8.5","babelify":"^10.0.0","prettier":"^3.3.3","get-stdin":"^9.0.0","puppeteer":"^23.3.0","browserify":"^16.5.2","@babel/core":"^7.25.2","lint-staged":"^15.2.10","@mochify/cli":"^0.4.1","@studio/changes":"^3.0.0","@sinonjs/referee":"^11.0.1","dependency-check":"^4.1.0","babel-plugin-istanbul":"^7.0.0","@sinonjs/eslint-config":"^5.0.3","esbuild-plugin-istanbul":"^0.3.0","@mochify/driver-puppeteer":"^0.4.0","@mochify/driver-webdriver":"^0.2.1","@sinonjs/eslint-plugin-no-prototype-methods":"^0.1.1"},"_npmOperationalInternal":{"tmp":"tmp/sinon_20.0.0_1742840557099_0.3161752354441969","host":"s3://npm-registry-packages-npm-production"},"readme":"<h1 align=center>\n    <a href=\"https://sinonjs.org\" title=\"Sinon.JS\">\n        <img alt=\"Sinon.JS\" src=\"https://sinonjs.org/assets/images/logo.png\">\n    </a>\n    <br>\n    Sinon.JS\n</h1>\n\n<p align=center>\n    Standalone and test framework agnostic JavaScript test spies, stubs and mocks (pronounced \"sigh-non\", named after <a href=\"https://en.wikipedia.org/wiki/Sinon\">Sinon, the warrior</a>).\n</p>\n\n<p align=center>\n<a href=\"https://www.npmjs.com/package/sinon\"><img src=\"https://img.shields.io/npm/v/sinon.svg?style=flat\" alt=\"npm version\"></a>\n<a href=\"https://saucelabs.com/u/sinonjs\"><img src=\"https://saucelabs.com/buildstatus/sinonjs\" alt=\"Sauce Test Status\"/></a>\n<a href=\"https://codecov.io/gh/sinonjs/sinon\"><img src=\"https://codecov.io/gh/sinonjs/sinon/branch/master/graph/badge.svg\" alt=\"Codecov status\"></a>\n<a href=\"#backers\"><img src=\"https://opencollective.com/sinon/backers/badge.svg\" alt=\"OpenCollective\"></a>\n<a href=\"#sponsors\"><img src=\"https://opencollective.com/sinon/sponsors/badge.svg\" alt=\"OpenCollective\"></a>\n<a href=\"https://www.npmjs.com/package/sinon\" target=\"_blank\"><img src=\"https://img.shields.io/npm/dm/sinon.svg\" alt=\"npm downloads per month\"></a>\n<a href=\"https://cdnjs.com/libraries/sinon.js\" target=\"_blank\"><img src=\"https://img.shields.io/cdnjs/v/sinon.js.svg\" alt=\"CDNJS version\"></a>\n<a href=\"CODE_OF_CONDUCT.md\"><img src=\"https://img.shields.io/badge/Contributor%20Covenant-v2.0%20adopted-ff69b4.svg\" alt=\"Contributor Covenant\" /></a>\n</p>\n\n<!-- Shows an outdated badge. Will not be fixed until https://github.com/sinonjs/fake-timers/pull/395 ships.\n<p align=center>\n<a href=\"https://app.saucelabs.com/u/sinonjs\">\n  <img src=\"https://app.saucelabs.com/browser-matrix/sinonjs.svg\" alt=\"Sauce Test Status\"/>\n</a>\n</p>\n-->\n\n## Compatibility\n\nFor details on compatibility and browser support, please see [`COMPATIBILITY.md`](COMPATIBILITY.md)\n\n## Installation\n\nvia [npm](https://github.com/npm/npm)\n\n    $ npm install sinon\n\nor via Sinon's browser builds available for download on the [homepage](https://sinonjs.org/releases/).\nThere are also [npm based CDNs](https://sinonjs.org/releases#npm-cdns) one can use.\n\n## Usage\n\nSee the [sinon project homepage](https://sinonjs.org/) for documentation on usage.\n\nIf you have questions that are not covered by the documentation, you can [check out the `sinon` tag on Stack Overflow](https://stackoverflow.com/questions/tagged/sinon).\n\n## Goals\n\n- No global pollution\n- Easy to use\n- Require minimal “integration”\n- Easy to embed seamlessly with any testing framework\n- Easily fake any interface\n- Ship with ready-to-use fakes for timers\n\n## Contribute?\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md) for details on how you can contribute to Sinon.JS. Artifact-first [contract tests](CONTRIBUTING.md#contract-tests) are used to protect public APIs during migration.\nThe `lib/` directory is generated build output and is not committed to the repository; run `npm run build` to regenerate it locally when needed.\n\n## Backers\n\nThank you to all our backers! 🙏 [[Become a backer](https://opencollective.com/sinon#backer)]\n\n<a href=\"https://opencollective.com/sinon#backers\" target=\"_blank\"><img src=\"https://opencollective.com/sinon/backers.svg?width=890\"></a>\n\n## Sponsors\n\nBecome a sponsor and get your logo on our README on GitHub with a link to your site. [[Become a sponsor](https://opencollective.com/sinon#sponsor)]\n\n<a href=\"https://opencollective.com/sinon/sponsor/0/website\" target=\"_blank\"><img src=\"https://opencollective.com/sinon/sponsor/0/avatar.svg\"></a>\n<a href=\"https://opencollective.com/sinon/sponsor/1/website\" target=\"_blank\"><img src=\"https://opencollective.com/sinon/sponsor/1/avatar.svg\"></a>\n<a href=\"https://opencollective.com/sinon/sponsor/2/website\" target=\"_blank\"><img src=\"https://opencollective.com/sinon/sponsor/2/avatar.svg\"></a>\n<a href=\"https://opencollective.com/sinon/sponsor/3/website\" target=\"_blank\"><img src=\"https://opencollective.com/sinon/sponsor/3/avatar.svg\"></a>\n<a href=\"https://opencollective.com/sinon/sponsor/4/website\" target=\"_blank\"><img src=\"https://opencollective.com/sinon/sponsor/4/avatar.svg\"></a>\n<a href=\"https://opencollective.com/sinon/sponsor/5/website\" target=\"_blank\"><img src=\"https://opencollective.com/sinon/sponsor/5/avatar.svg\"></a>\n<a href=\"https://opencollective.com/sinon/sponsor/6/website\" target=\"_blank\"><img src=\"https://opencollective.com/sinon/sponsor/6/avatar.svg\"></a>\n<a href=\"https://opencollective.com/sinon/sponsor/7/website\" target=\"_blank\"><img src=\"https://opencollective.com/sinon/sponsor/7/avatar.svg\"></a>\n<a href=\"https://opencollective.com/sinon/sponsor/8/website\" target=\"_blank\"><img src=\"https://opencollective.com/sinon/sponsor/8/avatar.svg\"></a>\n<a href=\"https://opencollective.com/sinon/sponsor/9/website\" target=\"_blank\"><img src=\"https://opencollective.com/sinon/sponsor/9/avatar.svg\"></a>\n<a href=\"https://opencollective.com/sinon/sponsor/10/website\" target=\"_blank\"><img src=\"https://opencollective.com/sinon/sponsor/10/avatar.svg\"></a>\n\n## Licence\n\nSinon.js was released under [BSD-3](LICENSE)\n","publish_time":1742840557428,"_cnpm_publish_time":1742840557428,"dist-tags":{"latest":"22.1.0"}}