Socket
Socket
Sign inDemoInstall

json-table-schema-infer

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-table-schema-infer

Infer a JSON Table Schema from a readable stream of a CSV source


Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

jts-infer

Infer a JSON Table Schema from a readable stream of a CSV source

NPM

#API

##jtsInfer(readableStream, [options], callback)

var jtsInfer = require('jts-infer)
  , fs = require('fs);

jtsInfer(fs.createReadStream('path/to/data.csv'), function(err, schema, scores){
  //do something with schema [and scores]
});

###Options

  • separator: separator to separate cells in a row (default to ',')
  • newline: separator to separate different rows (default to '\n')
  • nSample: if specified only the nSample first rows of the source will be used to infer the types otherwise all the rows will be used

#Tests

npm test

#License

MIT

Keywords

FAQs

Package last updated on 16 Feb 2015

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