Socket
Book a DemoInstallSign in
Socket

wikipedias

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wikipedias

Metadata about Wikipedia's international subdomain codes

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
1
-50%
Maintainers
1
Weekly downloads
 
Created
Source

Wikipedias

This a Node.js module containing metadata about Wikidpedia's international subdomain codes. The data was scraped from List_of_Wikipedias#List. It was created as a dependency of Ord, a node app that uses Wikipedia to translate words into many languages.

Installation

npm install wikipedias

Usage

const wikipedias = require('wikipedias')
console.log(wikipedias)

{
  en: {
    code: 'en',
    language: 'English',
    languageData: {},
    script: 'English',
    name: 'English Wikipedia',
    size: '6'
  },
  de: {
    code: 'de',
    language: 'German',
    languageData: {},
    script: 'Latn',
    name: 'German Wikipedia',
    size: '6'
  },
  fr: {
    code: 'fr',
    language: 'French',
    languageData: {},
    script: 'Latn',
    name: 'French Wikipedia',
    size: '6'
  },
}

Most entries also include a languageData object containing additional metadata about the language, including:

  • native name of the language, like 'Deutsch' for 'German'
  • countries where the language is officially spoken
  • geocoordinates of those countries (latitude and longitude)

See index.json.

Keywords

wikipedia

FAQs

Package last updated on 10 Dec 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts