Notoriously Punctual Manatee

    cimple-data

    0.2.2 • Public • Published

    cimple-data

    Useful information to use in your project

    Installation

    npm i cimple-data

    Usage

    // ES Module
    import currencies from 'cimple-data/currencies';
    // CommonJS
    const currencies = require("cimple-data/currencies");

    Available data

    Countries

    import countries from 'cimple-data/countries';
    
    /* returns 
    {
        name: string;
        officialStateName: string;
        sovereignty: string;
        code: string;
        ccTld: string;
    }[]
    */

    Currencies

    import currencies from 'cimple-data/currencies';
    
    /* returns 
    {
        name: string;
        symbol: string;
    }[] 
    */

    Domains

    import domains from 'cimple-data/domains';
    
    /* returns 
    {
        name: string;
        type: string;
        tldManager: string;
    }[]
    */

    Languages

    import languages from 'cimple-data/languages';
    
    /* returns 
    {
        country: string;
        officialLanguage: string;
        regionalLanguage: string;
        minorityLanguage: string;
        nationalLanguage: string;
        widelySpoken: string;
    } | {
        country: string;
        officialLanguage: string;
        regionalLanguage: string;
        minorityLanguage: string;
        nationalLanguage: string;
        widelySpoken?: undefined;
    })[]
    */

    Locales

    import locales from 'cimple-data/locales';
    
    /* returns
    {
        languageString: string;
        equivalentLocaleName: string;
    }[]
    */

    Timezones

    import timezones from 'cimple-data/timezones';
    
    /* returns
    {
        countryCode: string;
        name: string;
        portionOfCountryCovered: string;
        status: string;
        UTCOffset: string;
        UTCDSTOffset: string;
    }[]
    */

    Install

    npm i cimple-data

    DownloadsWeekly Downloads

    2

    Version

    0.2.2

    License

    MIT

    Unpacked Size

    595 kB

    Total Files

    15

    Last publish

    Collaborators

    • reliutg