npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

geostyler-cli

v3.1.1

Published

A command line interface for [GeoStyler](https://geostyler.org) to convert between various formats for styling of geographic data.

Downloads

22

Readme

GeoStyler CLI

A command line interface for GeoStyler to convert between various formats for styling of geographic data.

tl;dr

npx geostyler-cli --output new-qgis-style.qml my-existing.sld

Requirements

Requires Node.js and npx or npm, both usually come with Node.js.

Usage without installation ⚡

npx geostyler-cli -s sld -t qgis -o output.qml input.sld

Global installation

Installation 💾

Once:

npm install -g geostyler-cli

You can then use the new geostyler command, e.g.:

geostyler -s sld -t qgis -o output.qml input.sld

To process a folder of files:

geostyler -s sld -t qgis -o /outputdir /inputdir

Update 🚀

npm update -g geostyler-cli

Uninstalling 😔

npm uninstall -g geostyler-cli

Syntax

On a single file:

geostyler [options] -o /path/to/output.ext /path/to/input.ext

On a directory:

geostyler [options] -t qgis -o /path/to/output /path/to/input/

Options

  • -h / --help Display the help and exit.
  • -o / --output Output filename or directory. Required. [string]
  • -s / --source Source parser, either mapbox, mapfile or map, sld (for SLD 1.0), se (for SLD 1.1), qgis or qml. If not given, it will be guessed from the extension of the input file. Mandatory if the the target is a directory.
  • -t / --target Target parser, either mapbox, sld (for SLD 1.0), se (for SLD 1.1), qgis or qml. If not given, it will be guessed from the extension of the output file. Mandatory if the the target is a directory. Mapfiles are currently not supported as target.
  • -v / --version Display the version of the program.

Developing

In your clone of the repo, in the root directory:

npm install   # get dependencies
npm run build # build from possibly changed source
# now you can call your build like this:
npm start -- -s sld -t qgis -o output.qml testdata/point_simplepoint.sld

Funding & financial sponsorship

Maintenance and further development of this code can be funded through the GeoStyler Open Collective. All contributions and expenses can transparently be reviewed by anyone; you see what we use the donated money for. Thank you for any financial support you give the GeoStyler project 💞