file-type-lint

4.0.0 • Public • Published

file-type-lint

NPM version Travis Build Status dependencies Status devDependencies Status

Lint file types based on their content.

Installation

npm i -D file-type-lint

Usage

CLI

file-type-lint .

API

const fileTypeLint = require("file-type-lint");
 
fileTypeLint({
  files: "**/*",
})
  .then((result) => {
    console.log(result.errored); // If `true` when contain error
    console.log(result.errors); // Array of errors
 
    return result;
  })
  .catch((error) => {
    throw error;
  });

Roadmap

  • Formatters.
  • Improve error readability.
  • Less sync operation.
  • More tests (100% coverage).
  • Documentation.

Contribution

Feel free to push your code if you agree with publishing under the MIT license.

Changelog

License

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
4.0.01latest

Version History

VersionDownloads (Last 7 Days)Published
4.0.01
3.0.00
2.1.00
2.0.00
1.1.01
1.0.20
1.0.10
1.0.00
0.1.00

Package Sidebar

Install

npm i file-type-lint

Weekly Downloads

2

Version

4.0.0

License

MIT

Unpacked Size

18.5 kB

Total Files

12

Last publish

Collaborators

  • cap-bernardito
  • evilebottnawi
  • itgalaxy-owner