Skip to content

NPM package that validates an ePub's CSS files by passing in the directory or a file.

License

Notifications You must be signed in to change notification settings

epubknowledge/css-valid

Repository files navigation

Code Climate maintainability Code Climate issues Github code size GitHub issues GitHub last commit GitHub forks GitHub stars

CSS Valid

This NPM package comes in two flavors:

  1. As a CLI for development
  2. As a NPM package that can brought in and the response is in JSON.

Currently this takes five arguments to work:

  • input: the directory being read into the package
  • output: where the XML output file is to be written to
  • file: if not reading a directory then reading a file
  • exclusion: exclude a file if reading a directory
  • cli: wether or not this is called as a CLI

Installation

NPM:

npm i @epubknowledge/css-valid

yarn:

yarn add @epubknowledge/css-valid

CLI

If using this as a CLI refer to the CLI Documentation.

Package

If using this as a package the refer to the Package Documentation.

Bash

This originated from a bash script I wrote many eons ago but you can reference it here.

Future Plans

  • [] Add testing
  • [] finish package

About

NPM package that validates an ePub's CSS files by passing in the directory or a file.

Topics

Resources

License

Stars

Watchers

Forks