New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

convert-json

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

convert-json

auto detect file type and convert it to json format

0.0.0
Source
npm
Version published
Maintainers
1
Created
Source

Convert JSON

Auto detect different type of file format and convert it into JSON.

Support

  • csv
  • xlsx
  • xls

Sample

var cv_json = require('..');

cv_json({
    // now supporting csv, xls, xlsx format
    input: __dirname + '/number_format.xls',
    output: null
  }, function(err, result) {
    if(err) {
      console.error(err);
    }else {
      console.log(result);
    }
  
  }
  );

In config object, you have to enter an input path. But If you don't want to output any file you can set to null.

License

MIT @chiljung

FAQs

Package last updated on 23 Jan 2014

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