🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

xlsx-loader

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xlsx-loader

cover xlsx to object for webpack loader

latest
Source
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

introduction

this is webpack loader for cover .xls/xlsx to json which you can require excel file is javascript file.

install

 npm install xlsx-loader --save-dev

useage

var data = require('excelFile.xlsx');

your excel file:

type_idtype_nameskutitle
0typename122this is title
1typename122this is title
2typename122this is title
3typename122this is title

return :

{
  "list": [
    {
      "type_id" : 0,
      "type_name": "typename",
      "sku": 122,
      "title": "this is title"
    },
    {
      "type_id" : 1,
      "type_name": "typename",
      "sku": 122,
      "title": "this is title"
    },
    {
      "type_id" : 2,
      "type_name": "typename",
      "sku": 122,
      "title": "this is title"
    },
    {
      "type_id" : 3,
      "type_name": "typename",
      "sku": 122,
      "title": "this is title"
    }
  ]
}

licence

MIT

Keywords

xlsx

FAQs

Package last updated on 24 Jan 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