Socket
Book a DemoInstallSign in
Socket

goodtables

Package Overview
Dependencies
Maintainers
5
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

goodtables

An API wrapper for a goodtables.io service. goodtables.io is an open source web service for validating tabular data sources.

Source
npmnpm
Version
0.5.0
Version published
Weekly downloads
8
Maintainers
5
Weekly downloads
 
Created
Source

goodtables.js

Travis Coveralls NPM Gitter

An API wrapper for a goodtables.io service. goodtables.io is an open source web service for validating tabular data sources.

Features

  • validate function to validate tabular data and output a goodtables report
  • goodtables.io/api as a cloud backend

Getting started

Installation

The package use semantic versioning. It means that major versions could include breaking changes. It's highly recommended to specify goodtables version range in your package.json file e.g. goodtables: ^1.0 which will be added by default by npm install --save.

NPM

$ npm install goodtables

CDN

<script src="//unpkg.com/goodtables/dist/goodtables.min.js"></script>

Examples

Code examples in this readme requires Node v8.0+ or proper modern browser . Also you have to wrap code into async function if there is await keyword used.

const source = '<SOURCE_URL>'
const options = {
  apiUrl: 'https://goodtables.io/api',
  apiToken: '<API_TOKEN>',
  apiSourceId: '<API_SOURCE_ID>',
}
const report = await goodtables.validate(source, options)

Documentation

Validate

This function gets a tabular dataset and returns a goodtables report.

async validate(source, options)

  • source (String/Object)
  • options
    • [API]
    • apiUrl
    • apiToken
    • apiSourceId
    • [Validation]
    • checks
    • errorLimit
    • tableLimit
    • rowLimit
    • inferSchema
    • inferFields
    • orderFields
    • [Source]
    • preset
    • schema
  • (Object) - returns a goodtables report

Spec

Data quality spec is shipped with the library.

spec

  • (Object) - returns data quality spec

Contributing

The project follows the Open Knowledge International coding standards. There are common commands to work with the project:

$ npm install
$ npm run build
$ npm run test

Changelog

Here described only breaking and the most important changes. The full changelog could be found in nicely formatted commit history.

v0.4

This version includes breaking changes and now uses goodtables.io/api as a backend.

v0.3

This version uses goodtables-web service as a backend.

Keywords

data package

FAQs

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