Socket
Book a DemoInstallSign in
Socket

base-file-loader

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

base-file-loader

Load vinyl file objects onto a Template collection.

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

base-file-loader NPM version Build Status

Load vinyl file objects onto a Template collection.

Install with npm

npm i base-file-loader --save

Usage

var loader = require('base-file-loader');
var template = require('template');
var File = require('vinyl');

template.create('post', { isRenderable: true }, [loader]);

// now you can load posts!
var file = new File({path: 'foo.md', contents: '...'});
template.post(file);

Running tests

Install dev dependencies.

npm i -d && npm test

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue

Author

Jon Schlinkert

License

Copyright (c) 2015 Jon Schlinkert
Released under the MIT license

This file was generated by verb-cli on March 15, 2015.

Keywords

loader

FAQs

Package last updated on 16 Mar 2015

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