cartocss2json

0.0.3 • Public • Published

cartocss2json

A node module for converting CartoCSS map styles to JSON.

This is a first step toward converting CartoCSS to other formats (eg, Leaflet styles), what is returned is a simplified parse tree of the CartoCSS.

Usage

You can use it as a module or as a command line script. To do the latter, clone this repo, npm install -g and invoke the script:

cartocss2json < <file>

TODO

  • variables
  • :: attachments
  • / instances

Contributing

All code changes should be made in src/index.js and compiled using Babel into the resulting index.js. Run npm run watch while editing to continuously compile using Babel.

License

MIT.

Readme

Keywords

Package Sidebar

Install

npm i cartocss2json

Weekly Downloads

1

Version

0.0.3

License

MIT

Last publish

Collaborators

  • ebrelsford