Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

banner

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

banner

A banner generator

  • 0.0.5
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
27
decreased by-20.59%
Maintainers
1
Weekly downloads
 
Created
Source

Banner

Banner creates headers automatically, by parsing package.json, the npm standard for versioning nodejs packages. It also uses git describe to add a git tag & revision.

It's used in Wax to eliminate one of the headaches of distributed-client-library development.

Include it in your devDependencies, like

"devDependencies": {
  "banner": "0.0.x"
}

Then use it in a makefile, like

BANNER = ./node_modules/.bin/banner

dist_setup:
    mkdir dist
    $(BANNER) package.json > dist/header.js

And then you'll have less of a headache figuring out what version of a client-side library you, or someone else, is using, since every file has a concise comment describing the specific version and, if it's a development build beyond a certain tag, the exact git tree it was built from.

Minification tools like uglifyjs maintain the first comment in a file, so even minified versions will retain this versioning information.

Authors

  • Tom MacWright (tmcw)

Keywords

FAQs

Package last updated on 30 Jan 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc