Socket
Socket
Sign inDemoInstall

csv.js

Package Overview
Dependencies
0
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    csv.js

Simplify encoding & decoding CSV


Version published
Weekly downloads
191
decreased by-35.69%
Maintainers
1
Install size
16.1 kB
Created
Weekly downloads
 

Readme

Source

csv.js

Simplify encoding & decoding CSV. Easy exporting from an API, or reformatting on a Client!

build status

Example

var csv = require( "csv.js" );
var encoded = csv.encode( [{prop: "value"}, {prop: "value2"}] );

console.log( encoded );

//
prop
value
value2

API

encode( arg[, delimiter, header] )

Encodes arg as CSV. The optional delimiter allows you change the default comma. The optional header allows you to disable the first row of column names by passing false.

decode( arg[, delimiter] )

Decodes arg to an Array of Objects. The optional delimiter allows you to specify the delimiter if it is not a comma.

How can I load csv.js?

csv.js supports AMD loaders (require.js, curl.js, etc.), CommonJS, node.js & npm (npm install csv.js), or using a script tag.

License

csv.js is licensed under BSD-3 https://raw.github.com/avoidwork/csv.js/master/LICENSE

Copyright (c) 2021, Jason Mulligan jason.mulligan@avoidwork.com

Keywords

FAQs

Last updated on 28 Jul 2021

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc