Skip to main content

JavaScript (ES5) minifier

Project description

crimp

A JavaScript minifier command-line utility written fully in Python; uses calmjs.parse as the underlying library.

https://travis-ci.org/calmjs/crimp.svg?branch=master https://ci.appveyor.com/api/projects/status/_/branch/master?svg=true https://coveralls.io/repos/github/calmjs/crimp/badge.svg?branch=master

Introduction

crimp serves as the front-end to calmjs.parse as there are situations where the usage and installation of commonly used minifiers, which are often written in Node.js, is not possible. While the Python package, slimit, already exists to provide a Python based JavaScript minifier, parser and lexer, there are many outstanding issues affecting it that were never resolved as of 2017, and so calmjs.parse was forked from slimit and this package was created as a way to rectify the situation.

Installation

The following command may be executed to source the latest stable version of crimp wheel from PyPI for installation into the current Python environment.

$ pip install crimp

Usage

As crimp is a package that offers a command of the same name, executing the command after installation with the --help flag will reveal the options

$ crimp --help

Pretty/minified printing

XXX TODO

Source map generation

XXX TODO

Troubleshooting

XXX TODO

Contribute

Changelog

1.0.0 - Unreleased

Initial release.

Project details


Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page