1.0.0 • Published 9 years ago

package-version v1.0.0

Weekly downloads
5
License
MIT
Repository
github
Last release
9 years ago

NPM version Build Status Dependency Status

package-version

Get the version of a package from package.json

Installation

npm install package-version --save

version(cwd, callback);

var version = require('package-version');
version('/path/to', function(err, version){
  if(err){
    console.log('error:', err.stack);
    return;
  }
  console.log('version:', version);
});
  • cwd path the directory of the package
  • callback function(err, version)
1.0.0

9 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.0.0

10 years ago