wikipedias

Metadata about Wikipedia's international subdomain codes

npm install wikipedias
7 downloads in the last month

Wikipedias

This is a node module containing metadata about Wikidpedia's international subdomain codes. The data was scraped from List_of_Wikipedias#List

Installation

npm install wikipedias --save

Usage

var wikipedias = require('wikipedias');
console.log(wikipedias);

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

Tests

npm test

wikipedias
  ✓ is an object
  ✓ uses subdomains as object keys
  each wikipedia
    ✓ has a code
    ✓ has a language
    ✓ has a script
    ✓ has a name
    ✓ has a size
npm loves you