Skip to content

npmcdn-to-unpkg-bot/transformers

 
 

Repository files navigation

transformers

ES6+ & PostCSS & NPMCDN => All in one

Installation

$ npm i -g node-transformers

To start server:

$ transformers

API

Babel

POST /api/babel

Parameters

Name Type Description
code String The content to be transformed to ES5. ES6 by default
react Boolean false. Enable this to allow transforming JSX code
experimental Boolean false. Enable this to allow stage-0 features

Response

{
  "code": "\"use strict\";\n\nvar a = React.createElement(\"div\", null);"
}

PostCSS

POST /api/postcss

Parameters

Name Type Description
code String The content to be transformed to valid CSS. Support PreCSS by using PostCSS

Response

{
  "code": "body h1{\n    font-size:15px;\n}"
}

Jade

POST /api/jade

Parameters

Name Type Description
code String The content to be transformed to valid HTML. Support Jade syntax

Response

{
  "code": "<body>hi</body>"
}

Curly CSS

POST /api/curlycss

Parameters

Name Type Description
code String White-space formated CSS, like Stylus syntax

Response

{
  "code": "body {color: #333;}"
}

Development

Command Description
npm run start:server Run server in development mode (nodemon)
npm run build:server Build server for production use. (rollup)

License

MIT © EGOIST

About

As its name suggests.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 96.8%
  • HTML 2.3%
  • Makefile 0.9%