metno-symbols

0.1.7 • Public • Published

metno-symbols

A set of files with met.no weather symbol names.

Supported languages: ['en', 'ro', 'bg', 'ru', 'hu', 'cs', 'it', 'pl', 'sq', 'tr', 'lv', 'vi', 'sr']

Files

  • symbols.json - general symbols
  • en.json - symbols names for English
  • ro.json - symbols names for Romanian
  • ... CODE.json - CODE = language code

Nodejs usage

var Symbols = require('metno-symbols');
var englishSymbols = Symbols.symbols('en');
var englishSunName = Symbols.symbolName(1);
// or:
// var englishSunName = Symbols.symbolName('Sun');
var romanianSunName = Symbols.symbolName(1, 'ro');
// or:
// var romanianSunName = Symbols.symbolName('Sun', 'ro');

Package Sidebar

Install

npm i metno-symbols

Weekly Downloads

4

Version

0.1.7

License

ISC

Unpacked Size

25.6 kB

Total Files

21

Last publish

Collaborators

  • mitica