strip-yfm

0.1.0 • Public • Published

strip-yfm NPM version

The best project ever.

Getting Started

To install the module, run the following in the command line:

npm i strip-yfm --save

Use within your application with the following line of JavaScript:

var yfm = require('strip-yfm');

Options

delimiters

Type: Object Default: {start: '---', end: '---'}

The starting and ending delimiters that are used before and after the YAML front matter.

For example:

var yfm = require('strip-yfm');
var delimiters = {
  start: '/*---',
  end: '---*/'
};
var file = require('fs').readFileSync('my-file.hbs', 'utf8');
 
var strippedFile = yfm.strip(file, delimiters);

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [grunt][].

Author

Jon Schlinkert

Related

  • helpers: some great handlebars helpers that we decided not to include in the handlebars-helpers project, most likely because the code footprint was too big or the helper wasn't generic enough.

License

Copyright (c) 2013 Jon Schlinkert, contributors. Released under the MIT license


This file was generated on Friday, October 11, 2013.

Package Sidebar

Install

npm i strip-yfm

Weekly Downloads

1

Version

0.1.0

License

none

Last publish

Collaborators

  • doowb
  • jonschlinkert