https://github.com/codeyellowbv/sinon-dist
Standalone builds of Sinon.js (DO NOT USE)
https://github.com/codeyellowbv/sinon-dist
Last synced: 11 months ago
JSON representation
Standalone builds of Sinon.js (DO NOT USE)
- Host: GitHub
- URL: https://github.com/codeyellowbv/sinon-dist
- Owner: CodeYellowBV
- Created: 2015-08-11T21:16:56.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-08-12T08:47:20.000Z (almost 11 years ago)
- Last Synced: 2025-02-19T00:08:29.483Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://github.com/cjohansen/Sinon.JS/issues/805#issuecomment-130176807
- Size: 266 KB
- Stars: 0
- Watchers: 17
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sinon.JS standalone
This repository contains standalone builds of [Sinon.js](http://sinonjs.org/),
ready to be used. All builds are directly fetched from sinonjs.org and tagged.
**Note**: It appears that the official sinon package already contains standalone
builds (https://github.com/cjohansen/Sinon.JS/issues/805#issuecomment-130176807).
These are available since 1.3.0, and stored in the `node_modules/sinon/pkg/`
directory after installation via `npm install sinon`.
## Installation
Via [npm](https://docs.npmjs.com/):
```sh
npm install sinon-dist
```
Install a specific version:
```sh
npm install sinon-dist@1.15.1
```
Install the latest version and save the version in `package.json`:
```sh
npm install sinon-dist --save-dev
```
## Usage
### Web page
```html
```
### AMD
```js
require.config({
sinon: 'node_modules/sinon/sinon.js'
});
require(['sinon'], function(sinon) {
// TODO: use sinon API!
});
```
### Node.js (CommonJS)
```js
var sinon = require('sinon');
// TODO: Use sinon API!
```
## References
- API documentation: http://sinonjs.org/docs/
- Issue tracker: https://github.com/cjohansen/Sinon.JS/issues
- Source code: https://github.com/cjohansen/Sinon.JS
- Official download page: http://sinonjs.org/download/
- License: BSD (https://github.com/cjohansen/Sinon.JS/blob/master/LICENSE).
This repository is not affiliated in any way with the original authors of
Sinon.js.