JSPM

  • Created
  • Published
  • Downloads 17
  • Score
    100M100P100Q80685F
  • License SEE LICENSE IN <LICENSE>

SheetXL - Command line tool

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (sheetxl) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    SheetXL CLI

    This examples creates a cli for interactive with the '@sheetxl/sdk.

    This is also an entry point for debugging node functionality.

    To Run as a cli

    pnpm build
    pnpm sheetxl --verbose extract assets/simple

    ::: note Changes to packages are not auto rebuilt for running the built cli. If dev changes are needed use the launcher or the Node CLI. :::

    npx sheetxl

    In Node CLI

    wb = new Workbook()
    wb.getRange('a1').setValues([[1]])
    wb.getRange('a1').getValues()

    In Node CLI (from cli dir)

    handle = await readFile("./assets/simple.xlsx")
    wb = handle.workbook
    await writeFile("./assets/output.xlsx", wb)

    See for more on node Repl. https://nodejs.org/api/repl.html