šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

banr

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

banr

Get one-line comment banner based on package.json.

1.0.4
latest
Source
npm
Version published
Weekly downloads
1
-75%
Maintainers
1
Weekly downloads
Ā 
Created
Source

Banr Build Status js-standard-style

Get one-line comment banner based on your package.json.

Install

Yarn

yarn add banr --dev

NPM

npm install banr --save-dev

Structure

The following json keys should be defined in package.json:

{
  "name": "my-module",
  "version": "1.0.0",
  "license": "MIT",
  "author": {
    "name": "John Doe"
  }
}

Note: author value can be defined like object or string.

Usage

By default, Banr uses the package.json located in your current working directory:

var banr = require('banr');
banr();
/*! MyModule v1.0.0 | MIT (c) 2017 John Doe */

Also it's possible to pass a custom package.json path:

var banr = require('banr');
banr('./my-module-path/package.json');
/*! MyModule v2.0.0 | MIT (c) 2017 Captain Jack */

If package.json path doesn't exist, an empty string will be returned.

banr-stream - Prepend one-line package.json banner in pipeline.

License

MIT license

© 2017 José Luis Quintana

Keywords

banner

FAQs

Package last updated on 06 Apr 2017

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