• Stars
    star
    166
  • Rank 227,748 (Top 5 %)
  • Language
    JavaScript
  • Created almost 10 years ago
  • Updated over 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Browserify plugin to prepend license header to your bundle

licensify

Browserify plugin to prepend license header to your bundle

Build Status NPM version Dependency Status License

DESCRIPTION

licensify is a Browserify plugin to prepend license header to your bundle as follows.

/**
 * Modules in this bundle
 * @license
 * 
 * licensify:
 *   license: MIT (http://opensource.org/licenses/MIT)
 *   author: Takuto Wada <[email protected]>
 *   contributors: Okuno Kentaro, Ayumu Sato, Denis Sokolov, yudppp, Daijiro Wachi
 *   homepage: https://github.com/twada/licensify
 *   version: 3.1.0
 * 
 * convert-source-map:
 *   license: MIT (http://opensource.org/licenses/MIT)
 *   author: Thorsten Lorenz <[email protected]>
 *   maintainers: thlorenz <[email protected]>
 *   homepage: https://github.com/thlorenz/convert-source-map
 *   version: 1.2.0
 * 
 * core-util-is:
 *   license: MIT (http://opensource.org/licenses/MIT)
 *   author: Isaac Z. Schlueter <[email protected]>
 *   maintainers: isaacs <[email protected]>
 *   homepage: https://github.com/isaacs/core-util-is#readme
 *   version: 1.0.2
 * 
 * inherits:
 *   license: ISC (http://opensource.org/licenses/ISC)
 *   maintainers: isaacs <[email protected]>
 *   homepage: https://github.com/isaacs/inherits#readme
 *   version: 2.0.1
 * 
 * isarray:
 *   license: MIT (http://opensource.org/licenses/MIT)
 *   author: Julian Gruber <[email protected]>
 *   maintainers: juliangruber <[email protected]>
 *   homepage: https://github.com/juliangruber/isarray
 *   version: 1.0.0
 * 
 * offset-sourcemap-lines:
 *   license: MIT (http://opensource.org/licenses/MIT)
 *   author: Takuto Wada <[email protected]>
 *   maintainers: twada <[email protected]>
 *   homepage: https://github.com/twada/offset-sourcemap-lines
 *   version: 0.1.0
 * 
 * osi-licenses:
 *   license: MIT (http://opensource.org/licenses/MIT)
 *   author: Meryn Stol <[email protected]>
 *   maintainers: meryn <[email protected]>
 *   homepage: https://github.com/meryn/osi-licenses
 *   version: 0.1.1
 * 
 * oss-license-name-to-url:
 *   license: MIT (http://opensource.org/licenses/MIT)
 *   author: Zeke Sikelianos <[email protected]>
 *   maintainers: zeke <[email protected]>, isaacs <[email protected]>
 *   homepage: https://github.com/npm/oss-license-name-to-url
 *   version: 1.2.1
 * 
 * process-nextick-args:
 *   license: MIT (http://opensource.org/licenses/MIT)
 *   maintainers: cwmma <[email protected]>
 *   homepage: https://github.com/calvinmetcalf/process-nextick-args
 *   version: 1.0.6
 * 
 * readable-stream:
 *   license: MIT (http://opensource.org/licenses/MIT)
 *   maintainers: isaacs <[email protected]>, tootallnate <[email protected]>, rvagg <[email protected]>, cwmma <[email protected]>
 *   homepage: https://github.com/nodejs/readable-stream#readme
 *   version: 2.0.6
 * 
 * source-map:
 *   license: BSD-3-Clause (http://opensource.org/licenses/BSD-3-Clause)
 *   author: Nick Fitzgerald <[email protected]>
 *   maintainers: mozilla-devtools <[email protected]>, mozilla <[email protected]>, nickfitzgerald <[email protected]>
 *   contributors: Simon Lydell <[email protected]>, Tobias Koppers <[email protected]>, Stephen Crane <[email protected]>, Ryan Seddon <[email protected]>, Miles Elam <[email protected]>, Mihai Bazon <[email protected]>, Michael Ficarra <[email protected]>, Todd Wolfson <[email protected]>, Alexander Solovyov <[email protected]>, Felix Gnass <[email protected]>, Conrad Irwin <[email protected]>, usrbincc <[email protected]>, David Glasser <[email protected]>, Chase Douglas <[email protected]>, Evan Wallace <[email protected]>, Heather Arthur <[email protected]>, Hugh Kennedy <[email protected]>, David Glasser <[email protected]>, Duncan Beevers <[email protected]>, Jmeas Smith <[email protected]>, Michael Z Goddard <[email protected]>, azu <[email protected]>, John Gozde <[email protected]>, Adam Kirkton <[email protected]>, Chris Montgomery <[email protected]>, J. Ryan Stinnett <[email protected]>, Jack Herrington <[email protected]>, Chris Truter <[email protected]>, Daniel Espeset <[email protected]>, Jamie Wong <[email protected]>, Eddy Bruël <[email protected]>, Hawken Rives <[email protected]>, Gilad Peleg <[email protected]>, djchie <[email protected]>, Gary Ye <[email protected]>, Nicolas Lalevée <[email protected]>
 *   homepage: https://github.com/mozilla/source-map
 *   version: 0.5.3
 * 
 * string_decoder:
 *   license: MIT (http://opensource.org/licenses/MIT)
 *   maintainers: substack <[email protected]>, rvagg <[email protected]>
 *   homepage: https://github.com/rvagg/string_decoder
 *   version: 0.10.31
 * 
 * through2:
 *   license: MIT (http://opensource.org/licenses/MIT)
 *   author: Rod Vagg <[email protected]>
 *   maintainers: rvagg <[email protected]>, bryce <[email protected]>
 *   homepage: https://github.com/rvagg/through2#readme
 *   version: 2.0.1
 * 
 * type-name:
 *   license: MIT (http://opensource.org/licenses/MIT)
 *   author: Takuto Wada <[email protected]>
 *   maintainers: twada <[email protected]>
 *   contributors: azu, Yosuke Furukawa
 *   homepage: https://github.com/twada/type-name
 *   version: 2.0.0
 * 
 * util-deprecate:
 *   license: MIT (http://opensource.org/licenses/MIT)
 *   author: Nathan Rajlich <[email protected]>
 *   maintainers: tootallnate <[email protected]>
 *   homepage: https://github.com/TooTallNate/util-deprecate
 *   version: 1.0.2
 * 
 * xtend:
 *   license: MIT (http://opensource.org/licenses/MIT)
 *   author: Raynos <[email protected]>
 *   maintainers: raynos <[email protected]>
 *   contributors: Jake Verbaten, Matt Esch
 *   homepage: https://github.com/Raynos/xtend
 *   version: 4.0.1
 * 
 * This header is generated by licensify (https://github.com/twada/licensify)
 */
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
...(your bundle continues ...)

