# binary-support.jsx

> Binary support checking utility for JSX

Latest version **0.2.0** (published 2013-11-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install binary-support.jsx
pnpm add binary-support.jsx
yarn add binary-support.jsx
bun add binary-support.jsx
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2013-11-08 |
| First published | 2013-10-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.8.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | shibukawa |
| Maintainers | shibu |
| Keywords | jsx, lib |

## Links

- npm: https://www.npmjs.com/package/binary-support.jsx
- Repository: https://github.com/shibukawa/binary-support.jsx
- Issues: https://github.com/shibukawa/binary-support.jsx/issues
- npm.io page: https://npm.io/package/binary-support.jsx

## Alternatives

- [@cantoo/pdf-lib](https://npm.io/package/@cantoo/pdf-lib.md) — 297.9K weekly downloads
- [datatables.net-buttons](https://npm.io/package/datatables.net-buttons.md) — 200.1K weekly downloads
- [@ckeditor/ckeditor5-export-pdf](https://npm.io/package/@ckeditor/ckeditor5-export-pdf.md) — 167.0K weekly downloads
- [scanbot-web-sdk](https://npm.io/package/scanbot-web-sdk.md) — 15.0K weekly downloads
- [@syncfusion/ej2-angular-pdfviewer](https://npm.io/package/@syncfusion/ej2-angular-pdfviewer.md) — 8.8K weekly downloads

## Recent versions

- 0.2.0 (latest) — 2013-11-08
- 0.1.0 — 2013-10-21

## README

binary-support.jsx
===========================================

Synopsis
---------------

Binary support checking utility for JSX

Motivation
---------------

JavaScript has several ways to handle binary data, but each environment support some of them.
This module provides information for that to implement effective algorithm.

Code Example
---------------

```js
import "binary-support.jsx";

class _Main {
    static function main(argv : string[]) : void
    {
        length = 100;
        if (BinarySupport.uint8array)
        {
            var uArray = new Uint8Array(length);
            uArray[0] = 100;
        }
        else // It works on old IEs
        {
            var aArray = [] : int[];
            aArray[0] = 100;
        }
    }
}
```

Installation
---------------

```sh
$ npm install binary-support.jsx
```

API Reference
------------------

It provides four readonly static variables:

### BinarySupport.arraybuffer : boolean

    If `ArrayBuffer` is supported, this value become `true`.

### BinarySupport.nodebuffer : boolean

    If `Buffer` of node.js API is supported, this value become `true`.

### BinarySupport.uint8array : boolean

    If `Uint8Array` is supported, this value become `true`.

### BinarySupport.blob : boolean

    If `Blob` is supported, this value become `true`.

Development
-------------

## Repository

* Repository: git://github.com/shibukawa/binary-support.jsx.git
* Issues: https://github.com/shibukawa/binary-support.jsx/issues

## Build Sample

```sh
$ grunt build
```

## Generate API reference

```sh
$ grunt doc
```

Author
---------

* shibukawa / yoshiki@shibu.jp

License
------------

MIT

Complete license is written in `LICENSE.md`.

This checking algorithm is ported from [JSZip](http://stuk.github.io/jszip/). JSZip is released under MIT or GPL v3.

---
_Source: https://npm.io/package/binary-support.jsx · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
