1.1.0 • Published 12 months ago

@strategies/excelerator v1.1.0

Weekly downloads
-
License
MIT
Repository
bitbucket
Last release
12 months ago

Sasaki's Excelerator

We have Excel, but we want JSON or CSV

Install

yarn add @strategies/excelerator

Example

(new Excelerator())
    .load('data.xlsx')
    .sheet('DashiData')
    .row(2)
    .columns({
        'A:id': [required, trim],
        'B:name': [required, trim, replace('unnamed Rhino ', '')],
        'D:gfa': [setDefault(30000)],
        'F:cost': [required],
        'E:costPerSF': [alias('cost')],
        'G:program': [required, trim],
        'H:scenario': [replace('all scenarios', ''), nullable],
        'I:phase': [(value, source, target) => `Phase ${value}-${target['scenario']}`],
    })
    .writeJSON('../assets/projects.json', 4);
1.1.0

12 months ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago