template-utils
![Build Status](https://travis-ci.org/jonschlinkert/template-utils.svg)
Utils for Template.
Install with npm
npm i template-utils --save
Running tests
Install dev dependencies:
npm i -d && npm test
Usage
var utils = require('template-utils');
API
template
{Object}: Template Object to add properties to.
Setup default properties and objects on a template object.
Adjust markdown heading levels.
str
{String}returns
: {String}
Adds one heading level next to all markdown headings to make
them correct within the scope of the inheriting document.
Headings in fenced code blocks are skipped.
utils.heading(str);
template
{Object}: Template object
Add parsed src
and dest
path properties to the data
object.
Convert a Vinyl file object to a non-vinyl template object.
file
{Object}: Vinyl file objectreturns
{Object}: Object with properties expected by Template or Template apps
var template = utils.toTemplate(file);
Convert a template
object to a Vinyl file object.
file
{Object}: Object with properties expected by Templatereturns
{Object}: Vinyl file object
var file = utils.toVinyl(template);
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue
Author
Jon Schlinkert
License
Copyright (c) 2014-2015 Jon Schlinkert
Released under the MIT license
This file was generated by verb-cli on February 27, 2015.