0.1.0 • Published 11 years ago

sak-getpackage v0.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
11 years ago

Sak-getpackage

Build Status Dependency Status Coverage Status

Version 0.1.0

Get and parse the package.json asynchronously.

Created by Thomas de Zeeuw, thomasdezeeuw@gmail.com (https://thomasdezeeuw.nl/).

Released under a MIT license.

Exports

getPackage

Function

Get a package asynchronously.

Example

getPackage(function (err, pkg) {
  if (err) throw err;

  console.log('package', pkg); // the package.json object
});

Params

NameDescriptionTypeOptional
pathA path to the package.jsonStringYes
cbCallback functionFunction

Return

DescriptionType
Package.json object.Object
0.1.0

11 years ago

0.0.0

11 years ago