A simple Node JS script to automate upgrading pre v1 Data Package specs to v1
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.travis.yml
README.md
normalize.js
package.json

README.md

datapackage-normalize-js

datapackage-normalize-js is a lightweight library that upgrades Data Package metadata to v1 of the Data Package specs from previous versions. For more information see this blog post: https://datahub.io/blog/upgrade-to-data-package-specs-v1

Build Status

Installation

Prerequisites: node >= v6

This is a simple script that you can download directly from here:

https://raw.githubusercontent.com/datahq/datapackage-normalize-js/master/normalize.js

e.g. using wget:

wget https://raw.githubusercontent.com/datahq/datapackage-normalize-js/master/normalize.js

Usage

Normalize datapackage.json:

// path (optional) is the path to datapackage.json (if not provided looks in current directory)
normalize.js [path]

// prints out updated datapackage.json