# e2j

> ``` npm or yarn e2j

Latest version **1.0.2** (published 2019-04-29) · ISC license · 0 weekly downloads

## Install

```sh
npm install e2j
pnpm add e2j
yarn add e2j
bun add e2j
```

## 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.2 |
| Published | 2019-04-29 |
| First published | 2019-04-19 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 13.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Django |
| Maintainers | djangod |
| Keywords | excel2json |

## Links

- npm: https://www.npmjs.com/package/e2j
- Repository: https://github.com/django-d/e2j
- Homepage: https://github.com/django-d/e2j#readme
- Issues: https://github.com/django-d/e2j/issues
- npm.io page: https://npm.io/package/e2j

## 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.2 (latest) — 2019-04-29
- 1.0.1 — 2019-04-19
- 1.0.0 — 2019-04-19

## README

# e2j init

```
npm or yarn e2j

1、Make sure you have a gulp installed
2、let's get start
```

# 数组 array

| A           |  B   |   C    |           D           |    E     | F                          |
| :---------- | :--: | :----: | :-------------------: | :------: | -------------------------- |
| (备注 decs) | 主键 |  姓名  |         成绩          | 三好学生 | 家庭成员                   |
| 类型        | int  | string |        object         |   bool   | array                      |
| 字段        |  id  |  name  |         grade         | is3Good  | familys                    |
|             |  1   |  小明  | {math:100,english:80} |   true   | \[farther,mother,brother\] |
|             |  2   |  小红  | {math:100,english:80} |   true   | \[farther,mother,brother\] |
|             |  3   |  小绿  | {math:100,english:80} |   true   | \[farther,mother,brother\] |

gulp e2j =>

```
[{
    "id": 1,
    "name": "小明",
    "grade": {
        "math": 100,
        "english": 80
    },
    "is3Good": true,
    "familys": ["farther", "mother", "brother"]
}, {
    "id": 1,
    "name": "小红",
    "grade": {
        "math": 100,
        "english": 80
    },
    "is3Good": true,
    "familys": ["farther", "mother", "brother"]
}, {
    "id": 1,
    "name": "小绿",
    "grade": {
        "math": 100,
        "english": 80
    },
    "is3Good": true,
    "familys": ["farther", "mother", "brother"]
}]

```

# 对象 object

| A           |  B   |   C    |           D           |    E     | F                          |
| :---------- | :--: | :----: | :-------------------: | :------: | -------------------------- |
| (备注 decs) | 主键 |  姓名  |         成绩          | 三好学生 | 家庭成员                   |
| 类型        | int  | string |        object         |   bool   | array                      |
| \$key       |  id  |  name  |         grade         | is3Good  | familys                    |
| xiaoming    |  1   |  小明  | {math:100,english:80} |   true   | \[farther,mother,brother\] |
| xiaohong    |  2   |  小红  | {math:100,english:80} |   true   | \[farther,mother,brother\] |
| xiaolv      |  3   |  小绿  | {math:100,english:80} |   true   | \[farther,mother,brother\] |

gulp e2j =>

```
{
    "xiaoming": {
        "id": 1,
        "name": "小明",
        "grade": {
            "math": 100,
            "english": 80
        },
        "is3Good": true,
        "familys": ["farther", "mother", "brother"]
    },
    "xiaohong": {
        "id": 1,
        "name": "小红",
        "grade": {
            "math": 100,
            "english": 80
        },
        "is3Good": true,
        "familys": ["farther", "mother", "brother"]
    },
    "xiaolv": {
        "id": 1,
        "name": "小绿",
        "grade": {
            "math": 100,
            "english": 80
        },
        "is3Good": true,
        "familys": ["farther", "mother", "brother"]
    }
}

```

example =>

```

var e2j = require('e2j');

gulp.task('e2j', function () {
    gulp.src('config/**.xlsx')
        .pipe(e2j({
            trace: true
        }))
        .pipe(rename((path) => {
            path.extname = ".json";
        }))
        .pipe(gulp.dest('excel'))
});

gulp e2j

```

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