[Unmainted] 🐤 A tool that automatically format and evaluate for CSS.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
conf
example/using-flexbox
src
test
.babelrc
.codeclimate.yml
.editorconfig
.eslintrc
.gitignore
.npmrc
.travis.yml
LICENSE
README.md
esdoc.json
package.json

README.md

[Unmainted] Kotori (ことり) 🐤

No longer actively maintaining this project due to lack of motivation. This project and source code keep on GitHub and on npm, but no longer maintaining in my side.

Build Status Coverage Status

npm version MIT License David

Kotori is CSS optimize tool.

Kotori seamlessly integrates the better tools: CSSfmt, Autoprefixer and clean-css.

Installation

# global install
npm install -g kotori

# local install
npm install --save-dev kotori

Usage

in CLI

kotori <input> -o <output> <option>

example:

# single file
kotori src/main.css -o dist/main.css

# use glob definition in input
kotori src/*.css -o dist/

in Node.js module

const kotori = require('kotori');
kotori.source('path/to/*.css')
  .pipe(kotori.optimize({
    browsers: [ 'last 2 version', '> 5%' ],
    env: 'production'
  }))
  .pipe(kotori.output('path/to/css/'));

CLI options

name long name description
- --init Setup config file (.kotorirc)
-o --output Specify CSS file output path
-v --version Show version
-h --help Show help

Configuration

name type description default value
browsers String[] browserslist queries. ['last 2 version', '> 5%']
env String if defined of "production" to minify CSS. "development" if it will not minify. 'production'

Changelog

See Releases · kubosho/kotori.

License

The MIT License

Copyright (c) 2015-16 Shota Kubota