file-banner

0.0.6 • Public • Published

file-banner

Automatic add banner for your files.

npm package NPM downloads

Installation

npm install file-banner --save-dev

Usage

Step1: Add .banner in the same directory of package.json, such as:

/**
 * Copyright 2016-present, jianghai.
 * All rights reserved.
 *
 * This source code is licensed under the BSD-style license found in the
 * LICENSE file in the root directory of this source tree. An additional grant
 * of patent rights can be found in the PATENTS file in the same directory.
 * 
 * @providesModule <%= file %>
 */

available variables:

  • file: the current file path

Step2: Register script in the package.json

{
  "scripts": {
    "banner": "file-banner src --ignore __tests__",
  }
}

Docs

Use file-banner help in the command line.

[--ignore <RegExp>], the RegExp is the parameter of new RegExp and test target is the path of file which exclude rootdir

License

BSD licensed

Readme

Keywords

none

Package Sidebar

Install

npm i file-banner

Weekly Downloads

1

Version

0.0.6

License

BSD

Last publish

Collaborators

  • jianghai