Sinon.JS standalone
This repository contains standalone builds of Sinon.js,
ready to be used. All builds are directly fetched from sinonjs.org and tagged.
Installation
Via npm:
npm install sinon-dist
Install a specific version:
npm install sinon-dist@1.15.1
Install the latest version and save the version in package.json
:
npm install sinon-dist --save-dev
Usage
Web page
<script src="node_modules/sinon.js"></script>
AMD
require.config({
sinon: 'node_modules/sinon'
});
require(['sinon'], function(sinon) {
});
Node.js (CommonJS)
var sinon = require('sinon');
References
This repository is not affiliated in any way with the original authors of
Sinon.js.