data-store
xdg-go
data-store | xdg-go | |
---|---|---|
1 | 4 | |
158 | 579 | |
- | - | |
0.0 | 6.7 | |
almost 2 years ago | 2 days ago | |
JavaScript | Go | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
data-store
-
Rob Pike: “Dotfiles” being hidden is a UNIXv2 mistake (2012)
info on XDG: [the XDG spec](https://standards.freedesktop.org/basedir-spec/basedir-spec-...)
tools that respect XDG, for fellow JS CLI developers:
- https://github.com/davidtheclark/cosmiconfig Find and load configuration from a package.json property, rc file, or CommonJS module. [Check `searchPaths` to implement XDG spec compliance.](https://github.com/davidtheclark/cosmiconfig/issues/152)
- Sindre's libraries use [`env-paths`](https://github.com/sindresorhus/env-paths#pathsconfig) to get paths compliant with this.
- https://github.com/sindresorhus/conf simple config storing (maybe try [conf-cli](https://github.com/natzcam/conf-cli) to manipulate if needed) the successor to [configstore](https://github.com/sindresorhus/conf#how-is-this-different-f...)
- https://github.com/jonschlinkert/data-store conf like datastore but in the shclinkerverse
xdg-go
- $Home, Not So Sweet $Home
-
Rob Pike: “Dotfiles” being hidden is a UNIXv2 mistake (2012)
Slight correction here, XDG keys are analogous to Windows standards: https://github.com/adrg/xdg/blob/master/README.md
-
Seeking input on wallpaper utility
Annoyingly enough, while you claim to use XDG_CONFIG_HOME, you're only using $HOME/.config which is what it defaults to but not what the user might have set. Use os.Getenv("XDG_CONFIG_HOME") or similar functions to get the directory that the user have actually set to. You could also just use this package
-
Generic path to Documents folder for every user?
Perhaps use packages like https://github.com/adrg/xdg, that do the magic also for all operating systems.
What are some alternatives?
cosmiconfig - Find and load configuration from a package.json property, rc file, TypeScript module, and more!
Golang-PDF-to-Image-Converter - This project will help you to convert PDF file to IMAGE using golang.
env-paths - Get paths for storing things like data, config, cache, etc
zb - an opinionated repo based tool for linting, testing and building go source
conf - Simple config handling for your app or module
Peanut - 🐺 Deploy Databases and Services Easily for Development and Testing Pipelines.
.files - dotfiles for all my configs.
golang-tutorials - Golang Tutorials. Learn Golang from Scratch with simple examples.
conf-cli - simple cli for configuration and key/value's + oclif plugin for configuration
go-wkhtmltopdf - Go bindings for wkhtmltopdf and high-level HTML to PDF conversion interface
kitty - Cross-platform, fast, feature-rich, GPU based terminal
depth - Visualize Go Dependency Trees