New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

excelize

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

excelize

Save array of similar objects to MS Excel sheet

latest
Source
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

This package is deprecated because it is not maintained any more. It still works, but for now saving objects to csv for further convert is much better way. If you want do something complicated with MS Excel sheet yuo may look to xlsx-populate or xlsx.

excelize

Save array of similar objects to MS Excel sheet

It is just wrapper for msexcel-builder

Install

npm install excelize

Usage

excelize(obj, path, file, sheet, cb);

obj - array of objects with same keys path - where to save file file - name for new Excel file (xlsx) sheet - name for sheet cb - callback

Example

var excelize = require('excelize');

var testObj = [
    {name: 'Alice', age: '20'},
    {name: 'Bob', age: '21'},
    {name: 'Chuck', age: '22'}
];

excelize(testObj, './', 'sample.xlsx', 'sheet', function(err){
    if (err)
        throw err;
    else
        console.log('congratulations, your workbook created');
});

License

MIT

Keywords

Excel

FAQs

Package last updated on 05 Jun 2018

Did you know?

Socket

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.

Install

Related posts