Socket
Socket
Sign inDemoInstall

m3u-linter

Package Overview
Dependencies
18
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    m3u-linter

A linter to check formatting of M3U files


Version published
Weekly downloads
324
increased by5.54%
Maintainers
1
Install size
391 kB
Created
Weekly downloads
 

Readme

Source

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,
    "no-trailing-spaces": true,
    "no-whitespace-before-title": true,
    "no-multi-spaces": true,
    "no-extra-comma": true,
    "space-before-paren": true,
    "no-dash": 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

Keywords

FAQs

Last updated on 14 Dec 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc