<commit_before># schedula.js 

priority based work scheduler for javascript.

- ~700 bytes minified+gzipped

[![npm](https://img.shields.io/npm/v/schedula.svg?style=flat)](https://www.npmjs.com/package/schedula) [![licence](https://img.shields.io/badge/licence-MIT-blue.svg?style=flat)](https://github.com/thysultan/schedula.js/blob/master/LICENSE.md)


## Browser Support

* Edge
* IE 8+
* Chrome
* Firefox
* Safari
* Node

## Installation

#### direct download

```html
<script src=schedula.min.js></script>
```

#### CDN

```html
<script src=https://unpkg.com/schedula.js@0.1.2/schedula.min.js></script>
```

#### npm

```
npm install md.js --save
```

## Examples

```javascript
// create a fiber
var fiber = schedula(60);

// push work
fiber.push(true, null, (a, b) => {
	console.log(a, b);
}, 3, [1, 2]);

// slow things down, this will throttle work to a 20fps budget
schedule.budget = 20;<commit_msg>readme typo<commit_after># schedula.js 

priority based work scheduler for javascript.

- ~700 bytes minified+gzipped

[![npm](https://img.shields.io/npm/v/schedula.svg?style=flat)](https://www.npmjs.com/package/schedula) [![licence](https://img.shields.io/badge/licence-MIT-blue.svg?style=flat)](https://github.com/thysultan/schedula.js/blob/master/LICENSE.md)


## Browser Support

* Edge
* IE 8+
* Chrome
* Firefox
* Safari
* Node

## Installation

#### direct download

```html
<script src=schedula.min.js></script>
```

#### CDN

```html
<script src=https://unpkg.com/schedula.js@0.1.2/schedula.min.js></script>
```

#### npm

```
npm install schedula.js --save
```

## Examples

```javascript
// create a fiber
var fiber = schedula(60);

// push work
fiber.push(true, null, (a, b) => {
	console.log(a, b);
}, 3, [1, 2]);

// slow things down, this will throttle work to a 20fps budget
schedule.budget = 20;
{'fraction_non_alphanumeric': 0.1978021978021978, 'fraction_numerical': 0.017582417582417582, 'mean_word_length': 4.202857142857143, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, 'https://': 10, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7070051', 'n_tokens_mistral': 741, 'n_tokens_neox': 667, 'n_words': 138}