
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
This is a simple json to csv convertor for Ionic.
npm install ionic-csv --save
// inside your app.module.ts
...
import { JsonToCSVModule, CSVService } from 'ionic-csv';
@NgModule({
...,
imports: [
...,
JsonToCSVModule
],
providers: [
...,
CSVService
],
});
export class AppModule {}
// inside your component page
import { CSVService } from 'ionic-csv';
@Component({
selector: 'page-home',
templateUrl: 'home.html'
})
export class HomePage {
constructor( private _csvService: CSVService ) { }
private _csvData: any = null;
private _fileName: any = null;
public jsonToCsv(data: any) {
// pass the object array to the function
// return an array in csv format
this._csvData = this._csvService.jsonToCsv(data);
}
public downloadCsv() {
// pass the csv data and file name to the function
// csv file will be download simultaneously
this._csvService.downloadCsv(this._csvData, this._fileName);
}
...
}
data: object arraycsvData: csv array
fileName: string
Before you can begin using these csv service with your project, you need to make sure your project meets a few of these requirements:
"typescript" >= 3.4.0
"ionic-angular" >= 3.9
"@ionic/app-scripts" >= 3.2.2
"@angular/core" >= 5.2.11
This ionic-csv wrapper is an Open Source Package. So it is open to any contributors.
MIT
FAQs
A Simple Ionic CSV Convertor Service Package
We found that ionic-csv demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.