start-of-week v4.4.0-next.1700862408.c9520f7c9b852c3ed90541d1267686958a5ece14
Take a locale and return its start of the week (0 = Sunday, 1 = Monday)
Usage
import getSW from 'start-of-week'
console.log(getSW()) // 0 (Sunday) if user is in North American, otherwise 1 (Monday)
console.log(getSW('')) // 1
console.log(getSW('en_AU')) // 1
console.log(getSW('en_US')) // 0
console.log(getSW('en_CA')) // 0If you want something comprehensive, use gamtiq/weekstart instead.
npm
Deno
import pkg from 'https://unpkg.com/start-of-week@^4.4.0/edition-deno/deno.ts'Skypack
<script type="module">
import pkg from '//cdn.skypack.dev/start-of-week@^4.4.0'
</script>unpkg
<script type="module">
import pkg from '//unpkg.com/start-of-week@^4.4.0'
</script>jspm
<script type="module">
import pkg from '//dev.jspm.io/start-of-week@4.4.0'
</script>Discover the release history by heading on over to the HISTORY.md file.
Discover how you can contribute by heading on over to the CONTRIBUTING.md file.
These amazing people are maintaining this project:
No sponsors yet! Will you be the first?
These amazing people have contributed code to this project:
Discover how you can contribute by heading on over to the CONTRIBUTING.md file.
Unless stated otherwise all works are:
and licensed under:
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
5 years ago
5 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago