2.0.5 • Published 6 years ago

cix-lic v2.0.5

Weekly downloads
3
License
MIT
Repository
github
Last release
6 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

6 years ago

2.0.5

6 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.0

6 years ago

2.0.0-alpha.1

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.0.26

6 years ago

0.0.25

6 years ago

0.0.24

6 years ago

0.0.23

6 years ago

0.0.22

6 years ago

0.0.21

6 years ago

0.0.20

6 years ago

0.0.19

6 years ago

0.0.16

6 years ago

0.0.15

6 years ago

0.0.14

6 years ago

0.0.13

6 years ago

0.0.12

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.1

6 years ago