facteur
TypeScript icon, indicating that this package has built-in type declarations

0.3.0 • Public • Published

facteur

A lightweight tool for managing CHANGELOG.md.

Install

>$ npm install facteur --save-dev
#or
>$ yarn add facteur -D
#or
>$ pnpm add facteur -D

Usage

CLI

lint

>$ facteur lint [options] <message>

# lint commit message format

# Options:
#  -h, --help  display help for command

create

>$ facteur create [options] [title]

# create CHANGELOG from git commits.

# Options:
#  -c. --config <path>  the path of config file.
#  -e, --end <commit>   generate the end point of the CHANGELOG.
#  -s, --scope <dir>    the directory to generate CHANGELOG.
#  -o, --output <path>  the file path to generate CHANGELOG.
#  -h, --help           display help for command

API

lint

import { lint } from 'facteur';

lint(/* message */);

create

import { create } from 'facteur';

interface CreateConfig {
    /**
     * Create title of CHANGELOG group
     */
    title?: string;
    end?: string;
    scope?: string;
    formatter?: (commit: Commit) => Commit | false | null;
    /**
     * @default
     * 'CHANGELOG.md'
     */
    output?: string;
}

create(/* CreateConfig */);

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i facteur

Weekly Downloads

1

Version

0.3.0

License

MIT

Unpacked Size

17.4 kB

Total Files

19

Last publish

Collaborators

  • fanhaoyuan