mako-text

0.9.0 • Public • Published

mako-text

A mako analyze plugin that reads files as plain text.

npm version npm dependencies npm dev dependencies build status coverage

Usage

This plugin is used for reading files that are plain text.

var mako = require('mako');
var text = require('mako-text');
 
mako()
  .use(text('js'))
  .build('./index.js')
  .then(function () {
    // done!
  });

API

text(extensions)

The extensions argument can be passed as either a single String or an Array of extensions. (without the leading dot)

Effects

For each file processed, this will read the file from disk. It will set file.raw as a raw buffer, then will set file.contents as a string.

Readme

Keywords

Package Sidebar

Install

npm i mako-text

Weekly Downloads

6

Version

0.9.0

License

MIT

Last publish

Collaborators

  • dominicbarnes