# excel-to-json

> converting excel files to json files using nodejs

Latest version **1.0.0** (published 2015-05-07) · wtfpl license · 0 weekly downloads

## Install

```sh
npm install excel-to-json
pnpm add excel-to-json
yarn add excel-to-json
bun add excel-to-json
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2015-05-07 |
| First published | 2015-05-07 |
| Weekly downloads | 0 |
| License | wtfpl |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 9 |
| Author | Vinoth Babu |
| Maintainers | vinothbabu |
| Keywords | excel-to-json, excel, json, conversion |

## Links

- npm: https://www.npmjs.com/package/excel-to-json
- Repository: https://github.com/vinothbabu/excel-to-json
- Issues: https://github.com/vinothbabu/excel-to-json/issues
- npm.io page: https://npm.io/package/excel-to-json

## Dependencies (5)

- [csv](https://npm.io/package/csv.md) ~0.3.6
- [path](https://npm.io/package/path.md) ^0.11.14
- [async](https://npm.io/package/async.md) ^0.9.0
- [xlsjs](https://npm.io/package/xlsjs.md) 0.7.0
- [mkdirp](https://npm.io/package/mkdirp.md) ^0.5.0

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.0.0 (latest) — 2015-05-07

## README

# excel-to-json
-- convert excel files to json files.
-- convert multiple nested children excel files to json files.

[![Build Status](https://travis-ci.org/vinothbabu/excel2json.svg?branch=master)](https://travis-ci.org/vinothbabu/excel2json)

## Install

```
  npm install excel-to-json
```

## Usage 1

``` javascript
  var excel2json = require("excel-to-json");
  excel2json({
    input: "input",  // input directory 
    output: "output" // output directory 
   }, function(err, result) {
    if(err) {
      console.error(err);
    } else {
      console.log(result);
    }
  });
```
## Usage 2

Alternatively, you can pass the input params by parsing a json file. 
//config.json

``` json
   {
    "name": "projectname",
    "version": "1.0.0",
    "description": "",
    "trans": {
      "input": "sample",
      "output": "output"
    }
  }
```

``` javascript
  var fs = require("fs");
  var excel2json = require("excel-to-json");
  var configuration = JSON.parse(fs.readFileSync("config.json", 'utf8'));
  excel2json(configuration, function(err, result) {
    if(err) {
      console.error(err);
    } else {
      console.log(result);
    }
  });
```
## License
wtfpl@vinoth

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