HOW TO USE

by command-line

$ browserify main.js -p licensify > build/bundle.js 

or programmatically

var browserify = require('browserify');
var licensify = require('licensify');
var fs = require('fs');
var dest = fs.createWriteStream('/path/to/bundle.js');

var b = browserify();
b.add('/path/to/your/file');
b.plugin(licensify);
b.bundle().pipe(dest)

browser field

Since 2.0.0, licensify scans and traverses browser field if exists.

private field

Since 3.0.0, licensify ignores packages which are marked as private in package.json by default.

includePrivate option

if includePrivate option is truthy, licensify includes private packages too.

by command-line

$ $(npm bin)/browserify path/to/your/file.js -p [ licensify --includePrivate ] > build/bundle.js 

or programmatically

var browserify = require('browserify');
var licensify = require('licensify');

var b = browserify();
b.add('/path/to/your/file');
b.plugin(licensify, { includePrivate: true });
b.bundle().pipe(dest)

INSTALL

$ npm install --save-dev licensify

AUTHOR

CONTRIBUTORS

SUPPORT POLICY

Node under maintenance is supported.

NOTE: If licensify works in any of the unsupported environments, it is purely coincidental and has no bearing on future compatibility. Use at your own risk.

LICENSE

Licensed under the MIT license.

More Repositories

