项目作者: gamtiq

项目描述 :
Library to get first day of week.
高级语言: JavaScript
项目地址: git://github.com/gamtiq/weekstart.git
创建时间: 2017-09-07T20:19:15Z
项目社区:https://github.com/gamtiq/weekstart

开源协议:MIT License

下载


" class="reference-link">weekstart

NPM version

Library to get first day of week.

  1. getWeekStartByRegion('MAC'); // 0
  2. getWeekStartByLocale('arq'); // 6

The library is based on the following data from Unicode (especially from Common Locale Data Repository) and from ISO:

There are 2 variants of the library having identical API:

  • main - uses base mapping of language code to country code from langRegionMap.
  • full - uses full mapping of language code to country code from fullLangRegionMap.

langRegionMap contains only main language codes.
It is data subset from fullLangRegionMap.

Table of contents

Installation

Node

  1. npm install weekstart

Bower

  1. bower install weekstart

AMD/UMD,