Skip to content
forked from DxCx/ts-xlsx

A working XLSX Library for typescript (Rebuild of the original xlsx): https://github.com/SheetJS/js-xlsx/

License

Notifications You must be signed in to change notification settings

negberts/ts-xlsx

 
 

Repository files navigation

ts-xlsx

A working XLSX Library for typescript (Rebuild of the original xlsx): https://github.com/SheetJS/js-xlsx/

Tested to be working with Angular 2!!!

How to install:

All you need to do is to install the library:

    npm install --save ts-xlsx

And then the typings for the library:

	typings install --save --global dt~xlsx

or

	npm install --save @types/xlsx

And then you can use it :)

How to use:

Just import the functions and use them.

/* You can use as namespace: */
import * as XLSX from 'ts-xlsx';
let wb: XLSX.IWorkBook = XLSX.read(...)
/* Or straight forward import */
import { read, IWorkBook } from 'ts-xlsx';
let wb: IWorkBook = read(...)

Example Respository:

if you are having troubles integrating into Angular 2, you can review this Example Repository showing a working usecase of fileDrop.

more documentation is provided by the original author of the library, as this is just a wrapper.

About

A working XLSX Library for typescript (Rebuild of the original xlsx): https://github.com/SheetJS/js-xlsx/

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 92.0%
  • TypeScript 8.0%