Skip to content

testdouble/headerify

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 
 
 
 
 

headerify

Prints a standard little header of the package name & version at the top of the bundle. Useful for libraries that want to distribute a bundle for inclusion in non-browserify settings.

Usage

To use headerify, first install it:

$ npm i --save-dev headerify

Then, wherever you've configured your browserify build, add the flag:

-p headerify

Options

There are no options.

Example

By adding -p headerify to our browserify invocation for testdouble.js, this header is generated at the top of our bundle in dist/testdouble.js:

/*
 * testdouble@0.7.2
 *
 *   A minimal test double library for TDD with JavaScript
 *
 *   https://github.com/testdouble/testdouble.js
 */
(function(f){if(typeof exports==="object".......

About

Browserify plugin to add a comment containing lib name, version, description, and homepage to the top of the bundle

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published