An open API service indexing awesome lists of open source software.

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)

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.