An open API service indexing awesome lists of open source software.

https://github.com/reside-ic/ids

:information_source: Simple random identifiers
https://github.com/reside-ic/ids

Last synced: 3 months ago
JSON representation

:information_source: Simple random identifiers

Awesome Lists containing this project

README

        

# ids

[![Project Status: Active - The project has reached a stable, usable state and is being actively developed.](http://www.repostatus.org/badges/latest/active.svg)](http://www.repostatus.org/#active) [![R-CMD-check](https://github.com/richfitz/ids/workflows/R-CMD-check/badge.svg)](https://github.com/richfitz/ids/actions)
[![CodeFactor](https://www.codefactor.io/repository/github/reside-ic/ids/badge)](https://www.codefactor.io/repository/github/reside-ic/ids)
[![codecov.io](https://codecov.io/github/reside-ic/ids/coverage.svg?branch=master)](https://codecov.io/github/reside-ic/ids?branch=master)
[![](https://www.r-pkg.org/badges/version/ids)](https://cran.r-project.org/package=ids)

Generate random identifiers in a number of styles:

* random ids of any number of bytes, such as `31f6d556fe2b303c` with `ids::random_id`
* UUIDs using the `uuid` package, such as `4f0efabf-0375-4a08-89ea-b8f162f07c44` with `ids::uuid`
* human readable identifiers in the style `_` (following [gfycat.com](http://gfycat.com)), such as `misanthropic_lungfish` with `ids::adjective_animal`
* human readable identifiers in the style of a sentence (following [Asana](https://blog.asana.com/2011/09/6-sad-squid-snuggle-softly), such as `33_enormous_chinchillas_tumbling_elegantly` with `ids::sentence`
* [proquint](https://arxiv.org/html/0901.4016) ("PRO-nouncable QUINT-uplet") identifiers such as `dizuz-soboz` (which can be converted to an integer such as 40,2638,895) with `ids::proquint`

These can all be tweaked with options for length, words that are used, and the case that joins words. There is a function `ids::ids` for creating your own human readable identifiers.

## Installation

Install this package from CRAN

```r
install.packages("ids")
```

or install the development version with

```r
remotes::install_github("reside-ic/ids", upgrade = FALSE)
```