includify

1.2.3 • Public • Published

Include the contents of a file during browserify build.

Usage

In your .js file:

includify('./foo.js');

The 'includify' call will be replaced with the contents of foo.js.

You may optionally pass a second parameter to describe how the file should be included:

// Will be replaced with the contents of foo.js (the default).
includify('./foo.js', 'direct');

// Will be replaced with a string containing the base64 encoding of foo.gif
var imgUrl = "data:image/png;base64," + includify('./loading.gif', 'base64');

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i includify

    Weekly Downloads

    24

    Version

    1.2.3

    License

    MIT

    Last publish

    Collaborators

    • tyler-benbria
    • jordan.parsons
    • jefftudor
    • arnoldelite
    • lucaspawley-benbria
    • vincent-benbria
    • orelbibenbria
    • jwalton