> For the complete documentation index, see [llms.txt](https://dsheiko.gitbook.io/bycontract/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dsheiko.gitbook.io/bycontract/where-to-use-it.md).

# Where to use it

### Node.js

```bash
npm install bycontract
```

```javascript
const { validate } = require( "bycontract" );
validate( 1, "number|string" );
```

### Browser

```javascript
<script src="dist/byContract.min.js"></script>
<script>
  const { validate } =  byContract;
  validate( 1, "number|string" );
</script>
```

### ES6 Module / Webpack

```bash
npm install bycontract
```

```javascript
import { validate } from "bycontract";
validate( 1, "number|string" );
```
