A light tool to read/write xls.
npm install nexcel-cli -g
or
git clone https://github.com/zwf193071/nexcel-cli.git
cd nexcel-cli && npm install
npm link
Open your terminal and type nexcel
or nexcel -h
, you'll see the help infomation below:
Usage: nexcel <command>
Options:
-V, --version output the version number
-h, --help output usage information
Commands:
write|w write data into excel
read|r read excel data
This command would help you to create the xls file with data.
$ nexcel w
┌────────────┬────────┬─────┐
│ name │ sex │ age │
├────────────┼────────┼─────┤
│ Lucy Twins │ female │ 20 │
├────────────┼────────┼─────┤
│ Mike Brute │ male │ 21 │
└────────────┴────────┴─────┘
✔ New result.xls has been created successfully!
This command would help you to read the xls file you specified.
? Choose the xls file to read in the root directory result
? Choose the xls file to read in the root directory result
┌────────────┬────────┬─────┐
│ name │ sex │ age │
├────────────┼────────┼─────┤
│ Lucy Twins │ female │ 20 │
├────────────┼────────┼─────┤
│ Mike Brute │ male │ 21 │
└────────────┴────────┴─────┘
✔ result.xls has been read successfully!
MIT.