Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

atomantic-edit-xlsx

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

atomantic-edit-xlsx

Edit an existing xlsx file.

  • 0.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

adr-edit-xlsx

Edit an existing xlsx file. Things to be able to do are simple. Read and write cell values. That's all. Available data types are boolean, number and string, not formula.

Install

npm install atomantic-edit-xlsx --save

Usage

var EditXlsx = require('edit-xlsx');

var data = {
  title: 'AKIRA',
  creator: 'Katsuhiro Otomo',
  year: 1988
};

var xlsx = new EditXlsx('src.xlsx');
var sheet = xlsx.sheet(0);

sheet.update('A1', 'Title');
sheet.update([2, 1], 'Creator');
sheet.update('C1', 'Year');

sheet.update([1, 2], data.title);
sheet.update('B2', data.creator);
sheet.update('C2', data.year);

sheet = xlsx.sheet(1);
sheet.update('A1', 'test');

xlsx.save('output.xlsx');


xlsx = new EditXlsx('output.xlsx');
sheet = xlsx.sheet(0);
console.log(sheet.value('B2')); //=> 'Katsuhiro Otomo'
console.log(sheet.value([1, 2], 'C2')); //=> ['AKIRA', 1988]

License

Licensed under the MIT license.

Special thanks to

  • Keiko Kitagawa

Keywords

FAQs

Package last updated on 11 Mar 2016

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc