mako-str2js

1.0.1 • Public • Published

mako-str2js

A plugin that for converting text files to a require-able JS string.

npm version npm dependencies npm dev dependencies

Purpose

  • enables text files to be require'd as strings (via mako-js)

API

str2js(extensions)

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

The default list of extensions is:

  • txt
  • html

/mako-str2js/

    Package Sidebar

    Install

    npm i mako-str2js

    Weekly Downloads

    5

    Version

    1.0.1

    License

    MIT

    Last publish

    Collaborators

    • dominicbarnes