![Introducing Enhanced Alert Actions and Triage Functionality](https://cdn.sanity.io/images/cgdhsj6q/production/fe71306d515f85de6139b46745ea7180362324f0-2530x946.png?w=800&fit=max&auto=format)
Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
libxl
Advanced tools
Readme
Node.js bindings for libxl.
Pull the library into your project with npm install libxl
and require the module via
var xl = require('libxl');
A new excel document is created via
var xlsBook = new xl.Book(xl.BOOK_TYPE_XLS);
or
var xlsxBook = new xl.Book(xl.BOOK_TYPE_XLSX);
(for xlsx documents). The document is written to disk via
xlsBook.writeSync('file.xls');
(loading and async writing are not implemented atm).
The API closely follows the libxl documentation. For example, adding a new sheet and writing two cells works as
var sheet = xlsBook.addSheet('Sheet 1');
sheet.writeStr(1, 0, 'A string');
sheet.writeNum(1, 1, 42);
Functions whose C++ counterpart returns void or an error status have been implemented to return the respective instance, so it is possible to chain calls
sheet
.writeStr(1, 0, 'A string');
.writeNum(1, 1, 42);
Errors are handled by throwing exceptions.
API coverage is a work in progress; see demo.js, jasmine specs and the class initializers (Book::Initialize, Sheet::Initialize, Format::Initialize) to find out what is currently supported :).
If you have purchased a licence key from XLware, you can
build it into the bindings by modifying api_key.h
and
rebuilding the library via node-gyp rebuild
(you'll have
to install node-gyp for this) or npm install
in the package
directory. I might implement book.setKey
at some point in the
future, too.
The package currently supports Linux and Windows. Mac support should be trivial to add, feel free to make a pull request if you need it before I find time and a mac ;)
I'll be happy to merge in all sensible pull requests. If you implement a new API method, please add a short test to the jasmine specs and a call to demo.js (if applicable).
FAQs
Node bindings for the libxl library for reading and writing excel (XLS and XLSX) spreadsheets.
We found that libxl demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.