UnlyEd/iso3166-1

View on GitHub
test-browser/index.html

Summary

Maintainability
Test Coverage
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>Browser Test</title>
  <script src="./iso3166-1.js"></script>
  <script>
  console.log('window.iso31661', window.iso31661)
  console.log('USA', '   <- to3() -> ', window.iso31661.from('USA').to3() + '\n')         // USA
  console.log('USA', '   <- to2() -> ', window.iso31661.from('USA').to2() + '\n')         // US
  console.log('USA', '   <- to3() -> ', window.iso31661.from('US').to3() + '\n')          // USA
  console.log('USA', '   <- to2() -> ', window.iso31661.from('US').to2() + '\n')          // US
  console.log('en-US', ' <- to3() -> ', window.iso31661.fromLocale('en-US').to3() + '\n') // USA
  console.log('en-US', ' <- to2() -> ', window.iso31661.fromLocale('en-US').to2() + '\n') // US  
  </script>
</head>
<body>
  open console
</body>
</html>