# load-metadata

> Load a JSON or YAML metadata file as an object

Latest version **0.0.1** (published 2014-07-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install load-metadata
pnpm add load-metadata
yarn add load-metadata
bun add load-metadata
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2014-07-30 |
| First published | 2014-07-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Anthony Short |
| Maintainers | anthonyshort |

## Links

- npm: https://www.npmjs.com/package/load-metadata
- npm.io page: https://npm.io/package/load-metadata

## Dependencies (1)

- [yaml-js](https://npm.io/package/yaml-js.md) 0.0.8

## Recent versions

- 0.0.1 (latest) — 2014-07-30

## README

[![Build Status](https://circleci.com/gh/segmentio/load-metadata.png?circle-token=c2b4cfaa8e98f46f9ee24fba69609eb790e500f2)](https://circleci.com/gh/segmentio/load-metadata)

# 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.

---
_Source: https://npm.io/package/load-metadata · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
