parser-yaml
Version:
parser-cache compatible YAML parser, using js-yaml.
64 lines (43 loc) • 895 B
Markdown
# {%= name %} {%= badge("fury") %}
> {%= description %}
## Install
{%= include("install-npm", {save: true}) %}
## Run tests
```bash
npm test
```
## Usage
```js
var parser = require('{%= name %}');
```
### parse
```js
parser.parse(str, options, function(err, res) {
if (err) { throw err; }
console.log(res);
});
```
### parseFile
```js
parser.parseFile('fixtures/a.yml', function (err, res) {
if (err) { throw err; }
console.log(res);
});
```
### parseSync
```js
var res = parser.parseSync(str, options);
console.log(res);
```
## API
{%= comments("index.js") %}
## Contributing
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue]({%= bugs.url %})
## Author
{%= include("author") %}
## License
{%= copyright() %}
{%= license() %}
***
{%= include("footer") %}
[parser-cache]: https://github.com/jonschlinkert/parser-cache