@strategies/excelerator
TypeScript icon, indicating that this package has built-in type declarations

1.0.7 • Public • Published

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);

Readme

Keywords

none

Package Sidebar

Install

npm i @strategies/excelerator

Weekly Downloads

2

Version

1.0.7

License

MIT

Unpacked Size

5.35 MB

Total Files

11

Last publish

Collaborators

  • scottdpenman
  • tadiraman
  • sasaki-dev
  • arminakvn
  • eyoungberg
  • sasaki-strategies