An open API service indexing awesome lists of open source software.

https://github.com/cdata/swampthing

Swamp Thing is a basic JS / CSS HTTP minification service.
https://github.com/cdata/swampthing

Last synced: 10 months ago
JSON representation

Swamp Thing is a basic JS / CSS HTTP minification service.

Awesome Lists containing this project

README

          

@@@@@@ @@@ @@@ @@@ @@@@@@ @@@@@@@@@@ @@@@@@@
@@@@@@@ @@@ @@@ @@@ @@@@@@@@ @@@@@@@@@@@ @@@@@@@@
!@@ @@! @@! @@! @@! @@@ @@! @@! @@! @@! @@@
!@! !@! !@! !@! !@! @!@ !@! !@! !@! !@! @!@
!!@@!! @!! !!@ @!@ @!@!@!@! @!! !!@ @!@ @!@@!@!
!!@!!! !@! !!! !@! !!!@!!!! !@! ! !@! !!@!!!
!:! !!: !!: !!: !!: !!! !!: !!: !!:
!:! :!: :!: :!: :!: !:! :!: :!: :!:
:::: :: :::: :: ::: :: ::: ::: :: ::
:: : : :: : : : : : : : : :

@@@@@@@ @@@ @@@ @@@ @@@ @@@ @@@@@@@@
@@@@@@@ @@@ @@@ @@@ @@@@ @@@ @@@@@@@@@
@@! @@! @@@ @@! @@!@!@@@ !@@
!@! !@! @!@ !@! !@!!@!@! !@!
@!! @!@!@!@! !!@ @!@ !!@! !@! @!@!@
!!! !!!@!!!! !!! !@! !!! !!! !!@!!
!!: !!: !!! !!: !!: !!! :!! !!:
:!: :!: !:! :!: :!: !:! :!: !::
:: :: ::: :: :: :: ::: ::::
: : : : : :: : :: :: :

Swamp Thing provides a basic http server that takes in JavaScript and CSS and
spits out minified equivalents.

## API

### POST /minify/:type

POST to the service with the content you wish to minify as the POST body. Type
should be either 'js' or 'css.'

## The future

Things I'm planning to add:

- Return minified content based on a provided file path.
- Bundle with a Connect middleware.
- Publish on NPM.
- ???