1

type-name

Just a reasonable `typeof`
JavaScript
84
star
2

coverlay.el

Test coverage overlay for Emacs
Emacs Lisp
82
star
3

qunit-tap

A TAP Output Producer Plugin for QUnit
JavaScript
72
star
4

japanese-numerals-to-number

Converts Japanese Numerals into number
JavaScript
57
star
5

twowaysql

Template Engine for SQL
Ruby
29
star
6

macbook-provisioning

"Mac の開発環境構築を自動化する (2015 年初旬編)" で書いた playbook です
29
star
7

power-assert-runtime

monorepo of power-assert runtime side
JavaScript
21
star
8

org-html5presentation.el

HTML5 Presentation export for Org-mode
Emacs Lisp
20
star
9

stringifier

Yet another stringify function
JavaScript
20
star
10

universal-deep-strict-equal

A port of Node v6's internal _deepEqual function in a universal style
JavaScript
18
star
11

chai-to-assert

A jscodeshift codemod that transforms from chai to Node assert
JavaScript
14
star
12

escallmatch

ECMAScript CallExpression matcher made from function/method signature
JavaScript
13
star
13

rejected-or-not

Promise-based implementation of Node v10's `assert.rejects()` and `assert.doesNotReject()` for old Nodes and browsers
JavaScript
11
star
14

golang-study

Learning "The Go Programming Language" リクルートテクノロジーズで実施されている『プログラミング言語Go』の研修参加用リポジトリです。
Go
11
star
15

array-foreach

Array#forEach ponyfill for older browsers
JavaScript
8
star
16

gulp-derequire

A Gulp plugin to apply derequire to target Buffer/Stream
JavaScript
8
star
17

expect-js-to-assert

A jscodeshift codemod that transforms from expect.js to Node assert
JavaScript
8
star
18

battlefield-sourcemaps

Fighting with multi-stage sourcemaps with power-assert
JavaScript
6
star
19

power-assert-monorepo

power-assert monorepo
TypeScript
6
star
20

power-assert-demo

Demo project for Power Assert in JavaScript
JavaScript
5
star
21

mocha-spec-tree-reporter

Mocha reporter that generates API spec description for README
JavaScript
4
star
22

merge-estraverse-visitors

merge multiple estraverse visitors into one
JavaScript
4
star
23

fly-espower

power-assert plugin for Fly
JavaScript
4
star
24

qunit-quickstart

A simple QUnit + QUnit-TAP + PhantomJS example.
JavaScript
4
star
25

call-matcher

ECMAScript CallExpression matcher made from function/method signature
JavaScript
4
star
26

offset-sourcemap-lines

Offset each generated lines in SourceMap
JavaScript
3
star
27

empower-core

Power Assert feature enhancer for assert function/object
JavaScript
3
star
28

dereserve

Provides dereserve command to recast all ES3 reserved words to their safe alternatives.
JavaScript
2
star
29

gulp-utf8ize-sourcemaps

A Gulp plugin to apply utf8ize-sourcemaps to target Buffer/Stream
JavaScript
2
star
30

power-assert-renderers

[DEPRECATED] this module is reorganized into https://github.com/twada/power-assert-runtime
JavaScript
2
star
31

power-assert-keeper

Keep the ecosystem of power-assert.
JavaScript
1
star
32

extract-git-treeish

Extracts git tree-ish (commits, branches, or tags) into target directory.
JavaScript
1
star
33

espower-location-detector

AST source location detection helper for power-assert
JavaScript
1
star
34

utf8ize-sourcemaps

UTF8-ize your sourcemaps
JavaScript
1
star
35

array-some

Array#some ponyfill for older browsers
JavaScript
1
star