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

gcfixer

v0.9.3

Published

Normalize Geocaching GPX file for Garmin devices

Downloads

5

Readme

GCFIXER

NPM Stats

GCFixer is command line tool for normalistaion of geocaching pocket queries (PQ) in GPX format to use with Garmin devices. GPX parser in Garmin devices is not perfect and can have problems with not well formed or compilcated HTML descriptions. Also PQ can contain rich text formatted logs and this can sometimes render them unreadable.

What tool does:

  • Simplify HTML code in cache description and fix potential errors (or optionally remove HTML formating)
  • Replace internationalised diacritic to simple ASCII
  • Replace emojis with ASCII emoticons if possible

Installation

You can choose to use published version from npmjs.com or directly clone project from GitHub

Install from NPMJS

npm install -g gcfixer

Installation from Git

  • You need NodeJS to be installed on your computer.
  • Clone repository or download zip:
git clone https://github.com/dullus/gcfixer.git
  • Install it
cd gcfixer
npm install -g .
  • Run it
gcfixer --help

will output:

Usage: -i <infile> [-o <outfile>]

Options:
  --help        Show help                            [boolean]
  --version     Show version number                  [boolean]
  -i, --input   Input file                 [string] [required]
  -o, --output  Output file                           [string]
  -h, --html    strip html                           [boolean]
  -s, --stdout  pipe result to stdout                [boolean]

Sample usage

# Process file GC12345.gpx and save output to GC12345.out.gpx:
gcfixer -i GC12345.gpx

# Process file GC12345.gpx, strip html from description to plaintext and save output to output.gpx:
gcfixer -i GC12345.gpx -o output.gpx -h

# Process file GC12345.gpx and output to stdout:
gcfixer -i GC12345.gpx -s

Uninstall

npm uninstall -g gcfixer

API

You can use GCFixer directly as library without CLI interface in your project.

npm install --save gcfixer

Then include in your project (TypeScript example):

import { Process } from 'gcfixer/src/Process';
// configure options
const params = {
  stdout: true, // matches -s switch
  stripHtml: false // matches -h switch
};
// create instance
const process = new Process('input.gpx', params);
// add some code to capture STDOUT, or use temporary file
...
// run conversion
process.run().then(
  (caches: number) => { /* .. promise resolved handler */ },
  () => { /* .. promise rejected handler */ }
);