question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The xlsx-import Command Line Interface

See original GitHub issue

The xlsx-import-cli package

We have cli for renderer, now we should add cli for the import. I blocked this issue earlier, because I was doubts about setting mappers in json config file - however it isn’t a problem if we use js files.

Usage:

# basic
cat invoice.xlsx > sxi config.js > result.json
sxi config.js invoice.xlsx > result.json
sxi -o result.json config.js invoice.xlsx 

#more advanced (todo)
cat invoice.xlsx > sxi config.js | sxr template.xlsx > refreshed-invoice.xlsx

Requirements

  • Added into ./packages/xlsx-import-cli
  • NPM package name: sxi (reserved on npm)
  • The interface: sxi [-o <output-file.json>] <import-config.js> [input-file.xlsx]. The input-file.xlsx isnt required if comes in sdtin.
  • Should be able to pipe with sxr (xlsx-renderer-cli).
  • Please add into main Readme.md
  • Please to make documentation

Additional info:

  • May been inspired by xlsx-renderer-cli
  • It will be nice to able cover it in 100% percent.

After

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
Metastasiscommented, Dec 12, 2020

@Siemienik Ok, sounds good. Then rest part of the issue I think is clear

0reactions
Siemienikcommented, Jan 2, 2021

Xlsx-import-cli v0.0.1-alpha1 released! Feel welcome to test alpha version 🚀

Read more comments on GitHub >

github_iconTop Results From Across the Web

XLSX Import - Command Line Interface | Siemienik Paweł
Command line interface for xlsx-import. Configurable import spreadsheet files with TS types support. Part of XToolset - collection of tools makes handling ...
Read more >
Exporting and importing Excel with command - Visual Paradigm
To import Excel to a project through command line: Browse the scripts folder under the Visual Paradigm installation directory. For Mac users, ...
Read more >
Command Line Interface CLI for Batch import of Excel to MySQL
Supports all Excel versions and doesn't require Microsoft Office install. You can import any of the following extensions (.xls, .xlsx, ..xlsm, xlw, .xla,...
Read more >
Import App Data using Command Line Interface (CLI)
Our latest addition to the Command Line Interface will allow you to import everything from your current spreadsheets and automatically create ...
Read more >
xlsx - npm
Start using xlsx in your project by running `npm i xlsx`. ... is the command-line tool included with node installations, reading spreadsheet ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found