Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    webant-handler-textpublic

    node-modules-webant-handler-text

    Require text and HTML files with webant

    Installation

    $ npm install webant-handler-text
    

    Usage

    Ensure the text handler is present in your webant configuration file. For example:

    {
        "entry":"src/js/main.js",
        "dest":"build/main.js",
        "handlers":["text"]
    }

    You may now require text or HTML files:

    var html = require("../path/to/some.html");
    var moreHtml = require("path/to/more.htm");
    var text = require("foo.txt");

    Tests Build Status

    Ensure phantomjs is installed and in your PATH, then run:

    $ npm test

    install

    npm i webant-handler-text

    Downloadsweekly downloads

    16

    version

    2.1.0

    license

    MIT

    repository

    githubgithub

    last publish

    collaborators

    • avatar