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

angular-js-xlsx

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-js-xlsx

An angular directive to read XLSX / XLSM / XLSB / XLS / SpreadsheetML (Excel Spreadsheet)

latest
Source
npmnpm
Version
0.0.3
Version published
Weekly downloads
392
18.43%
Maintainers
1
Weekly downloads
 
Created
Source

angular-js-xlsx

An angular directive to read XLSX / XLSM / XLSB / XLS / SpreadsheetML (Excel Spreadsheet) https://github.com/SheetJS/js-xlsx

Installation

  # Bower
  bower install angular-js-xlsx
  # NPM
  npm install angular-js-xlsx

Use

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Angular Js XLS</title>
</head>
<body ng-app="MyApp">
  <div ng-controller="myController">
    <js-xls onread="read" onerror="error"></js-xls>
  </div>

  <script type="text/javascript" src="angular.min.js"></script>
  <script type="text/javascript" src="xlsx.core.min.js"></script>
  <script type="text/javascript" src="angular-js-xlsx.js"></script>
  <script type="text/javascript">
    angular.module('MyApp', ['angular-js-xlsx'])
    .controller('myController', function($scope) {
      $scope.read = function (workbook) {
        /* DO SOMETHING WITH workbook HERE */
        console.log(workbook);
      }

      $scope.error = function (e) {
        /* DO SOMETHING WHEN ERROR IS THROWN */
        console.log(e);
      }
    });
  </script>
</body>
</html>

Keywords

excel

FAQs

Package last updated on 22 Feb 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