load-metadata

0.0.1 • Public • Published

Build Status

load-metadata

Load a JSON or YAML metadata file and return it as an object.

Install

npm install load-metadata

Usage

It handles both JSON and YAML and will return a parsed object.

var load = require('load-metadata');

load('path/to/metadata.json', function(err, data){
    console.log(data);
});

API

load(path, callback)

Takes a path to the metadata file. The callback will be called with fn(err, result).

load.sync(path)

Load a metafile syncronously.

Readme

Keywords

none

Package Sidebar

Install

npm i load-metadata

Weekly Downloads

2

Version

0.0.1

License

MIT

Last publish

Collaborators

  • anthonyshort