to-template
Advanced tools
Comparing version 0.1.1 to 0.1.2
{ | ||
"name": "to-template", | ||
"description": "Convert a vinyl file object to a Template-compatible template object.", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"homepage": "https://github.com/jonschlinkert/to-template", | ||
@@ -38,5 +38,13 @@ "author": { | ||
"mocha": "*", | ||
"should": "*" | ||
"should": "*", | ||
"to-vinyl": "^0.1.1" | ||
}, | ||
"keywords": [] | ||
"keywords": [ | ||
"assemble", | ||
"file", | ||
"template", | ||
"templateutil", | ||
"verb", | ||
"vinyl" | ||
] | ||
} |
@@ -1,2 +0,2 @@ | ||
# vinyl-to-template [![NPM version](https://badge.fury.io/js/vinyl-to-template.svg)](http://badge.fury.io/js/vinyl-to-template) | ||
# to-template [![NPM version](https://badge.fury.io/js/to-template.svg)](http://badge.fury.io/js/to-template) | ||
@@ -8,3 +8,3 @@ > Convert a vinyl file object to a Template-compatible template object. | ||
```bash | ||
npm i vinyl-to-template --save | ||
npm i to-template --save | ||
``` | ||
@@ -15,14 +15,15 @@ | ||
```js | ||
var vinylToTemplate = require('vinyl-to-template'); | ||
var toTemplate = require('to-template'); | ||
// file = <File "foo.hbs" <Buffer 74 68 69 73 20 69 73 20 66 6f 6f>> | ||
toTemplate(file); | ||
//=> {path: 'foo.hbs', content: 'this is foo'} | ||
``` | ||
## API | ||
<!-- add a path or glob pattern for files with code comments to use for docs --> | ||
{%= apidocs("index.js") %} | ||
## Related projects | ||
<!-- add an array of related projects, then un-escape the helper --> | ||
{%= related([]) %} | ||
* [assemble](http://assemble.io): Static site generator for Grunt.js, Yeoman and Node.js. Used by Zurb Foundation, Zurb Ink, H5BP/Effeckt,… [more](http://assemble.io) | ||
* [to-vinyl](https://github.com/jonschlinkert/to-vinyl): Convert a Template object to a vinyl file object. | ||
* [template](https://github.com/jonschlinkert/template): Render templates using any engine. Supports, layouts, pages, partials and custom template types. Use template… [more](https://github.com/jonschlinkert/template) | ||
* [verb](https://github.com/assemble/verb): Documentation generator for GitHub projects. Extremely powerful, easy to use, can generate anything from API… [more](https://github.com/assemble/verb) | ||
@@ -39,3 +40,3 @@ ## Running tests | ||
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/vinyl-to-template/issues) | ||
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/to-template/issues) | ||
@@ -42,0 +43,0 @@ ## Author |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5665
60
3