2.0.5 • Published 7 years ago

cix-lic v2.0.5

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

cix-lic Build Status Coverage Status

Licensing via CLI (Command-Line), CI (Continuous Integration), and API

Overview

This cix-lic modules can license a project via several capabilities.

  • CLI - Command Line
  • CI - Continuous Integration
  • API - Application Program Interface

LIC Properties

Before we use cix-lic, it's important to know what properties are used. It's called LIC Properties.

  • lic | -l - the license identifier, see licenses - default: "License"

  • owner | -o - the owner - default: "Unknown"

  • beginYear | -b - the declarative begin year - default: current year

  • endYear | -e - the declarative end year - default: "Present"

  • proc | -p - the process - default: "lic", "file"

  • baseDir | -d - the directory where to query files - default: root source directory

  • filter | -f - the file filter can be string, RegExp, or { test: () => boolean } - default: *.js

  • HFLcontent | -h - the Head File License Content (file header content) - default: undefined

  • licenseContent | -c - the License Content (license content) - default: undefined

  • licenseFile - the License File (license file) - default: ./LICENSE

CLI - Command Line

Installation

npm install -g cix-lic

Usage

cix-lic [Command Tags]

CI - Continuous Integration

Installation

npm install cix-lic --save-dev

Usage

In package.json file,

// in package.json file
{
  "scripts": {
    "cix-lic": "cix-lic [Command Tags]"
    ...
  }
}

Then, we can run cix-lic script in CI Process.

CIX-LIC Command

Command Tags are LIC Properties

Examples

cix-lic -o Jane Smith -l mit >> owner: Jane Smith, lic: MIT License

cix-lic -d ./lib -l apache-2.0 >> baseDir: ./lib, lic: Apache License 2.0

2.1.0-alpha.1

7 years ago

2.0.5

7 years ago

2.0.3

7 years ago

2.0.2

7 years ago

2.0.0

7 years ago

2.0.0-alpha.1

7 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.0.26

8 years ago

0.0.25

8 years ago

0.0.24

8 years ago

0.0.23

8 years ago

0.0.22

8 years ago

0.0.21

8 years ago

0.0.20

8 years ago

0.0.19

8 years ago

0.0.16

8 years ago

0.0.15

8 years ago

0.0.14

8 years ago

0.0.13

8 years ago

0.0.12

8 years ago

0.0.11

8 years ago

0.0.10

8 years ago

0.0.9

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.1

8 years ago