Skip to content

ExternKit/extern-js-accept-language

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

extern-js-accept-language

  • Target : Javascript (NodeJS)
  • Library : accept-language
  • Last tested version : 2.0.16
  • Available on : Github - NPM

Usage

import js.acceptlanguage.*;

class Main
{
  static function main()
  {
    AcceptLanguage.instance.languages(['en-US', 'zh-CN']);
    trace(AcceptLanguage.instance.get('en-GB,en;q=0.8,sv')); /* 'en-US' */

    var language = AcceptLanguage.instance.parse('en-GB,en;q=0.8,sv');
    trace(language);
    /*
    [
      {
        value: 'en-US',
        language: "en",
        region: "US",
        quality: 1.0
      }
    ];
    */
  }
}

About

NodeJS accept-language library extern

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages