{"id":16126744,"url":"https://github.com/mikolalysenko/superscript-number","last_synced_at":"2025-03-18T13:31:34.135Z","repository":{"id":27749800,"uuid":"31237774","full_name":"mikolalysenko/superscript-number","owner":"mikolalysenko","description":"Convert a number to superscript","archived":false,"fork":false,"pushed_at":"2015-02-24T00:38:00.000Z","size":120,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-28T10:00:59.055Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/mikolalysenko.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":"2015-02-24T00:31:09.000Z","updated_at":"2021-01-14T00:09:33.000Z","dependencies_parsed_at":"2022-09-03T05:11:10.182Z","dependency_job_id":null,"html_url":"https://github.com/mikolalysenko/superscript-number","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikolalysenko%2Fsuperscript-number","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikolalysenko%2Fsuperscript-number/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikolalysenko%2Fsuperscript-number/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikolalysenko%2Fsuperscript-number/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mikolalysenko","download_url":"https://codeload.github.com/mikolalysenko/superscript-number/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243933378,"owners_count":20370989,"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-10-09T21:40:11.184Z","updated_at":"2025-03-18T13:31:33.815Z","avatar_url":"https://github.com/mikolalysenko.png","language":"JavaScript","readme":"superscript-number\n==================\nConverts a number to a superscript unicode character.\n\n# Example\n\n```javascript\nvar super = require('superscript-number')\n\nconsole.log(super(1052))\nconsole.log(super(-66))\nconsole.log(super(1e32))\nconsole.log(super(Infinity))\nconsole.log(super(NaN))\nconsole.log(super(-Infinity))\n```\n\nOutput:\n\n```\n¹⁰⁵²\n⁻⁶⁶\n¹ᵉ⁺³²\n⁺ᴵⁿᶠ\nᴺᵃᴺ\n⁻ᴵⁿᶠ\n```\n\nNot the prettiest kerning in the world, but it works :shrug:\n\n# Install\n\n```\nnpm i superscript-number\n```\n\n# API\n\n#### `var str = require('superscript-number')(x[, base])`\nConverts a number to a superscript string\n\n* `x` is a number\n* `base` is an integer between 2 and 36 represeting the base of the output\n\n**Returns** a superscript string printing out `x`\n\n# License\n(c) 2015 Mikola Lysenko. MIT License.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikolalysenko%2Fsuperscript-number","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmikolalysenko%2Fsuperscript-number","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikolalysenko%2Fsuperscript-number/lists"}