-
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
666148c
commit d75fcc5
Showing
13 changed files
with
989 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
lib/ | ||
lib | ||
node_modules/ | ||
coverage/ | ||
.nyc_output/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# NodeJS + Typescript | ||
|
||
This is an example how to use `xlsx-import` in node + typescript. | ||
|
||
**LIB Version:** `2.3.1` | ||
|
||
## Usage | ||
|
||
```bash | ||
# install dependencies | ||
npm install | ||
|
||
# execute | ||
npm start | ||
|
||
# or execute and save into file | ||
./node_modules/.bin/ts-node src/index.ts > result.json | ||
``` | ||
|
||
## What happened? | ||
|
||
1. Read spreadsheet file [Invoice.xlsx](invoice.xlsx) | ||
2. Following config import invoice data | ||
3. Map, return and display data _(should be same as [result.json](result.json))_. | ||
|
||
## What is worth to see here? | ||
|
||
1. Study config and interfaces: [`invoiceConfig.ts`](src/configs/invoiceConfig.ts) | ||
2. Usage package in [`importer.ts`](src/importer.ts) | ||
|
||
## What later: | ||
|
||
1. Study documentation: [docs](./../../README.md) | ||
2. Start using `xlsx-import` in your project | ||
3. Ask a lot, report bugs and request for help: https://github.com/Siemienik/xlsx-import/issues | ||
4. [Sponsor `xlsx-import` project](https://github.com/sponsors/Siemienik) |
Binary file not shown.
Oops, something went wrong.