1.2.8 • Published 3 years ago

@abysser/matter-lint v1.2.8

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

matter-lint

A front-matter normalizer that depends on the commit history

Quik Start

Install:

npm install @abysser/matter-lint

Usage

npx matter-lint -- <filePath1> <filePath2> ...

Options

As the Command Args

Specify a configuration file (It must be a JSON file, default: .matterlint.json):

npx matter-lint -c xxx.json -- <filePath1> <filePath2> ...

Specify the number of blank lines between front-matter and content:

npx matter-lint -bl <number> -- <filePath1> <filePath2> ...

Forced to cover:

npx matter-lint -f -- <filePath1> <filePath2> ...

Write back:

npx matter-lint -w -- <filePath1> <filePath2> ...

Field Mapping:

npx matter-lint -m author:writer;contributors:writers;updatedby:last_revisor;created:date -- <filePath1> <filePath2> ...

From the Configuration File

.matterlint.json:

{
    "blankLines": 1,
    "force": false,
    "write": false,
    "map": {
        "author": "writer",
        "contributors": "writers",
        "updatedby": "last_revisor",
        "created": "date",
    }
}

License

MIT

Copyright 2022 Abyssers

1.2.8

3 years ago

1.2.7

3 years ago

1.2.6

3 years ago

1.2.5

3 years ago

1.2.4

3 years ago

1.2.3

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.7

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago