{"id":22728880,"url":"https://github.com/peteroupc/idnajs","last_synced_at":"2025-03-30T00:28:16.061Z","repository":{"id":16754996,"uuid":"19512726","full_name":"peteroupc/IdnaJS","owner":"peteroupc","description":"A JavaScript implementation of IDNA 2008 and Unicode normalization","archived":false,"fork":false,"pushed_at":"2025-01-28T01:52:26.000Z","size":228,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-05T02:37:45.720Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/peteroupc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2014-05-06T22:15:16.000Z","updated_at":"2025-01-28T01:52:29.000Z","dependencies_parsed_at":"2025-01-28T02:33:45.575Z","dependency_job_id":"f7d52d13-f267-451c-8edf-b79dfcd10f84","html_url":"https://github.com/peteroupc/IdnaJS","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peteroupc%2FIdnaJS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peteroupc%2FIdnaJS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peteroupc%2FIdnaJS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peteroupc%2FIdnaJS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peteroupc","download_url":"https://codeload.github.com/peteroupc/IdnaJS/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246262514,"owners_count":20749170,"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-12-10T17:18:24.613Z","updated_at":"2025-03-30T00:28:16.039Z","avatar_url":"https://github.com/peteroupc.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"IdnaJS\n=======\n\n**Download source code: [ZIP file](https://github.com/peteroupc/IdnaJS/archive/master.zip)**\n\n----\n\nA JavaScript implementation of IDNA 2008 and Unicode normalization.\n\nInstallation\n----------\n\nRun the following code, assuming you have `npm` installed:\n\n     npm install peteroupc/IdnaJS\n\nUsage\n----------\n\n     var idna=require(\"idnajs\"),\n           Normalizer=idna.Normalizer,\n           Idna=idna.Idna;\n\nNormalizer.IsNormalized(string[, form])\n--------------\nReturns whether the specified string is in a Unicode normalization form.\nThe form can be `Normalization.NFC`, `Normalization.NFD`, `Normalization.NFKC`,\nor `Normalization.NFKD`.  If not given, NFC is assumed.  Returns false if the string\nis null or contains an unpaired surrogate code point.\n\nNormalizer.Normalize(string[, form])\n--------------\nConverts the specified string is in a Unicode normalization form.\nThe form can be `Normalization.NFC`, `Normalization.NFD`, `Normalization.NFKC`,\nor `Normalization.NFKD`.  If not given, NFC is assumed.  Throws an error if the\nstring is null.  Replaces unpaired surrogate code points in the string with\nU+FFFD (the replacement character).\n\nIdna.EncodeDomainName(string)\n-------------\nTries to encode each label of the specified domain name into Punycode.  Labels\nwhere this is not possible remain unchanged.  The labels are not checked for\nvalidity beyond the Punycode checks.\n\nIdna.IsValidDomainName(string[, lookupRules])\n-------------\nChecks whether a domain name is valid under IDNA 2008 (the second version\nof Internationalized Domain Names in Applications).  If `lookupRules` is true,\nuses somewhat more relaxed rules to be followed before looking up a domain\nname in the DNS; if `lookupRules` is omitted, the value `false` is assumed.\n\nSource Code\n---------\nSource code is available in the [project page](https://github.com/peteroupc/IdnaJS).\n\nAbout\n-----------\n\nWritten by Peter O.\n\nSee the [LICENSE](https://github.com/peteroupc/IdnaJS/blob/master/LICENSE.md) file for license information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeteroupc%2Fidnajs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeteroupc%2Fidnajs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeteroupc%2Fidnajs/lists"}