{"id":21700403,"url":"https://github.com/articulate/tinygen","last_synced_at":"2026-04-13T23:03:01.126Z","repository":{"id":57098969,"uuid":"74044666","full_name":"articulate/tinygen","owner":"articulate","description":"Tiniest of tiny base64 uid generators","archived":false,"fork":false,"pushed_at":"2016-12-21T20:55:14.000Z","size":18,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":64,"default_branch":"master","last_synced_at":"2024-04-24T17:58:29.201Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/articulate.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-11-17T16:16:51.000Z","updated_at":"2021-02-11T18:41:12.000Z","dependencies_parsed_at":"2022-08-20T17:30:37.925Z","dependency_job_id":null,"html_url":"https://github.com/articulate/tinygen","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/articulate%2Ftinygen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/articulate%2Ftinygen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/articulate%2Ftinygen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/articulate%2Ftinygen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/articulate","download_url":"https://codeload.github.com/articulate/tinygen/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244644938,"owners_count":20486894,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-25T20:14:13.994Z","updated_at":"2026-04-13T23:03:01.077Z","avatar_url":"https://github.com/articulate.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tinygen [![npm version](https://img.shields.io/npm/v/tinygen.svg)](https://www.npmjs.com/package/tinygen) [![npm downloads](https://img.shields.io/npm/dt/tinygen.svg)](https://www.npmjs.com/package/tinygen)\n\nTiniest of tiny `base64` uid generators.  Teeny-tiny browser version included, only 757 bytes.\n\n## API\n\n```haskell\ntinygen :: Number -\u003e String\n```\n\n#### Parameters\n\n- Number `len` \u003cbr/\u003e\n  Desired length of `id`. Defaults to `16`.\n\n#### Returns\n\n- String `id` \u003cbr/\u003e\n  A `base64` random uid.\n\n```js\nconst tinygen = require('tinygen')\n\ntinygen()   // =\u003e \"K4UP_gkFtzHMt5TN\"\ntinygen(32) // =\u003e \"4Z65y6VjtIaid-PpG6eSnzJ5P7lZwoNI\"\n```\n\n## CLI\n\n```sh\n$ npm i -g tinygen\n$ tinygen\nWsk6V84y9C0xI1Us\n$ tinygen 32\n05jrftGx1WROHu6_VQMVwLTtAxJ3AF1_\n```\n\n## Maintenance\n\nTo publish a new version:\n\n```\nyarn version\nnpm publish --access public\n```\n\nYou will be prompted for a new version number, the package will be rebuilt, and the tag pushed to `git` before publishing to `npm`.  The second step is required until [#1694](https://github.com/yarnpkg/yarn/issues/1694) is resolved.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farticulate%2Ftinygen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farticulate%2Ftinygen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farticulate%2Ftinygen/lists"}