0.4.2 • Published 5 months ago

m3u-linter v0.4.2

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

m3u-linter

A linter to check formatting of M3U files.

Installation

npm install -g m3u-linter

Usage

Check single file:

m3u-linter path-to-playlist/example.m3u

Check all files in the folder:

m3u-linter some-folder/*.m3u

Arguments:

  • -c, --config: path to config file (default: ./m3u-linter.config.json)

m3u-linter.config.json

{
  "files": ["playlist1.m3u", "playlist2.m3u"],
  "rules": {
    "no-empty-lines": true,
    "require-header": true,
    "attribute-quotes": true,
    "require-info": true,
    "require-title": true,
    "no-trailing-spaces": true,
    "no-whitespace-before-title": true,
    "no-multi-spaces": true,
    "no-extra-comma": true,
    "space-before-paren": true,
    "no-dash": true,
    "require-link": true
  }
}

Contribution

If you find a bug or want to contribute to the code or documentation, you can help by submitting an issue or a pull request.

License

MIT

0.4.1

6 months ago

0.4.0

6 months ago

0.4.2

5 months ago

0.3.0

3 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago