neoid

Nim implementation of NanoID, a tiny, secure, URL-friendly, unique string ID generator. Works with Linux and Windows!

Pure Nim score 30/100 · tests present · docs generated

Summary

Latest Version Unknown
License GPL-3.0-or-later
CI Status Passing
Downloads 0
Last Indexed 2026-07-21 05:24

Installation

nimble install neoid
choosenim install neoid
git clone https://github.com/theAkito/nim-neoid

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
neoid - - - - - - -

Source

Repository https://github.com/theAkito/nim-neoid
Homepage https://github.com/theAkito/nim-neoid
Documentation View Documentation
Registry Source nimble_official

README

nimble

Language

Build Status

GitHub Liberapay patrons

What

Fork of the original nanoid Nim package.

Why

See this sad display of an issue in the original project. I needed this to work immediately, so I quickly and very dirtily implemented a Windows compatability fix. It's very dirty, but at least it is up to date (does not use deprecated Windows Security functionality) and it actually works on Windows!

This was needed as the original author of an important dependency was not interested in fixing his random library, which is supposed to work on Windows, even though just importing this library makes your program not work on Windows, at all.

How

Get started.

nimble configure

Test run.

nimble test

Where

  • Linux
  • Windows
  • OpenBSD

Goals

Keep it compatible with Windows.

Project Status

At the time of writing, very ugly Windows is implemented, but at least it works precisely the way it is supposed to!

License

MIT License

Copyright (C) 2020 Akito the@akito.ooo\ Copyright (C) 2018 Anirudh Oppiliappan icyph0x@pm.me

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.