<commit_before># workbook
Wrapper for [js-xlsx](https://github.com/SheetJS/js-xlsx) providing convenient way to accumulate sheets, rows, styles.


# Install

* `npm install workbook`
* `npm install js-xlsx` 

Note that exporting styles is still in development. In the interim, use the following development branch to export styles using the `.s` attribute instead:
* `npm install protobi/js-xlsx` 


# Use

```js
var XLSX = require('xlsx');
var Workbook = require('./workbook');

var workbook = new Workbook(XLSX)
    .addRowsToSheet("Main", [
      ["This is a merged cell"],
      [
        {"v": "Blank"},
        {"v": "Red", "s": {fill: { fgColor: { rgb: "FFFF0000"}}}},
        {"v": "Green", "s": {fill: { fgColor: { rgb: "FF00FF00"}}}},<commit_msg>Add npm badge and change header levels<commit_after># workbook
Wrapper for [js-xlsx](https://github.com/SheetJS/js-xlsx) providing convenient way to accumulate sheets, rows, styles.

[![NPM](https://nodei.co/npm/workbook.png?downloads=true&stars=true)](https://nodei.co/npm/workbook/)

## Install

* `npm install workbook --save`
* `npm install js-xlsx --save` 

Note that exporting styles is still in development. In the interim, use the following development branch to export styles using the `.s` attribute instead:
* `npm install protobi/js-xlsx --save` 


## Use

```js
var XLSX = require('xlsx');
var Workbook = require('./workbook');

var workbook = new Workbook(XLSX)
    .addRowsToSheet("Main", [
      ["This is a merged cell"],
      [
        {"v": "Blank"},
        {"v": "Red", "s": {fill: { fgColor: { rgb: "FFFF0000"}}}},
        {"v": "Green", "s": {fill: { fgColor: { rgb: "FF00FF00"}}}},
{'fraction_non_alphanumeric': 0.17148014440433212, 'fraction_numerical': 0.009626955475330927, 'mean_word_length': 3.7650429799426934, 'pattern_counts': {'":': 10, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3561392', 'n_tokens_mistral': 598, 'n_tokens_neox': 558, 'n_words': 171}