{"id":18418562,"url":"https://github.com/bsm/nanoid","last_synced_at":"2025-04-07T13:31:20.084Z","repository":{"id":45859618,"uuid":"241591202","full_name":"bsm/nanoid","owner":"bsm","description":null,"archived":false,"fork":false,"pushed_at":"2023-06-02T02:34:00.000Z","size":14,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-22T19:02:33.798Z","etag":null,"topics":["golang","nanoid","unique-id"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bsm.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-02-19T10:16:35.000Z","updated_at":"2024-12-14T15:36:02.000Z","dependencies_parsed_at":"2024-06-21T03:53:17.658Z","dependency_job_id":"1c26c454-1366-47c7-a2b9-ed6a848d3d16","html_url":"https://github.com/bsm/nanoid","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bsm%2Fnanoid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bsm%2Fnanoid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bsm%2Fnanoid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bsm%2Fnanoid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bsm","download_url":"https://codeload.github.com/bsm/nanoid/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247661653,"owners_count":20975095,"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":["golang","nanoid","unique-id"],"created_at":"2024-11-06T04:14:00.833Z","updated_at":"2025-04-07T13:31:19.685Z","avatar_url":"https://github.com/bsm.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NanoID\n\n[![Build Status](https://travis-ci.org/bsm/nanoid.png?branch=master)](https://travis-ci.org/bsm/nanoid)\n[![GoDoc](https://godoc.org/github.com/bsm/nanoid?status.png)](http://godoc.org/github.com/bsm/nanoid)\n[![Go Report Card](https://goreportcard.com/badge/github.com/bsm/nanoid)](https://goreportcard.com/report/github.com/bsm/nanoid)\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n\nThis is a port the original [JavaScript](https://github.com/ai/nanoid) library, a tiny, secure, URL-friendly, unique string ID generator for [Go](https://golang.org).\n\n## Examples\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/bsm/nanoid\"\n)\n\nfunc main() {\n\t// Generate a base64-encoded ID with default length.\n\tfmt.Println(nanoid.New()) // =\u003e \"AAXTFo7Gdp2kwyvZDySP6\"\n\n\t// Generate a base64-encoded ID with custom length.\n\tfmt.Println(nanoid.NewSize(16)) // =\u003e \"fSYXVjtyrXN8Bw33\"\n\n\t// Use custom encoding.\n\tfmt.Println(nanoid.Base32.MustGenerate(16)) // =\u003e \"WOEJC4M2HXXNSXQ7\"\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbsm%2Fnanoid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbsm%2Fnanoid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbsm%2Fnanoid/lists"}