frictionlessdata / dpm-js

[DEPRECATED] Please use https://datahub.io/docs/features/data-cli
109 stars 18 forks source link

DEPRECATED and REPLACED - SEP 2017
data tool has replaced dpm

data is our new command line tool

https://datahub.io/docs/features/data-cli

https://github.com/datahq/data-cli



Data Package Manager - in JavaScript

NPM Package

Build Status

dpm is a library and command line manager for Data Packages.

Starting from v0.8.0 package on NPM has been renamed to dpmjs.

Install

dpm is implemented in node, so to install dpm just do:

npm install dpmjs -g

Command Line Usage

To get an overview and list of commands check out the command line help:

dpm --help

Using DPM programaticaly

You can also use dpm programatically.

var Dpm = require('dpmjs');
var dpm = new Dpm(conf);

dpm.install(['mydpkg@0.0.0', 'mydata@1.0.0'], {cache: true}, function(err, dpkgs){
  //done!
});
dpm.on('log', console.log); //if you like stuff on stdout

Changelog

References

Previous dpm (python-based) can still be found at http://github.com/okfn/dpm-old.