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

spread_sheet

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

spread_sheet

Add single row to spreadsheet

latest
Source
npmnpm
Version
2.2.1
Version published
Weekly downloads
53
657.14%
Maintainers
1
Weekly downloads
 
Created
Source

Spread Sheet

The spread sheet helps in by adding rows and reading rows by providing 'from_row', 'to_row' params present in spread sheet.

##In order to add a row, a person must following info :-

  • Rows (you want to add in spread sheet)
  • Filepath (path where your spreadsheet resides)
  • Sheet Name (Name of your sheet where yoou want to add row)

Detailed steps

Step 1. After installing "spread_sheet" module, do [var spreadSheet = require('spread_sheet')].

Step 2. spreadSheet.addRow(row,filePath,sheetName,function(err,result){}).

Step 3. Arguments behaviour:-

  1. Row

     It must be string.

     var row = [[1,2,3],['a',45,56]]; // To add multiple rows.

  2. filePath

     var filePath = '/home/pranjal/Desktop/test.xlsx';

  3. sheetName

     var sheetName = 'Sheet1';

  4. Last argument is the callback (cb), which accepts error and result.   

In order to get rows, follow the following steps :-

  • Filepath (path where your spreadsheet resides)
  • Sheet Name (Name of your sheet where yoou want to add row)
  • From Row (Add value of row ex. 1 or 5 .., to get info from specific row)
  • To Row (Add value of row ex. 1,2 or 6 .., to get info from specific row)

Detailed steps

Step 1. After installing "spread_sheet" module, do [var spreadSheet = require('spread_sheet')].

Step 2. spreadSheet.getRows(filepath,sheet_name,from_row,to_row,function(err,result){}).

Step 3. Arguments behaviour:-

  1. fromRow

     It must be string/numeric.

     var from_row = 4;

  2. filePath

     var filePath = '/home/pranjal/Desktop/test.xlsx';

  3. sheetName

     var sheetName = 'Sheet1';

  4. toRow

     It must be string/numeric.

     var to_row = 8;  

  5. Last argument is the callback (cb), which accepts error and result.   

It will fetch only those rows mentioned in from_row to to_row from spreadsheet.

Keywords

xlsx

FAQs

Package last updated on 19 Jul 2017

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