Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

file-type-lint

1.1.0 • Public • Published

file-type-lint

NPM version Travis Build Status dependencies Status devDependencies Status Greenkeeper badge

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: "**/*"
}).catch(result => {
  console.log(result.errored); // If `true` when contain error
  console.log(result.errors); // Array of errors
});

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

install

npm i file-type-lint

Downloadsweekly downloads

6

version

1.1.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
Report a vulnerability