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

angular2-json2csv

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular2-json2csv

Service to convert Json to Downloadable csv

  • 1.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

angular2-json2csv

Angular Service to convert CSV from Json and download that file in browser.

Setup & Usage Instructions

  • Install module Using following Command
  • npm install angular2-json2csv --save
  • Include in your component
  • import {CsvService} from "angular2-json2csv";
  • Define "CsvService" as providers
  • Define this "CsvService" in your constuctor
  • constructor(private _csvService: CsvService) { // with all other variables you have

Now you just need to call download function with two params

  • this._csvService.download(data, 'Filename');

Note: If you are using SystemJS, then don't forget to add this module in systemjs.config.js

You are all set now. Integrate this and Enjoy!

Keywords

FAQs

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

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