wakatime-colors

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 31, 2024 License: MIT Imports: 4 Imported by: 0

README

Wakatime Colors

GitHub package.json version Update GitHub go.mod Go version GitHub Release

Overview

A machine-readable list of programming languages along with their primary colors, as used in Wakatime

The data is updated automatically at regular intervals.

Accessing the Data

You can directly fetch the raw content from github to get the latest data.

Alternatively, you can import this repository as an npm module and call the fetchJson() function the retrieve the data from your JavaScript/TypeScript app.

Docker support

You can run the fetcher as a docker container!

$ docker run --rm ghcr.io/abiriadev/wakatime-colors:main

It will immediately fetch and print the latest data to the standard output.

Manually Build

To manually build the project, follow these steps:

# Checkout the repository
$ git https://github.com/abiriadev/wakatime-colors && cd wakatime-colors

# Install dependencies
$ corepack enable
$ pnpm install

# Build the source
$ pnpm build

# Finally, run below command to fetch and save data
$ pnpm run fetch

After running the above commands, the updated data will be available in colors.json.

Rendering an SVG Preview Image

To generate an SVG preview image, assuming you have the colors.json file at the root:

$ go run .

This command will create a rendered SVG file named colors.svg.

Preview

License

GitHub

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL