iso-639-2 - npm

文章推薦指數: 80 %
投票人數:10人

iso-639-2. TypeScript icon, indicating that this package has built-in type declarations · Keywords. iso-639-23.0.2 • Public • PublishedamonthagoReadmeExploreBETA0Dependencies12Dependents11Versions iso-639-2 InfoonISO639-2. Contents Whatisthis? WhenshouldIusethis? Install Use API iso6392 iso6392BTo1 iso6392BTo2T iso6392TTo1 iso6392TTo2B Types Data Compatibility Security Related Contribute License Whatisthis? ThispackagecontainsinfoonISO639-2. ISO639-2isthealpha-3codeinCodesfortherepresentationofnamesof languages–Part2. WhenshouldIusethis? YoucanusethispackageanytimeyouhavetodealwithlanguagesorISO639-2 inparticular. ButISO639-3mightbebetter. Install ThispackageisESMonly. InNode.js(version12.20+,14.14+,or16.0+),installwithnpm: npminstalliso-639-2 InDenowithesm.sh: import{iso6392}from'https://esm.sh/iso-639-2@3' Inbrowserswithesm.sh: import{iso6392}from'https://esm.sh/iso-639-2@3?bundle' Use import{iso6392}from'iso-639-2' iso6392.slice(120,150) Yields: [ {name:'Egyptian(Ancient)',iso6392B:'egy'}, {name:'Ekajuk',iso6392B:'eka'}, {name:'Elamite',iso6392B:'elx'}, {name:'English',iso6392B:'eng',iso6391:'en'}, {name:'English,Middle(1100-1500)',iso6392B:'enm'}, {name:'Esperanto',iso6392B:'epo',iso6391:'eo'}, {name:'Estonian',iso6392B:'est',iso6391:'et'}, {name:'Ewe',iso6392B:'ewe',iso6391:'ee'}, {name:'Ewondo',iso6392B:'ewo'}, {name:'Fang',iso6392B:'fan'}, {name:'Faroese',iso6392B:'fao',iso6391:'fo'}, {name:'Fanti',iso6392B:'fat'}, {name:'Fijian',iso6392B:'fij',iso6391:'fj'}, {name:'Filipino;Pilipino',iso6392B:'fil'}, {name:'Finnish',iso6392B:'fin',iso6391:'fi'}, {name:'Finno-Ugrianlanguages',iso6392B:'fiu'}, {name:'Fon',iso6392B:'fon'}, {name:'French',iso6392B:'fre',iso6392T:'fra',iso6391:'fr'}, {name:'French,Middle(ca.1400-1600)',iso6392B:'frm'}, {name:'French,Old(842-ca.1400)',iso6392B:'fro'}, {name:'NorthernFrisian',iso6392B:'frr'}, {name:'EasternFrisian',iso6392B:'frs'}, {name:'WesternFrisian',iso6392B:'fry',iso6391:'fy'}, {name:'Fulah',iso6392B:'ful',iso6391:'ff'}, {name:'Friulian',iso6392B:'fur'}, {name:'Ga',iso6392B:'gaa'}, {name:'Gayo',iso6392B:'gay'}, {name:'Gbaya',iso6392B:'gba'}, {name:'Germaniclanguages',iso6392B:'gem'}, {name:'Georgian',iso6392B:'geo',iso6392T:'kat',iso6391:'ka'} ] API Thispackageexportsthefollowingidentifiers:iso6392,iso6392BTo1, iso6392BTo2T,iso6392TTo1,andiso6392TTo2B. Thereisnodefaultexport. iso6392 Listoflanguages(Array). Language name(string)—languagename iso6392B(string)—bibliographiccode iso6392T(string?)—terminologiccode,missingwhenboth639-2codes arethesame(21languageshavedifferentbibliographicandterminologic codes) iso6391(string?)—ISO639-1code iso6392BTo1 ISO639-2Bibliographic(dut)toISO639-1(nl)(Record). iso6392BTo2T ISO639-2Bibliographic(dut)toISO639-2Terminologic(nld) (Record) Missingwhenthebibliographicandterminologiccodesarethesame. iso6392TTo1 ISO639-2Terminologic(nld)toISO639-1(nl)(Record). Notalllanguagein639-2wereavailablein639-1. iso6392TTo2B ISO639-2Terminologic(nld)toISO639-2Bibliographic(dut) (Record). Missingwhenthebibliographicandterminologiccodesarethesame. Types ThispackageisfullytypedwithTypeScript. AnadditionalLanguagetypeisexportedthatmodelsitsrespective interface. Data Thedataiscrawledfromwww.loc.gov. Compatibility ThispackageisatleastcompatiblewithallmaintainedversionsofNode.js. Asofnow,thatisNode.js12.20+,14.14+,and16.0+. ItalsoworksinDenoandmodernbrowsers. Security Thispackageissafe. Related bcp-47 —ParseandserializeBCP47languagetags bcp-47-match —MatchBCP47languagetagswithlanguagerangesperRFC4647 bcp-47-normalize —Normalize,canonicalize,andformatBCP47tags iso-3166 —ISO3166codes iso-639-3 —ISO639-3codes iso-15924 —ISO15924codes un-m49 —UNM49codes Contribute Yesplease! SeeHowtoContributetoOpenSource. License MIT©TitusWormer Keywordsiso-639-2iso6392languagecodenameinformationInstallnpmiiso-639-2RepositoryGitgithub.com/wooorm/iso-639-2Homepagegithub.com/wooorm/iso-639-2#readmeFundthispackageDownloadsWeeklyDownloads1,743Version3.0.2LicenseMITUnpackedSize46.4kBTotalFiles15LastpublishamonthagoCollaboratorsTryonRunKitReportmalware



請為這篇文章評分?