package
Load a JSON or YAML metadata file as an object
npm install read-metadataGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Registry package owners.
Load a JSON or YAML metadata file and return it as an object.
npm install read-metadataIt handles both JSON and YAML and will return a parsed object.
var read = require('read-metadata');
read('path/to/metadata.json', function(err, data){
console.log(data);
});Takes a path to the metadata file. The callback will be called with fn(err, result).
Load a metafile syncronously.
Estimated unpacked size across 2 packages.
712.0 kB
Includes dependencies.