Skip to content

Import data from xlsx file that match to configured pattern

License

Notifications You must be signed in to change notification settings

Metastasis/XToolset

 
 

Repository files navigation

XToolSet Banner

Fancy TypeScript / JavaScript spreadsheet package for browsers, and node, and command line tools

Helps handle spreadsheet files `xlsx` in smart way by using high level api.

Packages

NPMnpm GitHub Workflow Status codecov

It allows you to import xlsx spreadsheet file with data into your system with defined TypeScript types.

const xlsx = await importerFactory.from('./my-awesome-books.xlsx');
const books: Array<Book> = xlsx.getAllItems<Book>(config.books);

Read more ➡️

NPMnpm GitHub Workflow Status codecov

Makes generating spreadsheet files as simple as possible - it is enough one line to generate pretty customizable spreadsheet file.

const renderer = new Renderer();
await renderer.renderFromFile('./invoice-template.xlsx', invoiceData)
    .then(wb => wb.xlsx.writeFile('./invoice.xlsx'));

Read more ➡️

Command Line Tools

NPM GitHub Workflow Status

Imports data from spreadsheet file using command line.

sxi books.cfg.js my-awesome-books.xlsx > books-list.json

Read more ➡️

NPM GitHub Workflow Status

Generate spreadsheets files following by the template with view model from command line.

sxr --model invoice-data.json invoice-template.xlsx > invoice.xlsx

Read more ➡️

Examples

Examples are available in a flat structure, and they are named by using : [package_name]+[technology] - for instance xlsx-import+nodejs+ts.

See samples/

Additionally, the xlsx-renderer has lots of examples used for the integration testing. Read more.

Support

If any help needed, just feel free to create an issue. We will be really thankful for added links into stackoverflow topics if exists.

We are ready to provide paid support, in order that please contact me: hi@siemienik.pl or support@siemienik.pl.

MIT licensed

All of these tools and packages are free to use for commercial and non-commercial usages, see the MIT License.

About

Import data from xlsx file that match to configured pattern

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 99.0%
  • JavaScript 1.0%