🚀 Launch Week Day 4:Introducing the Alert Details Page: A Better Way to Explore Alerts.Learn More →
Socket
Book a DemoInstallSign in
Socket

strip-yfm

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

strip-yfm

Strip YAML front matter from files.

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

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

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

Keywords

grunt task

FAQs

Package last updated on 11 Oct 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts