{"_id":"start-of-week","_rev":"120-8211f23f3598af4ff94b172689c18b1b","name":"start-of-week","dist-tags":{"latest":"4.7.0","next":"4.7.0-next.1703878030.edf272e71154d6da45fc81c8848ef10772dcb4ca"},"versions":{"1.0.0":{"name":"start-of-week","version":"1.0.0","description":"Returns the start of the week based on the locale.","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["date","daet","startweek","locale","week","start","day","number"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","patreon","flattr","liberapay","thanksapp","boostlab","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com"}},"author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=8"},"editions":[{"description":"typescript source code with import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"typescript compiled for browsers with import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"typescript compiled for node.js 11 with require for modules","directory":"edition-node-11","entry":"index.js","tags":["javascript","require"],"engines":{"node":"8 || 10 || 11","browsers":false}}],"types":"source/index.ts","main":"edition-node-11/index.js","browser":"edition-browsers/index.js","devDependencies":{"@babel/cli":"^7.2.3","@babel/core":"^7.3.4","@babel/plugin-proposal-class-properties":"^7.3.4","@babel/plugin-proposal-object-rest-spread":"^7.3.4","@babel/preset-env":"^7.3.4","@babel/preset-typescript":"^7.3.3","@typescript-eslint/eslint-plugin":"^1.4.2","@typescript-eslint/parser":"^1.4.2","babel-plugin-add-module-exports":"^1.0.0","eslint":"^5.15.1","eslint-config-bevry":"^1.2.0","eslint-config-prettier":"^4.1.0","eslint-plugin-prettier":"^3.0.1","kava":"^3.1.0","prettier":"^1.16.4","projectz":"^1.7.4","surge":"^0.20.1","typedoc":"^0.14.2","typescript":"^3.3.3333","valid-directory":"^1.0.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers && npm run our:compile:edition-node-11","our:compile:edition-browsers":"env BABEL_ENV=edition-browsers babel --extensions \".ts,.tsx\" --out-dir ./edition-browsers ./source","our:compile:edition-node-11":"env BABEL_ENV=edition-node-11 babel --extensions \".ts,.tsx\" --out-dir ./edition-node-11 ./source","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:docs && npm run our:meta:projectz","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:typescript","our:verify:directory":"npx valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:typescript":"tsc --noEmit --project .","test":"node ./edition-node-11/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"babel":{"env":{"edition-browsers":{"sourceType":"module","presets":[["@babel/preset-env",{"targets":"defaults","modules":false}],"@babel/preset-typescript"],"plugins":["@babel/proposal-object-rest-spread","@babel/proposal-class-properties","add-module-exports"]},"edition-node-11":{"sourceType":"module","presets":[["@babel/preset-env",{"targets":{"node":"11"},"modules":"commonjs"}],"@babel/preset-typescript"],"plugins":["@babel/proposal-object-rest-spread","@babel/proposal-class-properties","add-module-exports"]}}},"contributors":[],"gitHead":"a60603f8d228ebe762f4f8cefc3a52d2062b2893","_id":"start-of-week@1.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"bevryme","email":"us@bevry.me"},"dist":{"integrity":"sha512-L8WZfTg9+LIszrPiqDD6km6As4boM2H0dYgmTcfo9NcXAU9B5G8BkMf3TU80FZ6OYHVDZeCXkSsR7LIIHUEQvA==","shasum":"7aa75b675be1e3dcefedc9c2b8c032ac546fa4af","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-1.0.0.tgz","fileCount":8,"unpackedSize":19460,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJch6R3CRA9TVsSAnZWagAAMTsP/iwzz28O3XKW+00aMYDl\nzcziX1+T9iOuANoPnfEurXumop4U/v7GtS2R7IVnvvFKHSf+YhQODc+gqUyG\nzNpux3/uCW4iacrHEt5kW/NzdfnZ7Z+38/mcwhMAPQtca0UhHuhVdEvOS5jG\nFmDUSANlgdp1BpOimkPJAy8n4jxkT64JUk5urhrfHMrna7nobtM2AXBPayS7\nFgwo5D6IA6Nwwqm1Bxp8hMSnZRsGZmEOEWRfSPQ3eGY6SowjdCPwli4XlVdI\nxKApuvOb5gMhPZEfGISMnvDHa5LeOsLcHgTrLTa01J2ok6BPe+hv109VGyAd\n0RWrprUKxpunzQUe+AMktusqsD4mJpwgI+2D5Bf/qKmlpTiIIHMlmsA1i20A\nHWEqLamASFY/4J4xpesZxYJk7ZOs0qlAeKKXOEjqPanWCsV5YAv6UTk0lZjw\nNUngY8rGY9zNff0bT+Vx2sg+wcjmngNvmOFWuhCDQG7oUvfvrqbS1O6E3pIF\n8g057AuwC3yx20uJrNknIuQJiquniLXghI+lmOWITbgDSDPZUbHIDGZwzxvk\nqrCryvXrvVfazuvfeov+n85EFaio37y1gd92ukvD/KG8GPAIvYXEx9+JC5EB\namNtBa+3hM1WR7rc2PTTTH18pKCUtyMV3DEz2LtrXt70xyaNLDNdcnma0vIZ\nwaU5\r\n=isVc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCRWUJhlaCfXclMfB+3SkxoU/0hnpwXUlOYx/4uajkTGQIgO+ELDaY9m+LGhV/foWLZmR9ADjTZoosIHVx5NCdbWmU="}]},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_1.0.0_1552393334600_0.17885024425347762"},"_hasShrinkwrap":false},"1.1.0":{"name":"start-of-week","version":"1.1.0","description":"Returns the start of the week based on the locale.","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["date","daet","startweek","locale","week","start","day","number"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","patreon","flattr","liberapay","thanksapp","boostlab","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com"}},"author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","url":"http://balupton.com"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=8"},"editions":[{"description":"typescript source code with import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"typescript compiled for browsers with import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"typescript compiled for node.js 12 with require for modules","directory":"edition-node-12","entry":"index.js","tags":["javascript","require"],"engines":{"node":"8 || 10 || 11 || 12","browsers":false}}],"types":"source/index.ts","main":"edition-node-12/index.js","browser":"edition-browsers/index.js","module":"edition-browsers/index.js","devDependencies":{"@babel/cli":"^7.4.4","@babel/core":"^7.4.4","@babel/plugin-proposal-class-properties":"^7.4.4","@babel/plugin-proposal-object-rest-spread":"^7.4.4","@babel/preset-env":"^7.4.4","@babel/preset-typescript":"^7.3.3","@typescript-eslint/eslint-plugin":"^1.9.0","@typescript-eslint/parser":"^1.9.0","assert-helpers":"^4.9.6","babel-plugin-add-module-exports":"^1.0.2","eslint":"^5.16.0","eslint-config-bevry":"^1.2.0","eslint-config-prettier":"^4.2.0","eslint-plugin-prettier":"^3.1.0","kava":"^3.1.0","prettier":"^1.17.0","projectz":"^1.7.4","surge":"^0.20.4","typedoc":"^0.14.2","typescript":"^3.4.5","valid-directory":"^1.0.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers && npm run our:compile:edition-node-12","our:compile:edition-browsers":"env BABEL_ENV=edition-browsers babel --extensions \".ts,.tsx\" --out-dir ./edition-browsers ./source","our:compile:edition-node-12":"env BABEL_ENV=edition-node-12 babel --extensions \".ts,.tsx\" --out-dir ./edition-node-12 ./source","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:docs && npm run our:meta:projectz","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:typescript","our:verify:directory":"npx valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:typescript":"tsc --noEmit --project .","test":"node ./edition-node-12/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"babel":{"env":{"edition-browsers":{"sourceType":"module","presets":[["@babel/preset-env",{"targets":"defaults","modules":false}],"@babel/preset-typescript"],"plugins":["@babel/proposal-object-rest-spread","@babel/proposal-class-properties","add-module-exports"]},"edition-node-12":{"sourceType":"module","presets":[["@babel/preset-env",{"targets":{"node":"12"},"modules":"commonjs"}],"@babel/preset-typescript"],"plugins":["@babel/proposal-object-rest-spread","@babel/proposal-class-properties","add-module-exports"]}}},"gitHead":"f8fee9e5fd0e815639451da8f09d22770feab885","_id":"start-of-week@1.1.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"bevryme","email":"us@bevry.me"},"dist":{"integrity":"sha512-DkHTJJeb0MvakleVNpbfNLZ0TlCG7wJJPvV/kctkDyVdA4A2/5Dt6HNlei0i8CBi8gZ88cBN6LkTzzKkFSlXfQ==","shasum":"9b729eea7b96fdfc29917727af005839d7483666","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-1.1.0.tgz","fileCount":8,"unpackedSize":20190,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc2Q/hCRA9TVsSAnZWagAATdEP/1vhGfaYUbD3ckobnP3h\nXa43MErz25u54EpTc/1+G4blhSMzXe3LU1vBuFsL3mDIbbP1yrzf8F31rBVB\n0Hqxfegxe9k1bQHQynxWzCAjlkNbnLP5/vkA5BKYUpJH5PNaJimqPP5gUEtd\nhm760nYFaS8DM8II3OKYDOaermMOZ9Z+IuK3uBiKy6gpk1O3xV8JAZkf5PJd\nfe75FnPIDwZDKhCMYJ3BGvpoBh/tp9l+2zKZWgWhnPwuoqQBtzGHXjskL2MB\nlC9SAmSlBKg0ZBiELnbBbTIb01QncUo8RqR32VRlu5YFaHxOrAWy2TiETx1Q\nNWDogqjMLQYetnWvmY+rc48scflpAdFHbNvMdAOlZIKyG7hI2oO3s9nYERlu\n0Bki7FXOHFZQb/pOnIeGscY+73lsO6u5wbPV5d9GaIQdDp58KUz99o3HltcD\nVxo2rUboqz038Ux8qR4feEPwjWOlWFiRVZERkNlF6bJ9mRipX6rm7v8Jpr0m\nS99dZwNJcL9k5vzA6xiQsSC96G2tt/RHfjeOu/cBK/dyz08wmc9xYdmPrh0Q\nX8jTyUQiVteECnZOUDLW6QiCaJfYSuov+8f3t8320NNkE6+vVQXqZH/lwoUR\nEpsFoDi1ikYah9itxIqSslyGEQr5FYP4fqXtuw2/d/3oM5uKI/lNTDTX1LZk\nM9vQ\r\n=206F\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC3uCzgK58dWlIYZ3dsxVoHV0nIhXCFnyNGP7CLeMGiwwIhAN5irjogOCJHPXmz+mU6VTau7w7M+8PRAF/ZU4jfAgCe"}]},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_1.1.0_1557729248964_0.6939083261684273"},"_hasShrinkwrap":false},"1.2.0-next.1573631586.167842fea80428f3e0ee6e1c9e789775e574cb50":{"name":"start-of-week","version":"1.2.0-next.1573631586.167842fea80428f3e0ee6e1c9e789775e574cb50","description":"Returns the start of the week based on the locale.","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["date","daet","startweek","locale","week","start","day","number"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","url":"http://balupton.com"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=8"},"editions":[{"description":"typescript source code with import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"typescript compiled for browsers with import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"typescript compiled for node.js 13 with require for modules","directory":"edition-node-13","entry":"index.js","tags":["javascript","require"],"engines":{"node":"8 || 10 || 12 || 13","browsers":false}}],"types":"source/index.ts","main":"edition-node-13/index.js","browser":"edition-browsers/index.js","module":"edition-browsers/index.js","devDependencies":{"@babel/cli":"^7.7.0","@babel/core":"^7.7.2","@babel/plugin-proposal-class-properties":"^7.7.0","@babel/plugin-proposal-object-rest-spread":"^7.6.2","@babel/preset-env":"^7.7.1","@babel/preset-typescript":"^7.7.2","@typescript-eslint/eslint-plugin":"^2.7.0","@typescript-eslint/parser":"^2.7.0","assert-helpers":"^5.3.0","babel-plugin-add-module-exports":"^1.0.2","eslint":"^6.6.0","eslint-config-bevry":"^1.2.1","eslint-config-prettier":"^6.5.0","eslint-plugin-prettier":"^3.1.1","kava":"^3.2.0","prettier":"^1.19.1","projectz":"^1.10.0","surge":"^0.21.3","typedoc":"^0.15.1","typescript":"^3.7.2","valid-directory":"^1.0.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers && npm run our:compile:edition-node-13","our:compile:edition-browsers":"env BABEL_ENV=edition-browsers babel --extensions \".ts,.tsx\" --out-dir ./edition-browsers ./source","our:compile:edition-node-13":"env BABEL_ENV=edition-node-13 babel --extensions \".ts,.tsx\" --out-dir ./edition-node-13 ./source","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:docs && npm run our:meta:projectz","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier && npm run our:verify:typescript","our:verify:directory":"npx valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write ./source/**","our:verify:typescript":"tsc --noEmit --project .","test":"node ./edition-node-13/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"babel":{"env":{"edition-browsers":{"sourceType":"module","presets":[["@babel/preset-env",{"targets":"defaults","modules":false}],"@babel/preset-typescript"],"plugins":["@babel/proposal-object-rest-spread","@babel/proposal-class-properties","add-module-exports"]},"edition-node-13":{"sourceType":"module","presets":[["@babel/preset-env",{"targets":{"node":"13"},"modules":"commonjs"}],"@babel/preset-typescript"],"plugins":["@babel/proposal-object-rest-spread","@babel/proposal-class-properties","add-module-exports"]}}},"gitHead":"167842fea80428f3e0ee6e1c9e789775e574cb50","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/start-of-week\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/start-of-week/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nReturns the start of the week based on the locale.\n\n<!-- /DESCRIPTION -->\n\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Require: <code>require('start-of-week')</code></li>\n</ul>\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import * as pkg from '//dev.jspm.io/start-of-week'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/index.ts</code> is typescript source code with import for modules</li>\n<li><code>start-of-week/edition-browsers/index.js</code> is typescript compiled for browsers with import for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-node-13/index.js</code></li>\n<li><code>start-of-week/edition-node-13/index.js</code> is typescript compiled for node.js 13 with require for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n## Usage\n\n[API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/)\n\n```javascript\nconst startOfWeek = require('start-of-week')\nconsole.log(startOfWeek) // 0 (Sunday) if North American, otherwise 1 (Monday)\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li>Benjamin Lupton</li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"http://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ Benjamin Lupton</li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","_id":"start-of-week@1.2.0-next.1573631586.167842fea80428f3e0ee6e1c9e789775e574cb50","_nodeVersion":"12.13.0","_npmVersion":"6.12.0","dist":{"integrity":"sha512-Q2A5EShhptRJSAqQouvY0ZbQgIkaP9YVLD3xseMvGoXr9n+uGq4cHlz7G9wX4/K68Y8M6/ipT0PwEjr77HwyUA==","shasum":"77ed61dfa1a70e1e053a22ec7d4cb45c3671c8e9","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-1.2.0-next.1573631586.167842fea80428f3e0ee6e1c9e789775e574cb50.tgz","fileCount":10,"unpackedSize":19914,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdy7ZlCRA9TVsSAnZWagAA+VQP/00sqgqCz0v1LwP86x5y\nKzk0gNcmiYsvocNaej3QGVojJQsod5tCSrWLW8X/ql8TneANCcfhN4G/S0LV\nz9D0Y2J4ebC3GqHolLcasveLT0cOfaVU6mlZTuulexsjxAqyhIyJ+irXcMSj\nP5yAKdzfGixlWS4n3ZeRAb0wDLkL83BY8f+gJB54T5w5Xm9N7+BIoiWbrK49\nYbcr7Vk4xErA3dxsUl/5IQ9Iw5koF0iVYIYeBOIaMN8CWpQK/6MkCaYoGCXM\niUrTPxRZ+Z9Up/z8mPC+8Cs1/Rs1txgHfiM8sT0SdinM2WblQh52p+KEfnNT\nWVG6OtSOQIKey415G6jQUgUTQAr+nnVA7kN6TGn0BFdM0GbK5LVWnUn6zXCG\n0n4sldlsESyYKDo1m9PCaa7IOjB5O71kmBmE4hkasuVxo2xqHStWRB9UkFxF\n/fauO49X9G5v6+OdGOsXOpEY40foXLlbDwz4yJw8u2YoANaMa5nIf+cFWpyl\nOOxRu5U3Km/TUGbsbM7ksxROLwWlwmuEqRSyRisqNupAv1hZrB87WZSrJ9Sx\nFiO25HYHB10I/HB8QnunDDLjxEmALOvBbRF0AcjXDGj2G2eypLDYGFX/HtaR\n44ZQgiw3/EuRCx0tLSLReFICwjUq7GadRyWUgwImNP1sx/v+/8nxbQ+Ln6bS\nAU8P\r\n=Cm3L\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDLuVahLaw/nlC0pmQOtAUGwdYb0yQykenWJ5PZKhZc9AIhAITHyHubYPBoDNQZ8+SBSnKyQh8DOS2fCNNnsANID/lm"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_1.2.0-next.1573631586.167842fea80428f3e0ee6e1c9e789775e574cb50_1573631588452_0.423251569962491"},"_hasShrinkwrap":false},"1.2.0":{"name":"start-of-week","version":"1.2.0","description":"Returns the start of the week based on the locale.","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["date","daet","startweek","locale","week","start","day","number"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","url":"http://balupton.com"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=8"},"editions":[{"description":"typescript source code with import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"typescript compiled for browsers with import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"typescript compiled for node.js 13 with require for modules","directory":"edition-node-13","entry":"index.js","tags":["javascript","require"],"engines":{"node":"8 || 10 || 12 || 13","browsers":false}}],"types":"source/index.ts","main":"edition-node-13/index.js","browser":"edition-browsers/index.js","module":"edition-browsers/index.js","devDependencies":{"@babel/cli":"^7.7.0","@babel/core":"^7.7.2","@babel/plugin-proposal-class-properties":"^7.7.0","@babel/plugin-proposal-object-rest-spread":"^7.6.2","@babel/preset-env":"^7.7.1","@babel/preset-typescript":"^7.7.2","@typescript-eslint/eslint-plugin":"^2.7.0","@typescript-eslint/parser":"^2.7.0","assert-helpers":"^5.3.0","babel-plugin-add-module-exports":"^1.0.2","eslint":"^6.6.0","eslint-config-bevry":"^1.2.1","eslint-config-prettier":"^6.5.0","eslint-plugin-prettier":"^3.1.1","kava":"^3.2.0","prettier":"^1.19.1","projectz":"^1.10.0","surge":"^0.21.3","typedoc":"^0.15.1","typescript":"^3.7.2","valid-directory":"^1.0.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers && npm run our:compile:edition-node-13","our:compile:edition-browsers":"env BABEL_ENV=edition-browsers babel --extensions \".ts,.tsx\" --out-dir ./edition-browsers ./source","our:compile:edition-node-13":"env BABEL_ENV=edition-node-13 babel --extensions \".ts,.tsx\" --out-dir ./edition-node-13 ./source","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:docs && npm run our:meta:projectz","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier && npm run our:verify:typescript","our:verify:directory":"npx valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write ./source/**","our:verify:typescript":"tsc --noEmit --project .","test":"node ./edition-node-13/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"babel":{"env":{"edition-browsers":{"sourceType":"module","presets":[["@babel/preset-env",{"targets":"defaults","modules":false}],"@babel/preset-typescript"],"plugins":["@babel/proposal-object-rest-spread","@babel/proposal-class-properties","add-module-exports"]},"edition-node-13":{"sourceType":"module","presets":[["@babel/preset-env",{"targets":{"node":"13"},"modules":"commonjs"}],"@babel/preset-typescript"],"plugins":["@babel/proposal-object-rest-spread","@babel/proposal-class-properties","add-module-exports"]}}},"gitHead":"167842fea80428f3e0ee6e1c9e789775e574cb50","_id":"start-of-week@1.2.0","_nodeVersion":"12.13.0","_npmVersion":"6.12.0","dist":{"integrity":"sha512-cpgtIxImLvRzlm6EIwexM0xSy+ort+Z3fEyNMumYKXeY5TxLdesaCjiZ34QlstBuuCc7yVhX4nuSTSkBepoXLw==","shasum":"1d53089b2a0c47173d0d8a5c29210d48edcfa725","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-1.2.0.tgz","fileCount":10,"unpackedSize":19857,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdy7cFCRA9TVsSAnZWagAA+BgP/3veTZf+nGNAY7d7BJmq\nmIDrXERHgxJ168Sc/DuCIJslJnXF3Ib1F8Y/7oCMSjR/DEH9bAJvQiq59Pu0\n0PYV2S7swyiaiRGU+qIE2LaiIObLOcl/Or9r2NTusho3OjUVAH6ZTt0xTmkH\nM8Avv7//G+oAvaKjow2dThAw9+X2/U/nIlUoKzq9Zzp646kCHJkX1U1FExjq\nniT6l1JuMvpFucVFSw5KtGcJ3xaWAyv3I6+KvWFYJ5DF1M/37iUvocsv4kQB\nVldxGoE5yGEHpfJD9CubDNukTCVqLrF2l4H+MseWmwS+8VeTD9vUkMoKZo/N\nisYtfT3ES6Mt2NeJNRDHmEG4tzNw/Kh/uftGZ4+o2/cY7wdPfZp7Ic6BSaRz\nRhp8xvnu9qEj+L06SJr+Q3vCMqJp9HsOHyoQ6ahMq4+Ehkgl03ntttWEbEiC\nzIQF6nWJy9F0meADJEV1cB9MTfrI/NiSbY+Vv+HEdHzIi4ceNmt5JEgA3qAu\nZw0Jr5CY8an9h0TfexHoaOT72awbkYBnkJIWKrcBtczL3D8fJ4BSoe31eWg9\ncs5D+YRnUutrvicR+NLNVNo7kJRGm9Mcw0JmDBxmKssfGry6C7ApXyXeyMte\nSJFRuw5x8ZO8nJnF3DrhUq1SgYO/53vHo104y0C3yzn0L4VDKgdpZnhz3QeC\njdar\r\n=F1Br\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEuugOESOCTNdnitVokT5GXfEb83S6OTReP0g29BHi3gAiB9R2+BpGeekqDo8cma0hIAaq85F9M7jedR/qdOT6m2SA=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_1.2.0_1573631748584_0.35235559770912417"},"_hasShrinkwrap":false},"1.2.0-next.1573737908.82c5c7ac7a682f2528bbd3fb33f66a06a9bc15f1":{"name":"start-of-week","version":"1.2.0-next.1573737908.82c5c7ac7a682f2528bbd3fb33f66a06a9bc15f1","description":"Returns the start of the week based on the locale.","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["date","daet","startweek","locale","week","start","day","number"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","url":"http://balupton.com"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=8"},"editions":[{"description":"typescript source code with import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"typescript compiled for browsers with import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"typescript compiled for node.js 13 with require for modules","directory":"edition-node-13","entry":"index.js","tags":["javascript","require"],"engines":{"node":"8 || 10 || 12 || 13","browsers":false}}],"types":"source/index.ts","main":"edition-node-13/index.js","browser":"edition-browsers/index.js","module":"edition-browsers/index.js","devDependencies":{"@babel/cli":"^7.7.0","@babel/core":"^7.7.2","@babel/plugin-proposal-class-properties":"^7.7.0","@babel/plugin-proposal-object-rest-spread":"^7.6.2","@babel/preset-env":"^7.7.1","@babel/preset-typescript":"^7.7.2","@typescript-eslint/eslint-plugin":"^2.7.0","@typescript-eslint/parser":"^2.7.0","assert-helpers":"^5.3.0","babel-plugin-add-module-exports":"^1.0.2","eslint":"^6.6.0","eslint-config-bevry":"^1.2.1","eslint-config-prettier":"^6.5.0","eslint-plugin-prettier":"^3.1.1","kava":"^3.2.0","prettier":"^1.19.1","projectz":"^1.10.0","surge":"^0.21.3","typedoc":"^0.15.1","typescript":"^3.7.2","valid-directory":"^1.0.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers && npm run our:compile:edition-node-13","our:compile:edition-browsers":"env BABEL_ENV=edition-browsers babel --extensions \".ts,.tsx\" --out-dir ./edition-browsers ./source","our:compile:edition-node-13":"env BABEL_ENV=edition-node-13 babel --extensions \".ts,.tsx\" --out-dir ./edition-node-13 ./source","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:docs && npm run our:meta:projectz","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier && npm run our:verify:typescript","our:verify:directory":"npx valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write ./source/**","our:verify:typescript":"tsc --noEmit --project .","test":"node ./edition-node-13/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"babel":{"env":{"edition-browsers":{"sourceType":"module","presets":[["@babel/preset-env",{"targets":"defaults","modules":false}],"@babel/preset-typescript"],"plugins":["@babel/proposal-object-rest-spread","@babel/proposal-class-properties","add-module-exports"]},"edition-node-13":{"sourceType":"module","presets":[["@babel/preset-env",{"targets":{"node":"13"},"modules":"commonjs"}],"@babel/preset-typescript"],"plugins":["@babel/proposal-object-rest-spread","@babel/proposal-class-properties","add-module-exports"]}}},"gitHead":"82c5c7ac7a682f2528bbd3fb33f66a06a9bc15f1","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/start-of-week\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/start-of-week/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nReturns the start of the week based on the locale.\n\n<!-- /DESCRIPTION -->\n\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Require: <code>require('start-of-week')</code></li>\n</ul>\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import * as pkg from '//dev.jspm.io/start-of-week'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/index.ts</code> is typescript source code with import for modules</li>\n<li><code>start-of-week/edition-browsers/index.js</code> is typescript compiled for browsers with import for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-node-13/index.js</code></li>\n<li><code>start-of-week/edition-node-13/index.js</code> is typescript compiled for node.js 13 with require for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n## Usage\n\n[API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/)\n\n```javascript\nconst startOfWeek = require('start-of-week')\nconsole.log(startOfWeek) // 0 (Sunday) if North American, otherwise 1 (Monday)\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li>Benjamin Lupton</li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"http://balupton.com\">Benjamin Lupton</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ Benjamin Lupton</li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","_id":"start-of-week@1.2.0-next.1573737908.82c5c7ac7a682f2528bbd3fb33f66a06a9bc15f1","_nodeVersion":"12.13.0","_npmVersion":"6.12.0","dist":{"integrity":"sha512-lRwaaXhqmrwCHcG474nzciwM751yWwVWyKtVkyutEVMmt95gBkQPyqaBoqESbVSr7DeuWkiTMZT4UI5Sal9Yjw==","shasum":"fbac2621b210dd4cf86c0b08ebd867270e9a76e4","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-1.2.0-next.1573737908.82c5c7ac7a682f2528bbd3fb33f66a06a9bc15f1.tgz","fileCount":10,"unpackedSize":19723,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdzVW2CRA9TVsSAnZWagAA7BoP/ArwUXG6sG3uevm+qNMu\ne7zls0u4EicNk55BXsMWmHufD9Aqce0ZEQriIQb/lRVywnVptY40lgIQfwNA\n0mkFY2G13iR+jooT8JX0nWmRTcJdzGae38H+60UCybIMVIlYSN9dQjjHPLKU\n7Zbpb9CWYE1CnhC/cJ557gqqK0d0dXtei3JuoIVhqH8UhrdP8ypTAL7G52Tl\na+m+MYGhRBMUgvO/2+3iCcXrcNc85U+q/KZAeaXPZV8Mc29rseR7cGQeRitc\nvVEnNNHW9E2efxqO5XAxMC2pdjyXcJQiVPBc6Hcs0gglYx7pS7ssk5bLOXGT\nefbGh+/aHrpauf0rrM/kouRqxmnMTb4Nydo4peU/s3octek/wxiBUs+Zi06k\ng4oX6ciPnxId/yzGBc25lhlXw6Ku6tVKBeKzFwUGwgRFI1K2I1bh7GBj3fVh\nrFQPpVyfkNu15mJbac+QE4SgAj7rS0GC+C6VmueI2sp+9LCs+yDBAngwLSnU\nle7TFX/+IuQPaiW7kGVQiV7MjNorfpFaFwIKzl21UeK9WcWnbEebdgsUIDZk\nGriaTDqv44KVTl44O5EdSGXHdXbGFz3qoG7VTwBYDNOg0XQirFL8wDsa0ojx\nFptlcBWxJK0utq/u3QzxLTcmCkabRHZg8h06oVxKrY0H0aGx5cIrKfuoRQk8\nFKfC\r\n=uV3p\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCJumdOUxjUD4yqyfadOJUyzDU2JvgIC7Sn9A1OlolI7gIhALUGjvUygki22CzTErCKkNyHSnEDDJ5hGVc+lxgDKl8C"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_1.2.0-next.1573737908.82c5c7ac7a682f2528bbd3fb33f66a06a9bc15f1_1573737909843_0.8510422705194443"},"_hasShrinkwrap":false},"1.2.0-next.1573811655.2d0b9dbd4eab7c6ed03f287c12fe115422711c51":{"name":"start-of-week","version":"1.2.0-next.1573811655.2d0b9dbd4eab7c6ed03f287c12fe115422711c51","description":"Returns the start of the week based on the locale.","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["date","daet","startweek","locale","week","start","day","number"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","url":"http://balupton.com"},{"name":"dependabot-preview[bot]","url":"http://github.com/apps/dependabot-preview"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=8"},"editions":[{"description":"typescript source code with import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"typescript compiled for browsers with import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"typescript compiled for node.js 13 with require for modules","directory":"edition-node-13","entry":"index.js","tags":["javascript","require"],"engines":{"node":"8 || 10 || 12 || 13","browsers":false}}],"types":"source/index.ts","main":"edition-node-13/index.js","browser":"edition-browsers/index.js","module":"edition-browsers/index.js","devDependencies":{"@babel/cli":"^7.7.0","@babel/core":"^7.7.2","@babel/plugin-proposal-class-properties":"^7.7.0","@babel/plugin-proposal-object-rest-spread":"^7.6.2","@babel/preset-env":"^7.7.1","@babel/preset-typescript":"^7.7.2","@typescript-eslint/eslint-plugin":"^2.7.0","@typescript-eslint/parser":"^2.7.0","assert-helpers":"^5.3.0","babel-plugin-add-module-exports":"^1.0.2","eslint":"^6.6.0","eslint-config-bevry":"^1.2.1","eslint-config-prettier":"^6.5.0","eslint-plugin-prettier":"^3.1.1","kava":"^3.2.0","prettier":"^1.19.1","projectz":"^1.10.0","surge":"^0.21.3","typedoc":"^0.15.1","typescript":"^3.7.2","valid-directory":"^1.0.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers && npm run our:compile:edition-node-13","our:compile:edition-browsers":"env BABEL_ENV=edition-browsers babel --extensions \".ts,.tsx\" --out-dir ./edition-browsers ./source","our:compile:edition-node-13":"env BABEL_ENV=edition-node-13 babel --extensions \".ts,.tsx\" --out-dir ./edition-node-13 ./source","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:docs && npm run our:meta:projectz","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier && npm run our:verify:typescript","our:verify:directory":"npx valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write ./source/**","our:verify:typescript":"tsc --noEmit --project .","test":"node ./edition-node-13/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"babel":{"env":{"edition-browsers":{"sourceType":"module","presets":[["@babel/preset-env",{"targets":"defaults","modules":false}],"@babel/preset-typescript"],"plugins":["@babel/proposal-object-rest-spread","@babel/proposal-class-properties","add-module-exports"]},"edition-node-13":{"sourceType":"module","presets":[["@babel/preset-env",{"targets":{"node":"13"},"modules":"commonjs"}],"@babel/preset-typescript"],"plugins":["@babel/proposal-object-rest-spread","@babel/proposal-class-properties","add-module-exports"]}}},"gitHead":"2d0b9dbd4eab7c6ed03f287c12fe115422711c51","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/start-of-week\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/start-of-week/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nReturns the start of the week based on the locale.\n\n<!-- /DESCRIPTION -->\n\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Require: <code>require('start-of-week')</code></li>\n</ul>\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import * as pkg from '//dev.jspm.io/start-of-week'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/index.ts</code> is typescript source code with import for modules</li>\n<li><code>start-of-week/edition-browsers/index.js</code> is typescript compiled for browsers with import for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-node-13/index.js</code></li>\n<li><code>start-of-week/edition-node-13/index.js</code> is typescript compiled for node.js 13 with require for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n## Usage\n\n[API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/)\n\n```javascript\nconst startOfWeek = require('start-of-week')\nconsole.log(startOfWeek) // 0 (Sunday) if North American, otherwise 1 (Monday)\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li>Benjamin Lupton</li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"http://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li>\n<li><a href=\"http://github.com/apps/dependabot-preview\">dependabot-preview[bot]</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=dependabot-preview[bot]\" title=\"View the GitHub contributions of dependabot-preview[bot] on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ Benjamin Lupton</li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","_id":"start-of-week@1.2.0-next.1573811655.2d0b9dbd4eab7c6ed03f287c12fe115422711c51","_nodeVersion":"12.13.0","_npmVersion":"6.12.0","dist":{"integrity":"sha512-zKDaVbxTHDoz/TgtwPzi4YMc8xqWY4fjgeZw2ammjSwjqEvBr1lxnDsaXuYO4sUQ7iNGBEmrE6XI+m7GgNReAw==","shasum":"168f13737afc27bcda366698087b0e4758a51ed4","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-1.2.0-next.1573811655.2d0b9dbd4eab7c6ed03f287c12fe115422711c51.tgz","fileCount":10,"unpackedSize":20292,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdznXKCRA9TVsSAnZWagAA78UP/09DybwfPh8oTZicjRJG\n0ulQK960debKLnnU8F2368qTSOSCaTXGnKSR0SIxCAmlCrxxJrJ2LQWcia4r\noGs97RDHApvP/eDeS5Jlfgp3LARrVKq5fmyo7aIp/VP1kSLh3P1jo62BAMHJ\naqja//z6NOhc1LAwS1bpDC6uW/ScKwJuePHsEkhVFkTiINvCpjbDY4rBSHDF\nEgRhBBO73PGjVXqly/qI8ZWQgJd6RMbocoRPg9zLFHdwWvRsgZPh7/Lz0xRm\ncNz5AGplH+SptqogWnwhP35x+mKZYEaW2QN+/YiYsFVUBOw9tebjxukLbvrG\n8UhM2q2Eatk16V9x7oOvJ3V3kVCVFWr0TWz/zCEB3jPAZ04vkyLoWvcLuHUA\nzSqCutG0NGrAoNTcqRh4uBNsVS2OuK4GxZeRwUXQwZE4rEUzW9VT4NZvs2dk\neyeBvQeDcTryDlX7wQdgdSX+IJEsgBgYWz+dI3tvJIcmRqY2MTvCM2ucoBmh\nwPIMwf/j9fvkAhPne6+cUTPB5AJi59HdEROdVUyEbELq58JpE9Fl8H7wiC8A\nqnuUvfxrfIM8r6xn0sKD26hy8QjawWbPdO8ProiDmKRGl3s11MZAdp+a/SKr\nvvNbYwchg7RT5D7rsCrOp6soOJjKyqBXLLULngVjTMcMh2Gwrv3i2JTc7M5w\nUSkv\r\n=Twim\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG/mvvingxnRK1v3oWA7oU21gzMh1JwulPA1VkmPn3xUAiAYefHVoNs4wX+WGwwjVvd0mCjGmhB9syzP8UGEWvrb1A=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_1.2.0-next.1573811655.2d0b9dbd4eab7c6ed03f287c12fe115422711c51_1573811657921_0.1335392081126292"},"_hasShrinkwrap":false},"1.3.0-next.1574059127.73dd742685eaf1912fa68fa19a361aab5b0049c5":{"name":"start-of-week","version":"1.3.0-next.1574059127.73dd742685eaf1912fa68fa19a361aab5b0049c5","description":"Returns the start of the week based on the locale.","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["date","daet","startweek","locale","week","start","day","number"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","url":"http://balupton.com"},{"name":"dependabot-preview[bot]","url":"http://github.com/apps/dependabot-preview"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=8"},"editions":[{"description":"typescript source code with import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"typescript compiled for browsers with import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"typescript compiled for node.js 12 with require for modules","directory":"edition-node-12","entry":"index.js","tags":["javascript","require"],"engines":{"node":"8 || 10 || 12","browsers":false}}],"types":"source/index.ts","main":"edition-node-12/index.js","browser":"edition-browsers/index.js","module":"edition-browsers/index.js","devDependencies":{"@babel/cli":"^7.7.0","@babel/core":"^7.7.2","@babel/plugin-proposal-class-properties":"^7.7.0","@babel/plugin-proposal-object-rest-spread":"^7.6.2","@babel/plugin-proposal-optional-chaining":"^7.6.0","@babel/preset-env":"^7.7.1","@babel/preset-typescript":"^7.7.2","@typescript-eslint/eslint-plugin":"^2.7.0","@typescript-eslint/parser":"^2.7.0","assert-helpers":"5.4.0","babel-plugin-add-module-exports":"^1.0.2","eslint":"^6.6.0","eslint-config-bevry":"^1.3.0","eslint-config-prettier":"^6.6.0","eslint-plugin-prettier":"^3.1.1","kava":"4.1.0","prettier":"^1.19.1","projectz":"^1.11.0","surge":"^0.21.3","typedoc":"^0.15.2","typescript":"^3.7.2","valid-directory":"^1.1.1"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers && npm run our:compile:edition-node-12","our:compile:edition-browsers":"env BABEL_ENV=edition-browsers babel --extensions \".ts,.tsx\" --out-dir ./edition-browsers ./source","our:compile:edition-node-12":"env BABEL_ENV=edition-node-12 babel --extensions \".ts,.tsx\" --out-dir ./edition-node-12 ./source","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:docs && npm run our:meta:projectz","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier && npm run our:verify:typescript","our:verify:directory":"npx valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write ./source/**","our:verify:typescript":"tsc --noEmit --project .","test":"node ./edition-node-12/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"babel":{"env":{"edition-browsers":{"sourceType":"module","presets":[["@babel/preset-env",{"targets":"defaults","modules":false}],"@babel/preset-typescript"],"plugins":["@babel/proposal-object-rest-spread","@babel/plugin-proposal-optional-chaining","@babel/proposal-class-properties","add-module-exports"]},"edition-node-12":{"sourceType":"module","presets":[["@babel/preset-env",{"targets":{"node":"12"},"modules":"commonjs"}],"@babel/preset-typescript"],"plugins":["@babel/proposal-object-rest-spread","@babel/plugin-proposal-optional-chaining","@babel/proposal-class-properties","add-module-exports"]}}},"gitHead":"73dd742685eaf1912fa68fa19a361aab5b0049c5","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/start-of-week\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/start-of-week/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nReturns the start of the week based on the locale.\n\n<!-- /DESCRIPTION -->\n\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Require: <code>require('start-of-week')</code></li>\n</ul>\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import * as pkg from '//dev.jspm.io/start-of-week'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/index.ts</code> is typescript source code with import for modules</li>\n<li><code>start-of-week/edition-browsers/index.js</code> is typescript compiled for browsers with import for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-node-12/index.js</code></li>\n<li><code>start-of-week/edition-node-12/index.js</code> is typescript compiled for node.js 12 with require for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n## Usage\n\n[API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/)\n\n```javascript\nconst startOfWeek = require('start-of-week')\nconsole.log(startOfWeek) // 0 (Sunday) if North American, otherwise 1 (Monday)\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li>Benjamin Lupton</li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"http://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li>\n<li><a href=\"http://github.com/apps/dependabot-preview\">dependabot-preview[bot]</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=dependabot-preview[bot]\" title=\"View the GitHub contributions of dependabot-preview[bot] on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ Benjamin Lupton</li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","_id":"start-of-week@1.3.0-next.1574059127.73dd742685eaf1912fa68fa19a361aab5b0049c5","_nodeVersion":"12.13.0","_npmVersion":"6.12.0","dist":{"integrity":"sha512-0kX3CsXsdVNhnlnlkgJF0yEmF9V0cAb06dIZNsRs7XYY4HAcukliugBtsrnPpLi0IfJ+qBl8WGZCDv3RTtDnZA==","shasum":"f21fa48302f1e09bd837d590ff3f0f50ff0df79a","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-1.3.0-next.1574059127.73dd742685eaf1912fa68fa19a361aab5b0049c5.tgz","fileCount":10,"unpackedSize":20668,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd0jx4CRA9TVsSAnZWagAAFnUQAKRerCN6p9G/MVGG/HWC\nsv+Y4iTsZO35FaqfKI3rYP2mXwBHntY2mK7SO4Rud5E6781kLZC77o5Nhwc/\nwKEOUTBcxft/KGG+VDYtvSHEMYUfeI1oDctk1XV467JOWVzMhqBy9KzDmlI2\nf44iZP0rH32/gt7DD6yylHJmgzX3gRuU69O0m1y3LkMrVLIzaAqInr/Yliod\nZexIu/IrMKg1wKOJnYpxZfolb8DhuTrXDxZnxdoRIIJaqFkNPCaY5jKfpw1W\nr0TSyttdSOIpKfu/ZBphJwgqkz407Jw0oaM8+wQINXsWvGP8Mzfbn25uSiOE\n6XDAleDK2YLkCuB5630MkkJ9uFUgN7xobcFh3rXYmtiru4YKCzNAGJdOgLvM\neqHUmRsOYa6/B/38N20OSrWnkRDbfiFBQ9pvJT3unpGstn2YGYc6X0paz64g\nghHWv8QFsV5olbeX8R+lBXGjKVLlckSL8k0mmU5gnhcZipgczAKDrD32GC+m\nx9Vuxq1NNHfFnRPDJikvS5TodWlRDT8b7KISZ6K/E4Q/iM6wD4SMGLDI0y9b\nBi9LO3IgOhJI0Sw9zcxaVH79UprBfztkYf0XSJnVrMo2UjTipm0+Rvd3Lsn2\nZoNDhZ2VINdXwtRmBHqVtdg6j/csnNVP0JuJDIObvYsZvlLAGNNvyyYxM69m\nk/K4\r\n=hXwN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDhpgRmRRb+G5Z5/0T5JiRwWPCHIHQ4K1tBghvnfUcnfQIgdceKfQ3YD8dZgaqnVa1V4FV49xEBZfUFKBi7q8tWyBM="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_1.3.0-next.1574059127.73dd742685eaf1912fa68fa19a361aab5b0049c5_1574059127980_0.7002625694950211"},"_hasShrinkwrap":false},"1.3.0":{"name":"start-of-week","version":"1.3.0","description":"Returns the start of the week based on the locale.","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["date","daet","startweek","locale","week","start","day","number"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","url":"http://balupton.com"},{"name":"dependabot-preview[bot]","url":"http://github.com/apps/dependabot-preview"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=8"},"editions":[{"description":"typescript source code with import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"typescript compiled for browsers with import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"typescript compiled for node.js 12 with require for modules","directory":"edition-node-12","entry":"index.js","tags":["javascript","require"],"engines":{"node":"8 || 10 || 12","browsers":false}}],"types":"source/index.ts","main":"edition-node-12/index.js","browser":"edition-browsers/index.js","module":"edition-browsers/index.js","devDependencies":{"@babel/cli":"^7.7.0","@babel/core":"^7.7.2","@babel/plugin-proposal-class-properties":"^7.7.0","@babel/plugin-proposal-object-rest-spread":"^7.6.2","@babel/plugin-proposal-optional-chaining":"^7.6.0","@babel/preset-env":"^7.7.1","@babel/preset-typescript":"^7.7.2","@typescript-eslint/eslint-plugin":"^2.7.0","@typescript-eslint/parser":"^2.7.0","assert-helpers":"5.4.0","babel-plugin-add-module-exports":"^1.0.2","eslint":"^6.6.0","eslint-config-bevry":"^1.3.0","eslint-config-prettier":"^6.6.0","eslint-plugin-prettier":"^3.1.1","kava":"4.1.0","prettier":"^1.19.1","projectz":"^1.11.0","surge":"^0.21.3","typedoc":"^0.15.2","typescript":"^3.7.2","valid-directory":"^1.1.1"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers && npm run our:compile:edition-node-12","our:compile:edition-browsers":"env BABEL_ENV=edition-browsers babel --extensions \".ts,.tsx\" --out-dir ./edition-browsers ./source","our:compile:edition-node-12":"env BABEL_ENV=edition-node-12 babel --extensions \".ts,.tsx\" --out-dir ./edition-node-12 ./source","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:docs && npm run our:meta:projectz","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier && npm run our:verify:typescript","our:verify:directory":"npx valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write ./source/**","our:verify:typescript":"tsc --noEmit --project .","test":"node ./edition-node-12/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"babel":{"env":{"edition-browsers":{"sourceType":"module","presets":[["@babel/preset-env",{"targets":"defaults","modules":false}],"@babel/preset-typescript"],"plugins":["@babel/proposal-object-rest-spread","@babel/plugin-proposal-optional-chaining","@babel/proposal-class-properties","add-module-exports"]},"edition-node-12":{"sourceType":"module","presets":[["@babel/preset-env",{"targets":{"node":"12"},"modules":"commonjs"}],"@babel/preset-typescript"],"plugins":["@babel/proposal-object-rest-spread","@babel/plugin-proposal-optional-chaining","@babel/proposal-class-properties","add-module-exports"]}}},"gitHead":"73dd742685eaf1912fa68fa19a361aab5b0049c5","_id":"start-of-week@1.3.0","_nodeVersion":"12.13.0","_npmVersion":"6.12.0","dist":{"integrity":"sha512-oNDrmxLLEN8joBiXr2q7eq3aLp129iBHE/JKwLoDMMWh9lXeDq8nro3k0PbSRZI985seN2oL5dGyZXBKdnQvKA==","shasum":"c29a1092bfed41b402fab9b1dea7068c1e3bbc79","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-1.3.0.tgz","fileCount":10,"unpackedSize":20611,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd0jzHCRA9TVsSAnZWagAAYusP/RyoB5kiAaUBEesNrhUX\nxJWm9Zezf7rJvgmbYNvhoJ3NWYy27l19aivgH+AdKRSc1+bVP5lR6neyvEoH\nTsVxFUmuAdgtED8foL32aSqTITEVzMBSH5hUXVPw0BujwJsP4cOPSWjSUla2\nsveLn0GcGo1znZsE15SDPbo/sGlc/T1B4AzkaixUC1JjF9HmLKxPB2bN79qb\nufCy0+dfay7iPxEa4pnwR7ViudP+4/67gPE8dU3x1EE3eGCW7NH+clArL57L\n9vMK6OsLnhslz3YrePXY4qWmUxoKM2m4lj74SL42YZCTs3ah7kkx6TG8yst2\noXsI9mI70q0NJzqPQ0D9heVH0bgJ5aR5+MrHQXlKb6Y9SglpWGTQnYU/i44o\n3baiOtBh2y83rL/0bu4Arl2iyAQ/r88hERCppeNUBAYlMq5KyY9y068c+gC2\nEKTwZaufRaK+OvdQvRuBRvCCuFnKck6I7AqVIlaVJjN4mzMZNeE9AfP6Py3n\niphqrVw+LFcrXiSCNg4P7bNU1KfFqLbaJulR4tXIgeDSPK5rkQF/hf578+cT\n2hGQAAR1pWDoZPF13CfWd7y00uj5tzU14jiTfC++3Q/uhuTZHhg3eOgIBpod\nJEg9TdIa6KtHLg1N5o8NNvG+mrIKTVurL0mhwH0Ut0LlabXwxaE0F1aRB6cS\nNWm1\r\n=y7wa\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCGdvLDdqLXHY2VxvgmOoXa19DwQ8L+Iig38MbuqFwekAIhALFqGtLpJYmNIhLCkvbx9njfPf+CVDOofMkUWRC1NmSR"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_1.3.0_1574059207214_0.7766390821076312"},"_hasShrinkwrap":false},"1.4.0-next.1575155180.7c67926b0995fbcfd5b5a7d695e3e0a50e2fe9f2":{"name":"start-of-week","version":"1.4.0-next.1575155180.7c67926b0995fbcfd5b5a7d695e3e0a50e2fe9f2","description":"Returns the start of the week based on the locale.","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["date","daet","startweek","locale","week","start","day","number"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","url":"http://balupton.com"},{"name":"dependabot-preview[bot]","url":"http://github.com/apps/dependabot-preview"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=8"},"editions":[{"description":"typescript source code with import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"typescript compiled for browsers with import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"typescript compiled for node.js 12 with require for modules","directory":"edition-node-12","entry":"index.js","tags":["javascript","require"],"engines":{"node":"8 || 10 || 12","browsers":false}}],"types":"source/index.ts","main":"edition-node-12/index.js","browser":"edition-browsers/index.js","module":"edition-browsers/index.js","devDependencies":{"@babel/cli":"^7.7.4","@babel/core":"^7.7.4","@babel/plugin-proposal-class-properties":"^7.7.4","@babel/plugin-proposal-object-rest-spread":"^7.7.4","@babel/plugin-proposal-optional-chaining":"^7.7.4","@babel/preset-env":"^7.7.4","@babel/preset-typescript":"^7.7.4","@typescript-eslint/eslint-plugin":"^2.9.0","@typescript-eslint/parser":"^2.9.0","assert-helpers":"^5.6.0","babel-plugin-add-module-exports":"^1.0.2","eslint":"^6.7.2","eslint-config-bevry":"^2.1.0","eslint-config-prettier":"^6.7.0","eslint-plugin-prettier":"^3.1.1","kava":"^4.2.0","prettier":"^1.19.1","projectz":"^1.13.0","surge":"^0.21.3","typedoc":"^0.15.3","typescript":"^3.7.2","valid-directory":"^1.3.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers && npm run our:compile:edition-node-12","our:compile:edition-browsers":"env BABEL_ENV=edition-browsers babel --extensions \".ts,.tsx\" --out-dir ./edition-browsers ./source","our:compile:edition-node-12":"env BABEL_ENV=edition-node-12 babel --extensions \".ts,.tsx\" --out-dir ./edition-node-12 ./source","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:docs && npm run our:meta:projectz","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier && npm run our:verify:typescript","our:verify:directory":"npx valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write ./source/**","our:verify:typescript":"tsc --noEmit --project .","test":"node ./edition-node-12/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"babel":{"env":{"edition-browsers":{"sourceType":"module","presets":[["@babel/preset-env",{"targets":"defaults","modules":false}],"@babel/preset-typescript"],"plugins":["@babel/proposal-object-rest-spread","@babel/plugin-proposal-optional-chaining","@babel/proposal-class-properties","add-module-exports"]},"edition-node-12":{"sourceType":"module","presets":[["@babel/preset-env",{"targets":{"node":"12"},"modules":"commonjs"}],"@babel/preset-typescript"],"plugins":["@babel/proposal-object-rest-spread","@babel/plugin-proposal-optional-chaining","@babel/proposal-class-properties","add-module-exports"]}}},"gitHead":"7c67926b0995fbcfd5b5a7d695e3e0a50e2fe9f2","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/start-of-week\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/start-of-week/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nReturns the start of the week based on the locale.\n\n<!-- /DESCRIPTION -->\n\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Require: <code>require('start-of-week')</code></li>\n</ul>\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import * as pkg from '//dev.jspm.io/start-of-week'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/index.ts</code> is typescript source code with import for modules</li>\n<li><code>start-of-week/edition-browsers/index.js</code> is typescript compiled for browsers with import for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-node-12/index.js</code></li>\n<li><code>start-of-week/edition-node-12/index.js</code> is typescript compiled for node.js 12 with require for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n## Usage\n\n[API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/)\n\n```javascript\nconst startOfWeek = require('start-of-week')\nconsole.log(startOfWeek) // 0 (Sunday) if North American, otherwise 1 (Monday)\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li>Benjamin Lupton</li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"http://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li>\n<li><a href=\"http://github.com/apps/dependabot-preview\">dependabot-preview[bot]</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=dependabot-preview[bot]\" title=\"View the GitHub contributions of dependabot-preview[bot] on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ Benjamin Lupton</li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","_id":"start-of-week@1.4.0-next.1575155180.7c67926b0995fbcfd5b5a7d695e3e0a50e2fe9f2","_nodeVersion":"12.13.1","_npmVersion":"6.12.1","dist":{"integrity":"sha512-0VUndhP40cAnCXY9bvmDBvDnmuj0uLsFifzC8khcVULrpYoaAz9H16p/FsWdVjFiBmYzoOKI2AKberLeRw1QFQ==","shasum":"17dd023c641da65be7f5d5ad8381d4c0958477b4","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-1.4.0-next.1575155180.7c67926b0995fbcfd5b5a7d695e3e0a50e2fe9f2.tgz","fileCount":10,"unpackedSize":20872,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd4vXuCRA9TVsSAnZWagAADPoQAJcXgZuiYRpgZdZ9wgPH\nkuG8lp53AC1mK0YDHT4d2ru5wpt3RAt7dyNEiWNYN5TKIMJRAj3v9OX4pc37\nnGbDeGS0zvV2RepcTjcZcQ1JZ34rV4Xkt1Cfm5y3+6rni3MmNFLgSAK3VZi+\nsbLu3HK79hdAUmsmM1Cnlxz5rS5eUewBJdAetmcglawwbyaK5FSvBcHRQ+yv\nKEiw7ozEsIHIpFnDYGRdcNWs6nnwXUg2epQ1bjzkm5IFcElDx3+fv31K+ky2\nXQd+rxFkj8m2t/FlcY8OeNorUhijMASUBwn9gvx6F0vJ4Gs0A//qEoZRgbam\nnL069ID6sUBqPkGXk6qFx26JI+InYevK6B9f/kpPGQjoVuplFUGShgVhq5jp\nlnERkj2/FVWSUQPn/mVNt7+Pti8oFZDVWm1jy3CHDwzayJgmZ5vF5H0EFCrq\nqFgqG7PQuVr0BhcAebw8aWHCaB+/UaQRr900GuAU3E1eAM3qa4gQ5+l2Rvbk\nNDV0XLfesT7PnH/J2B9vr5lWGY3NWerVIk3r+a+NYSlnRSu0GuUmRec8iH44\nGVI3r1UwBUu2h3xLacuWzej2GzhFBhqvfXJqjAMNtJqhKtzoYWcUg8QSLWSr\n1r7ktuj6UzqOO/kI5nDBIGUK3/hSBpzOig57a4ObcFyUOZUQXe6FeZ8ZGwlB\ne+8n\r\n=RqFI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDmZjvWlyDEmb7+HHb5zBWEWyHWnlM3TN/Q3WclgCy7rwIgVLJ5lK+HuVmc4XSleF0APGwIUJx730UepXGeeUi3ehw="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_1.4.0-next.1575155180.7c67926b0995fbcfd5b5a7d695e3e0a50e2fe9f2_1575155182338_0.7340291772700174"},"_hasShrinkwrap":false},"1.4.0":{"name":"start-of-week","version":"1.4.0","description":"Returns the start of the week based on the locale.","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["date","daet","startweek","locale","week","start","day","number"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","url":"http://balupton.com"},{"name":"dependabot-preview[bot]","url":"http://github.com/apps/dependabot-preview"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=8"},"editions":[{"description":"typescript source code with import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"typescript compiled for browsers with import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"typescript compiled for node.js 12 with require for modules","directory":"edition-node-12","entry":"index.js","tags":["javascript","require"],"engines":{"node":"8 || 10 || 12","browsers":false}}],"types":"source/index.ts","main":"edition-node-12/index.js","browser":"edition-browsers/index.js","module":"edition-browsers/index.js","devDependencies":{"@babel/cli":"^7.7.4","@babel/core":"^7.7.4","@babel/plugin-proposal-class-properties":"^7.7.4","@babel/plugin-proposal-object-rest-spread":"^7.7.4","@babel/plugin-proposal-optional-chaining":"^7.7.4","@babel/preset-env":"^7.7.4","@babel/preset-typescript":"^7.7.4","@typescript-eslint/eslint-plugin":"^2.9.0","@typescript-eslint/parser":"^2.9.0","assert-helpers":"^5.6.0","babel-plugin-add-module-exports":"^1.0.2","eslint":"^6.7.2","eslint-config-bevry":"^2.1.0","eslint-config-prettier":"^6.7.0","eslint-plugin-prettier":"^3.1.1","kava":"^4.2.0","prettier":"^1.19.1","projectz":"^1.13.0","surge":"^0.21.3","typedoc":"^0.15.3","typescript":"^3.7.2","valid-directory":"^1.3.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers && npm run our:compile:edition-node-12","our:compile:edition-browsers":"env BABEL_ENV=edition-browsers babel --extensions \".ts,.tsx\" --out-dir ./edition-browsers ./source","our:compile:edition-node-12":"env BABEL_ENV=edition-node-12 babel --extensions \".ts,.tsx\" --out-dir ./edition-node-12 ./source","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:docs && npm run our:meta:projectz","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier && npm run our:verify:typescript","our:verify:directory":"npx valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write ./source/**","our:verify:typescript":"tsc --noEmit --project .","test":"node ./edition-node-12/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"babel":{"env":{"edition-browsers":{"sourceType":"module","presets":[["@babel/preset-env",{"targets":"defaults","modules":false}],"@babel/preset-typescript"],"plugins":["@babel/proposal-object-rest-spread","@babel/plugin-proposal-optional-chaining","@babel/proposal-class-properties","add-module-exports"]},"edition-node-12":{"sourceType":"module","presets":[["@babel/preset-env",{"targets":{"node":"12"},"modules":"commonjs"}],"@babel/preset-typescript"],"plugins":["@babel/proposal-object-rest-spread","@babel/plugin-proposal-optional-chaining","@babel/proposal-class-properties","add-module-exports"]}}},"gitHead":"7c67926b0995fbcfd5b5a7d695e3e0a50e2fe9f2","_id":"start-of-week@1.4.0","_nodeVersion":"12.13.1","_npmVersion":"6.12.1","dist":{"integrity":"sha512-xgS6UDNZsD5mSKXRrPb1TPemxYrWpEbtro4MLyUyX3b/JrYd+EQ0w4tWo+7oqtv5hnboOjeaBJCW8CtostaoHg==","shasum":"54cb5c0995282c5be8bf2ac2ff2cfadb1ad7bca4","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-1.4.0.tgz","fileCount":10,"unpackedSize":20815,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd4vZFCRA9TVsSAnZWagAAj4UQAImqWLkVTYx7eNnVvDDi\nm7uI6yJyWe6339X9u8WpXjnAaF5+qZJqJCpvJSc74dBHUzU11oweJQ/di/Ss\n8atMQZFAsLa4m8qVihoGyGPc0j+lGV6Qw3p56c6yFjoYeQG3mCP0UrOta2Kh\nVIMcorOH4ah9VRudgaRyxsWvmOSNlWKNBJWiTP/WU23IjMzjldMnD9MAe5ri\nNgY3rOHon6c7weuCKj14cfNSZLRAnsoqkOrgGtzqCLfNqryXx/yVoQGghZVv\nEAY6L+qkCD6fcOxWt2J+2gHrZZ/6IOZ0Nz4qeerZHdYIvA33lWeSomw6ub8d\nt70qSP9MUVucPpGyyH4KTMtxXGCsXbpgHea1G3nTUnBs06JnSJYMIKROpCjB\n4PurVout4dBaTB5vR7bqvmAbn5gOOB2Grw73tS5Pce9+h5Cyvh2m2Q+9261j\nFpHux0pieajTIyIYOgtOunXFeGWeenRz8O7K7o6vGO89ThQsuTC7d6nqaEB0\n84Ht3wtUklNbIFIhKqQHOkUXOe/U3bbqEvE9XbCEdsPRzu2kHS/jiid+IQmX\nLcLeWLJylQ6PCmwaqyBvFlhznKicruO5UGWkdWR5Zmkmbc8lq0lGRnktcp6u\nclzQ2TEfehxwSzsiszWSht/vnrThXujAnosR80yn565gThSAMvaw0uTyo2FI\ni8Jl\r\n=wqdx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDmpnHwHqzcEeZoBt/lV6sNoo6AzgLKuemaxGWT1Qey4AIgXAOwicVoNBTNzfPdzWoXhHX2BDNwMBErlVau749hJlk="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_1.4.0_1575155268834_0.41606191738317144"},"_hasShrinkwrap":false},"1.5.0-next.1575219228.f6e9365054b29146c4a2a9fd99a0418b4a5ac7dd":{"name":"start-of-week","version":"1.5.0-next.1575219228.f6e9365054b29146c4a2a9fd99a0418b4a5ac7dd","description":"Returns the start of the week based on the locale.","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["date","daet","startweek","locale","week","start","day","number"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","url":"http://balupton.com"},{"name":"dependabot-preview[bot]","url":"http://github.com/apps/dependabot-preview"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=8"},"editions":[{"description":"typescript source code with import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"typescript compiled for browsers with import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"typescript compiled for node.js 12 with require for modules","directory":"edition-node-12","entry":"index.js","tags":["javascript","require"],"engines":{"node":"8 || 10 || 12","browsers":false}}],"types":"source/index.ts","main":"edition-node-12/index.js","browser":"edition-browsers/index.js","module":"edition-browsers/index.js","devDependencies":{"@babel/cli":"^7.7.4","@babel/core":"^7.7.4","@babel/plugin-proposal-class-properties":"^7.7.4","@babel/plugin-proposal-object-rest-spread":"^7.7.4","@babel/plugin-proposal-optional-chaining":"^7.7.4","@babel/preset-env":"^7.7.4","@babel/preset-typescript":"^7.7.4","@typescript-eslint/eslint-plugin":"^2.9.0","@typescript-eslint/parser":"^2.9.0","assert-helpers":"^5.7.0","babel-plugin-add-module-exports":"^1.0.2","eslint":"^6.7.2","eslint-config-bevry":"^2.2.0","eslint-config-prettier":"^6.7.0","eslint-plugin-prettier":"^3.1.1","kava":"^4.2.0","prettier":"^1.19.1","projectz":"^1.13.0","surge":"^0.21.3","typedoc":"^0.15.3","typescript":"^3.7.2","valid-directory":"^1.4.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers && npm run our:compile:edition-node-12","our:compile:edition-browsers":"env BABEL_ENV=edition-browsers babel --extensions \".ts,.tsx\" --out-dir ./edition-browsers ./source","our:compile:edition-node-12":"env BABEL_ENV=edition-node-12 babel --extensions \".ts,.tsx\" --out-dir ./edition-node-12 ./source","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:docs && npm run our:meta:projectz","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier && npm run our:verify:typescript","our:verify:directory":"npx valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write ./source/**","our:verify:typescript":"tsc --noEmit --project .","test":"node ./edition-node-12/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"babel":{"env":{"edition-browsers":{"sourceType":"module","presets":[["@babel/preset-env",{"targets":"defaults","modules":false}],"@babel/preset-typescript"],"plugins":["@babel/proposal-object-rest-spread","@babel/plugin-proposal-optional-chaining","@babel/proposal-class-properties","add-module-exports"]},"edition-node-12":{"sourceType":"module","presets":[["@babel/preset-env",{"targets":{"node":"12"},"modules":"commonjs"}],"@babel/preset-typescript"],"plugins":["@babel/proposal-object-rest-spread","@babel/plugin-proposal-optional-chaining","@babel/proposal-class-properties","add-module-exports"]}}},"gitHead":"f6e9365054b29146c4a2a9fd99a0418b4a5ac7dd","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/start-of-week\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/start-of-week/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nReturns the start of the week based on the locale.\n\n<!-- /DESCRIPTION -->\n\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Require: <code>require('start-of-week')</code></li>\n</ul>\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import * as pkg from '//dev.jspm.io/start-of-week'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/index.ts</code> is typescript source code with import for modules</li>\n<li><code>start-of-week/edition-browsers/index.js</code> is typescript compiled for browsers with import for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-node-12/index.js</code></li>\n<li><code>start-of-week/edition-node-12/index.js</code> is typescript compiled for node.js 12 with require for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n## Usage\n\n[API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/)\n\n```javascript\nconst startOfWeek = require('start-of-week')\nconsole.log(startOfWeek) // 0 (Sunday) if North American, otherwise 1 (Monday)\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li>Benjamin Lupton</li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"http://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li>\n<li><a href=\"http://github.com/apps/dependabot-preview\">dependabot-preview[bot]</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=dependabot-preview[bot]\" title=\"View the GitHub contributions of dependabot-preview[bot] on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ Benjamin Lupton</li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","_id":"start-of-week@1.5.0-next.1575219228.f6e9365054b29146c4a2a9fd99a0418b4a5ac7dd","_nodeVersion":"12.13.1","_npmVersion":"6.12.1","dist":{"integrity":"sha512-d6KnujzI458N9ciwhiQvzww0uzTKURs1SdI7eYhudHeNUGEY9QzHp6VQCd0JOVTzEkScviVyyXz7SMdkJzKgQw==","shasum":"214b73c95832240ce3ec968a56c40defb42b93a6","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-1.5.0-next.1575219228.f6e9365054b29146c4a2a9fd99a0418b4a5ac7dd.tgz","fileCount":10,"unpackedSize":21077,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd4/AdCRA9TVsSAnZWagAAsfMP/AxqUsasKbo02e9lu6ul\nOAXdfhWsJiDOTqGODpa8T/o2U80bS0G5FZsrOzN++GkOZUhpxgLL3n49zsox\nOjiJJSlbzvonHG9HRiaz9ZanHYSckwDM588Lpsp7Egv7E3QCvCoce60AVQ7o\n7fQfj5THJdoVpzPsbPcWfHQ1Tv9mOHqwPppuo8kwQUWUhBZfOW+cLYv/pMDC\nbnZV9a0HHjOqggAMSOZjBbRQcADnE76jxPfSda/bVI0f9U0VRlw9/PSdlyzr\n5QoIsgLxzD0+SbeRND3BcCO2vMbEY8luJEPAA/5wn4pQur0mk9O4641XtZU8\n4C2t7jnTwObwJt3MCKIWMX0HP+XOgwJbSlNNN9Y0IwkwBy8q3S+ET60z9xiz\nNIFkfou/T4zaksv1WYyRZIyU1F4wdEjqiRvtw8CMibctQBfzW2wkjar2x44M\nWtlMmyV8hgH+A8c7IMAxmMW0vHEOQaYQkKzmz0kcH5q6I+0U2+GY0jRIwdcx\nNFB2CzJNp5ykKUycxqLoA1hyeJsOChveAsA9fwYUFMONZdr+T8N+yvItyDCa\ncbWHFo73ByHjLcbTtypuH6sSKXPsWicDpem6MKEZ2EFxQiMe98sgu+94VP7F\nLczsxltTFyuEfad+lSXi2g16MfHoN8H/jDBx+ifO2Q+TqY2XUgHw0wem/CY+\n59++\r\n=27C3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF8QUtvE+wDhbTohpoWbaPtKx1aJoi07ahVtqZJz4NPaAiEA5R1uHgqN4wp8bPbvnphX6xQPkl9EDY3X3xslG0kOiv4="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_1.5.0-next.1575219228.f6e9365054b29146c4a2a9fd99a0418b4a5ac7dd_1575219229508_0.24343005687535402"},"_hasShrinkwrap":false},"1.5.0":{"name":"start-of-week","version":"1.5.0","description":"Returns the start of the week based on the locale.","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["date","daet","startweek","locale","week","start","day","number"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","url":"http://balupton.com"},{"name":"dependabot-preview[bot]","url":"http://github.com/apps/dependabot-preview"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=8"},"editions":[{"description":"typescript source code with import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"typescript compiled for browsers with import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"typescript compiled for node.js 12 with require for modules","directory":"edition-node-12","entry":"index.js","tags":["javascript","require"],"engines":{"node":"8 || 10 || 12","browsers":false}}],"types":"source/index.ts","main":"edition-node-12/index.js","browser":"edition-browsers/index.js","module":"edition-browsers/index.js","devDependencies":{"@babel/cli":"^7.7.4","@babel/core":"^7.7.4","@babel/plugin-proposal-class-properties":"^7.7.4","@babel/plugin-proposal-object-rest-spread":"^7.7.4","@babel/plugin-proposal-optional-chaining":"^7.7.4","@babel/preset-env":"^7.7.4","@babel/preset-typescript":"^7.7.4","@typescript-eslint/eslint-plugin":"^2.9.0","@typescript-eslint/parser":"^2.9.0","assert-helpers":"^5.7.0","babel-plugin-add-module-exports":"^1.0.2","eslint":"^6.7.2","eslint-config-bevry":"^2.2.0","eslint-config-prettier":"^6.7.0","eslint-plugin-prettier":"^3.1.1","kava":"^4.2.0","prettier":"^1.19.1","projectz":"^1.13.0","surge":"^0.21.3","typedoc":"^0.15.3","typescript":"^3.7.2","valid-directory":"^1.4.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers && npm run our:compile:edition-node-12","our:compile:edition-browsers":"env BABEL_ENV=edition-browsers babel --extensions \".ts,.tsx\" --out-dir ./edition-browsers ./source","our:compile:edition-node-12":"env BABEL_ENV=edition-node-12 babel --extensions \".ts,.tsx\" --out-dir ./edition-node-12 ./source","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:docs && npm run our:meta:projectz","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier && npm run our:verify:typescript","our:verify:directory":"npx valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write ./source/**","our:verify:typescript":"tsc --noEmit --project .","test":"node ./edition-node-12/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"babel":{"env":{"edition-browsers":{"sourceType":"module","presets":[["@babel/preset-env",{"targets":"defaults","modules":false}],"@babel/preset-typescript"],"plugins":["@babel/proposal-object-rest-spread","@babel/plugin-proposal-optional-chaining","@babel/proposal-class-properties","add-module-exports"]},"edition-node-12":{"sourceType":"module","presets":[["@babel/preset-env",{"targets":{"node":"12"},"modules":"commonjs"}],"@babel/preset-typescript"],"plugins":["@babel/proposal-object-rest-spread","@babel/plugin-proposal-optional-chaining","@babel/proposal-class-properties","add-module-exports"]}}},"gitHead":"f6e9365054b29146c4a2a9fd99a0418b4a5ac7dd","_id":"start-of-week@1.5.0","_nodeVersion":"12.13.1","_npmVersion":"6.12.1","dist":{"integrity":"sha512-+gZEpO2nQPykj+sVGOrvlNRLh0Yf+OJnrPXjl/jOfs5BbdQAavnPG0LbQ4R2InUe6C76w4GBTtveMkMpq+PtCA==","shasum":"234513fe8371cadb98640938076ab375cb7731e4","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-1.5.0.tgz","fileCount":10,"unpackedSize":21020,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd4/BaCRA9TVsSAnZWagAAZwEQAID5cA5lVhQVZwGQ9TmN\nQ6qH5zpkdbcsvnyGE2OWG6EUDJwiffkaLh2nHZq3oP8NqNO4mucbQDGETAOJ\n1vYl4owLaW4J6ybJ4OG8PTcHUe7n6N7sT8yWpT1qbK4earEWm+a3gDeWuE9E\nalmrFNtoiIwid+0QMID94bGEFZV2ARmdQqUwOZ2njVHGXWFrsFYH4tgaEY7f\ncAC64bgrGBW76l1CeHbFIFERNtycnhaAYf8XRApfG8FfN5k7mcOhIqwSMrIU\nbB3wT1iS3EVcadodMraN49cp2Du/eilVDZ5ntCGxQvAI64tPjxvJaBurm9nq\nBZalFCY3atCD9oYxIwPTSu9PScT3jGJ8qYdv5VZx/2bSDX02zFlJ+6zvQlmp\n5kCJfW1MUQdN7a7H1LDNUcZ+4HRbvv/KwFwXzw/rQgzClXenyeYZSrULSc5d\nKvTP0zqdE4DwOI4k7AXEE8M2b28ejhBkhX+FiSjXMA2G4SYtaapQ3dEmThoS\n6laUzwetvv3wBXQNB+tQ5BdA+4DM6A3fqmz0kh13cnajYSQGo5/JqlIgQA+t\nC4bIP4Z5bh3oqUANG2QpcHMuTx1tplfKKMcZaXgi8ZDtZ6J1rRojaEKSBvWj\nJ25pzYbc3krLrGLFEvZ65JsN60ez58FueAtwFd6jyzqR3lcpbaEsjklfoJhN\nKNkX\r\n=C+1t\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCaHp4AyQ+WMZlaSDy7Wz0q05J4BtzQhA3Kk2BJvRysagIhAP8Cb0SV445+FLTbUAA+Yow0XTVp3Pl2Lh5xlvY6i0Qn"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_1.5.0_1575219290344_0.32004332104282396"},"_hasShrinkwrap":false},"1.6.0-next.1575920545.b166a10357792cfaa27e3a14f3335a836cc42c3b":{"name":"start-of-week","version":"1.6.0-next.1575920545.b166a10357792cfaa27e3a14f3335a836cc42c3b","description":"Returns the start of the week based on the locale.","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["date","daet","startweek","locale","week","start","day","number"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","url":"http://balupton.com"},{"name":"dependabot-preview[bot]","url":"http://github.com/apps/dependabot-preview"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=8"},"editions":[{"description":"typescript source code with import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"typescript compiled for browsers with import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"typescript compiled for node.js 12 with require for modules","directory":"edition-node-12","entry":"index.js","tags":["javascript","require"],"engines":{"node":"8 || 10 || 12","browsers":false}}],"types":"source/index.ts","type":"commonjs","main":"edition-node-12/index.js","browser":"edition-browsers/index.js","module":"edition-browsers/index.js","devDependencies":{"@babel/cli":"^7.7.5","@babel/core":"^7.7.5","@babel/plugin-proposal-class-properties":"^7.7.4","@babel/plugin-proposal-object-rest-spread":"^7.7.4","@babel/plugin-proposal-optional-chaining":"^7.7.5","@babel/preset-env":"^7.7.6","@babel/preset-typescript":"^7.7.4","@typescript-eslint/eslint-plugin":"^2.11.0","@typescript-eslint/parser":"^2.11.0","assert-helpers":"^5.8.0","babel-plugin-add-module-exports":"^1.0.2","eslint":"^6.7.2","eslint-config-bevry":"^2.3.0","eslint-config-prettier":"^6.7.0","eslint-plugin-prettier":"^3.1.1","kava":"^4.4.0","prettier":"^1.19.1","projectz":"^1.16.0","surge":"^0.21.3","typedoc":"^0.15.4","typescript":"^3.7.3","valid-directory":"^1.5.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers && npm run our:compile:edition-node-12","our:compile:edition-browsers":"env BABEL_ENV=edition-browsers babel --extensions \".ts,.tsx\" --out-dir ./edition-browsers ./source","our:compile:edition-node-12":"env BABEL_ENV=edition-node-12 babel --extensions \".ts,.tsx\" --out-dir ./edition-node-12 ./source","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:docs && npm run our:meta:projectz","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier && npm run our:verify:typescript","our:verify:directory":"npx valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write ./source/**","our:verify:typescript":"tsc --noEmit --project tsconfig.json","test":"node ./edition-node-12/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"babel":{"env":{"edition-browsers":{"sourceType":"module","presets":[["@babel/preset-env",{"targets":"defaults","modules":"commonjs"}],"@babel/preset-typescript"],"plugins":["@babel/proposal-object-rest-spread","@babel/plugin-proposal-optional-chaining","@babel/proposal-class-properties","add-module-exports"]},"edition-node-12":{"sourceType":"module","presets":[["@babel/preset-env",{"targets":{"node":"12"},"modules":"commonjs"}],"@babel/preset-typescript"],"plugins":["@babel/proposal-object-rest-spread","@babel/plugin-proposal-optional-chaining","@babel/proposal-class-properties","add-module-exports"]}}},"gitHead":"b166a10357792cfaa27e3a14f3335a836cc42c3b","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/start-of-week\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/start-of-week/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nReturns the start of the week based on the locale.\n\n<!-- /DESCRIPTION -->\n\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Require: <code>require('start-of-week')</code></li>\n</ul>\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import * as pkg from '//dev.jspm.io/start-of-week'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/index.ts</code> is typescript source code with import for modules</li>\n<li><code>start-of-week/edition-browsers/index.js</code> is typescript compiled for browsers with import for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-node-12/index.js</code></li>\n<li><code>start-of-week/edition-node-12/index.js</code> is typescript compiled for node.js 12 with require for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n## Usage\n\n[API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/)\n\n```javascript\nconst startOfWeek = require('start-of-week')\nconsole.log(startOfWeek) // 0 (Sunday) if North American, otherwise 1 (Monday)\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li>Benjamin Lupton</li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"http://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li>\n<li><a href=\"http://github.com/apps/dependabot-preview\">dependabot-preview[bot]</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=dependabot-preview[bot]\" title=\"View the GitHub contributions of dependabot-preview[bot] on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ Benjamin Lupton</li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","_id":"start-of-week@1.6.0-next.1575920545.b166a10357792cfaa27e3a14f3335a836cc42c3b","_nodeVersion":"12.13.1","_npmVersion":"6.12.1","dist":{"integrity":"sha512-ETk4X5aPkHck947XO2B4+fyDHrEcUOPiYqg9LKO+djYiyZc1oudCOKOmzLSrBKgP+u1J86NywbWiS1tb5rElGA==","shasum":"91737db36e96775d049457f865ec32f2356e3dc6","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-1.6.0-next.1575920545.b166a10357792cfaa27e3a14f3335a836cc42c3b.tgz","fileCount":10,"unpackedSize":22108,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd7qOiCRA9TVsSAnZWagAA0AMP/2VK6aBI5EfbjN9VwetD\nho8sKagwEpJLLIVr30gGM332BzSFgmodyBltQ6ASVO2OJCbJzBqpixczKDDk\nDQWLdD4hcvaPpi6k3jWhltJE3TW14baQLYDfZ0rs77qk8EQSVnjPdDI5o2ZW\nOWmQ2iduh1S65zIfgEoCMn6Zhi8Pb1fb/755bQHddjjLl/fU/tfHd0Jhko9I\nWUdUZtsgHlphrekC8ZN51IatPNOvOrZwEdkgPk6SkZIBowhmu+rbGErIHJ5D\n07jAcwmqOwVWMmlogRvGQcAkvHq8HT5UVwCe7h8IVnM3tYwQraEEVQ2lliun\nuGl0TTVdRxgH/vy/4o1oh5EstjxUUknGaIqOc2HPlr7cLqUq3NyItT04NO/M\nUniDiWNGjj9uWgyW27DdEwU5HWypHGzYzLHZffHA9adFWbEMvg3P8WaxVBug\nCefIGm74WEE+S7mGkTkWXsXAQivC878oEtuCNLmXagLkX/R15pWgXTofb5pW\niCg1nSSlKOq5sVnpaj6RKrmGyDnJEVlnlOUQ/dkEf4rdoiX4j8Gtd/DQaycx\nhAmAa7n6qHFPASGLTJekFFspgBy9TpRXFzjU0KIrgJeSAm1m5IrKRFaomxYq\nByyTw4gECXr5KH4oSNxoOvXH1+9xonXAUWiURBgeSF0WHS+93vVjh/PufU/G\nZQZz\r\n=9btl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEw+9ITkn0cLOSIIGfrOD3+Vl1PjZsT/xoIUQMMVNSOoAiAF5CjooIm+SCoFG/qdhngzc18Hkrl4xj1xYvoKLG0D5A=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_1.6.0-next.1575920545.b166a10357792cfaa27e3a14f3335a836cc42c3b_1575920546386_0.8239782227403243"},"_hasShrinkwrap":false},"1.6.0":{"name":"start-of-week","version":"1.6.0","description":"Returns the start of the week based on the locale.","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["date","daet","startweek","locale","week","start","day","number"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","url":"http://balupton.com"},{"name":"dependabot-preview[bot]","url":"http://github.com/apps/dependabot-preview"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=8"},"editions":[{"description":"typescript source code with import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"typescript compiled for browsers with import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"typescript compiled for node.js 12 with require for modules","directory":"edition-node-12","entry":"index.js","tags":["javascript","require"],"engines":{"node":"8 || 10 || 12","browsers":false}}],"types":"source/index.ts","type":"commonjs","main":"edition-node-12/index.js","browser":"edition-browsers/index.js","module":"edition-browsers/index.js","devDependencies":{"@babel/cli":"^7.7.5","@babel/core":"^7.7.5","@babel/plugin-proposal-class-properties":"^7.7.4","@babel/plugin-proposal-object-rest-spread":"^7.7.4","@babel/plugin-proposal-optional-chaining":"^7.7.5","@babel/preset-env":"^7.7.6","@babel/preset-typescript":"^7.7.4","@typescript-eslint/eslint-plugin":"^2.11.0","@typescript-eslint/parser":"^2.11.0","assert-helpers":"^5.8.0","babel-plugin-add-module-exports":"^1.0.2","eslint":"^6.7.2","eslint-config-bevry":"^2.3.0","eslint-config-prettier":"^6.7.0","eslint-plugin-prettier":"^3.1.1","kava":"^4.4.0","prettier":"^1.19.1","projectz":"^1.16.0","surge":"^0.21.3","typedoc":"^0.15.4","typescript":"^3.7.3","valid-directory":"^1.5.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers && npm run our:compile:edition-node-12","our:compile:edition-browsers":"env BABEL_ENV=edition-browsers babel --extensions \".ts,.tsx\" --out-dir ./edition-browsers ./source","our:compile:edition-node-12":"env BABEL_ENV=edition-node-12 babel --extensions \".ts,.tsx\" --out-dir ./edition-node-12 ./source","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:docs && npm run our:meta:projectz","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier && npm run our:verify:typescript","our:verify:directory":"npx valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write ./source/**","our:verify:typescript":"tsc --noEmit --project tsconfig.json","test":"node ./edition-node-12/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"babel":{"env":{"edition-browsers":{"sourceType":"module","presets":[["@babel/preset-env",{"targets":"defaults","modules":"commonjs"}],"@babel/preset-typescript"],"plugins":["@babel/proposal-object-rest-spread","@babel/plugin-proposal-optional-chaining","@babel/proposal-class-properties","add-module-exports"]},"edition-node-12":{"sourceType":"module","presets":[["@babel/preset-env",{"targets":{"node":"12"},"modules":"commonjs"}],"@babel/preset-typescript"],"plugins":["@babel/proposal-object-rest-spread","@babel/plugin-proposal-optional-chaining","@babel/proposal-class-properties","add-module-exports"]}}},"gitHead":"b166a10357792cfaa27e3a14f3335a836cc42c3b","_id":"start-of-week@1.6.0","_nodeVersion":"12.13.1","_npmVersion":"6.12.1","dist":{"integrity":"sha512-bhQznKcmOvEz2uZEa4cQ6W90KSTGi/SVIY9OVx54izl+eLV5IEVK27H1oF2mH8Vbf6BJtuiZjtJgWSMIKqEh7A==","shasum":"ea80a4ebd787ea4b98a057e4ee8e42d940adc6ef","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-1.6.0.tgz","fileCount":10,"unpackedSize":22051,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd7qPlCRA9TVsSAnZWagAAcDsP/jWr+KLi6Y/uc0KYdPnQ\n8/rmWTJwta4KaTUqMUK1NhWgzyS59+EAuZ4AC9/U5w1nixi8mBlhhn+rOFg7\n9de1dvUJS1pt4nHbcBQuGRPQV0SUyhjXybdgjI45HpM4l+jhv4HcEYwqgHV2\ngleA7zaQDHlMfF4HCs04wHu0bXtA583m//axaTzLuz/edQ9qIAwOgWr/TGjZ\nTTvypbYXuIeTovYe+ywjz2XOuH5PwkN/znAxSfox1z0HvBqxP+R1+BPX1Lmr\nz0jNrNdzLPDMpiYmGora0zmQzMnJliE5TxGkmMpzOzPghPE4Xop/qrm9CCQk\nvGpbVGzaOqd0pM6R0fSUWyl9vVJzowbkV28ULlxiXXzsgyf58w6SvdtEcSiz\nXKRjq++EvoNYR3j9P/jU1i81b8sKvJRtXt2Tll1RyuXycIQAe49tRAFNWZyY\nus8HLfmOMdJgu0vZpQvF+d+rAMFl5OXCalIU43NIdSTm7+RY9kusIaTZ6q6a\nb240M7KruFlNWiV9/I6/p5kvV6DzCIPt0+SuvJ5Pe0ELPca6jD3dql9p7Av7\ngY+qojE88GnKBsDMyuQMgqrWeFcj0zDf68415kYSh3DDptYkbuCYmuMZhpF4\nR2Wa2b+m3abfHcmsA7emCACADgkgijRRWP0yKb74cfhmuFTtzyW4zGl+/UNo\nL4MC\r\n=+p48\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC/xW7zj0IGrxma0JsK4LFBfL6BCEGKHTEmv1goBrjCWAiEA7XmwJGg4M0z1lTPE4t4CjZjP6lXHnFzqG+j/neJzkFc="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_1.6.0_1575920613330_0.6507230468310172"},"_hasShrinkwrap":false},"1.6.0-next.1575920627.32304bbdf2237f2b0dba4d0c24deab013e77f014":{"name":"start-of-week","version":"1.6.0-next.1575920627.32304bbdf2237f2b0dba4d0c24deab013e77f014","description":"Returns the start of the week based on the locale.","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["date","daet","startweek","locale","week","start","day","number"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","url":"http://balupton.com"},{"name":"dependabot-preview[bot]","url":"http://github.com/apps/dependabot-preview"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=8"},"editions":[{"description":"typescript source code with import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"typescript compiled for browsers with import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"typescript compiled for node.js 12 with require for modules","directory":"edition-node-12","entry":"index.js","tags":["javascript","require"],"engines":{"node":"8 || 10 || 12","browsers":false}}],"types":"source/index.ts","type":"commonjs","main":"edition-node-12/index.js","browser":"edition-browsers/index.js","module":"edition-browsers/index.js","devDependencies":{"@babel/cli":"^7.7.5","@babel/core":"^7.7.5","@babel/plugin-proposal-class-properties":"^7.7.4","@babel/plugin-proposal-object-rest-spread":"^7.7.4","@babel/plugin-proposal-optional-chaining":"^7.7.5","@babel/preset-env":"^7.7.6","@babel/preset-typescript":"^7.7.4","@typescript-eslint/eslint-plugin":"^2.11.0","@typescript-eslint/parser":"^2.11.0","assert-helpers":"^5.8.0","babel-plugin-add-module-exports":"^1.0.2","eslint":"^6.7.2","eslint-config-bevry":"^2.3.0","eslint-config-prettier":"^6.7.0","eslint-plugin-prettier":"^3.1.1","kava":"^4.4.0","prettier":"^1.19.1","projectz":"^1.16.0","surge":"^0.21.3","typedoc":"^0.15.4","typescript":"^3.7.3","valid-directory":"^1.5.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers && npm run our:compile:edition-node-12","our:compile:edition-browsers":"env BABEL_ENV=edition-browsers babel --extensions \".ts,.tsx\" --out-dir ./edition-browsers ./source","our:compile:edition-node-12":"env BABEL_ENV=edition-node-12 babel --extensions \".ts,.tsx\" --out-dir ./edition-node-12 ./source","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:docs && npm run our:meta:projectz","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier && npm run our:verify:typescript","our:verify:directory":"npx valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write ./source/**","our:verify:typescript":"tsc --noEmit --project tsconfig.json","test":"node ./edition-node-12/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"babel":{"env":{"edition-browsers":{"sourceType":"module","presets":[["@babel/preset-env",{"targets":"defaults","modules":"commonjs"}],"@babel/preset-typescript"],"plugins":["@babel/proposal-object-rest-spread","@babel/plugin-proposal-optional-chaining","@babel/proposal-class-properties","add-module-exports"]},"edition-node-12":{"sourceType":"module","presets":[["@babel/preset-env",{"targets":{"node":"12"},"modules":"commonjs"}],"@babel/preset-typescript"],"plugins":["@babel/proposal-object-rest-spread","@babel/plugin-proposal-optional-chaining","@babel/proposal-class-properties","add-module-exports"]}}},"gitHead":"32304bbdf2237f2b0dba4d0c24deab013e77f014","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/start-of-week\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/start-of-week/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nReturns the start of the week based on the locale.\n\n<!-- /DESCRIPTION -->\n\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Require: <code>require('start-of-week')</code></li>\n</ul>\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import * as pkg from '//dev.jspm.io/start-of-week'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/index.ts</code> is typescript source code with import for modules</li>\n<li><code>start-of-week/edition-browsers/index.js</code> is typescript compiled for browsers with import for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-node-12/index.js</code></li>\n<li><code>start-of-week/edition-node-12/index.js</code> is typescript compiled for node.js 12 with require for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n## Usage\n\n[API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/)\n\n```javascript\nconst startOfWeek = require('start-of-week')\nconsole.log(startOfWeek) // 0 (Sunday) if North American, otherwise 1 (Monday)\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li>Benjamin Lupton</li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"http://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li>\n<li><a href=\"http://github.com/apps/dependabot-preview\">dependabot-preview[bot]</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=dependabot-preview[bot]\" title=\"View the GitHub contributions of dependabot-preview[bot] on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ Benjamin Lupton</li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","_id":"start-of-week@1.6.0-next.1575920627.32304bbdf2237f2b0dba4d0c24deab013e77f014","_nodeVersion":"12.13.1","_npmVersion":"6.12.1","dist":{"integrity":"sha512-2FjDxnBUZiMJ5XtvnWhL1KnRZ8TN/7lXMv6pC+A34SHZ6m9uFVbupt8bK+O38yICtz6IQ0jnkN+nXRmxlCHTqw==","shasum":"98e5873f47032c1d7f82ede5cc1aaaecb6bea326","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-1.6.0-next.1575920627.32304bbdf2237f2b0dba4d0c24deab013e77f014.tgz","fileCount":10,"unpackedSize":22108,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd7qP1CRA9TVsSAnZWagAA2pIP/2xUMAseHDnWR/BtUWYO\nJSEodmwcaxhBz3myG10uZvVviuexfL/zloPHy2xIrD8EeV00fs0uJsPVZHzL\nNlJ8405tNaS9fRjWp3qe26iEcld8fSt3lhcKTHIfu93rak6x19TbPKOehxNf\njMqn3JcA0QzP0CMIAEKbfI8UmBJBPLbLyQwIS+4WJdOLiaFrnXnJKZthsj1+\nTjnavnQ9halb78XMEQ8xRQa34gN9HAEdRAEZbZFKshBq21CeLdl/b/dZHCgJ\nggA7JQN3fRS83dSIbleCmp2j6XM+ULmANkkRMGS+Qb7FJ39RkdS87p2fX2CR\nL6u4aIw4JXy7JdtZzVEBH3ZMnq1OtNWr5peJ72E64YsdNMEASK5a/OeLdSdC\nNjDF5XnGuN2Q3NcD3QEir6cF3mh4PQelo+bpexkIg9zeF3qwoyhMlbiWC1qF\nRmZZpWRnVqj77hpsP6NzUH3kcrP7vFICcUw9vOHAuQMXNfS9LIc6ooNoImp+\n+LTsrZslOqK559b4qUV23AOfgi7R8R6m+ZrA5qjfIXgmGXavtfCS+DuDk3tn\nrMEQ+l3Qc5GYvFGTBKDFNbsFtnJKUDCh6ALx/b9F/0aUXGMY9hQHC2vLfooW\nb5gBCyocPXga9e/6M6qPSO1jvnLavFxP6oY2wbpQUJxQlchXje/zVWehO5WB\nPLHf\r\n=/KAZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIADIrjY/EYeSugKgJRSi8RWe/WnKiSJayebhU9ca+MjbAiEA45AmSHSAuz8JXVT4qLfU0nkj9ePSu+AazuQGrxMk+ew="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_1.6.0-next.1575920627.32304bbdf2237f2b0dba4d0c24deab013e77f014_1575920628944_0.8575319504127887"},"_hasShrinkwrap":false},"1.6.0-next.1576090822.a3e1229f2f9fe3aacb3b6e3c84385fb89e6d5ca6":{"name":"start-of-week","version":"1.6.0-next.1576090822.a3e1229f2f9fe3aacb3b6e3c84385fb89e6d5ca6","description":"Returns the start of the week based on the locale.","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["date","daet","startweek","locale","week","start","day","number"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","url":"http://balupton.com"},{"name":"dependabot-preview[bot]","url":"http://github.com/apps/dependabot-preview"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=8"},"editions":[{"description":"typescript source code with import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"typescript compiled for browsers with import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"typescript compiled for node.js 12 with require for modules","directory":"edition-node-12","entry":"index.js","tags":["javascript","require"],"engines":{"node":"8 || 10 || 12","browsers":false}}],"types":"source/index.ts","type":"commonjs","main":"edition-node-12/index.js","browser":"edition-browsers/index.js","module":"edition-browsers/index.js","devDependencies":{"@babel/cli":"^7.7.5","@babel/core":"^7.7.5","@babel/plugin-proposal-class-properties":"^7.7.4","@babel/plugin-proposal-object-rest-spread":"^7.7.4","@babel/plugin-proposal-optional-chaining":"^7.7.5","@babel/preset-env":"^7.7.6","@babel/preset-typescript":"^7.7.4","@typescript-eslint/eslint-plugin":"^2.11.0","@typescript-eslint/parser":"^2.11.0","assert-helpers":"^5.8.0","babel-plugin-add-module-exports":"^1.0.2","eslint":"^6.7.2","eslint-config-bevry":"^2.3.0","eslint-config-prettier":"^6.7.0","eslint-plugin-prettier":"^3.1.1","kava":"^4.4.0","prettier":"^1.19.1","projectz":"^1.16.0","surge":"^0.21.3","typedoc":"^0.15.4","typescript":"^3.7.3","valid-directory":"^1.5.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers && npm run our:compile:edition-node-12","our:compile:edition-browsers":"env BABEL_ENV=edition-browsers babel --extensions \".ts,.tsx\" --out-dir ./edition-browsers ./source","our:compile:edition-node-12":"env BABEL_ENV=edition-node-12 babel --extensions \".ts,.tsx\" --out-dir ./edition-node-12 ./source","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:docs && npm run our:meta:projectz","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier && npm run our:verify:typescript","our:verify:directory":"npx valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write ./source/**","our:verify:typescript":"tsc --noEmit --project tsconfig.json","test":"node ./edition-node-12/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"babel":{"env":{"edition-browsers":{"sourceType":"module","presets":[["@babel/preset-env",{"targets":"defaults","modules":"commonjs"}],"@babel/preset-typescript"],"plugins":["@babel/proposal-object-rest-spread","@babel/plugin-proposal-optional-chaining","@babel/proposal-class-properties","add-module-exports"]},"edition-node-12":{"sourceType":"module","presets":[["@babel/preset-env",{"targets":{"node":"12"},"modules":"commonjs"}],"@babel/preset-typescript"],"plugins":["@babel/proposal-object-rest-spread","@babel/plugin-proposal-optional-chaining","@babel/proposal-class-properties","add-module-exports"]}}},"gitHead":"a3e1229f2f9fe3aacb3b6e3c84385fb89e6d5ca6","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/start-of-week\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/start-of-week/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nReturns the start of the week based on the locale.\n\n<!-- /DESCRIPTION -->\n\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Require: <code>require('start-of-week')</code></li>\n</ul>\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import * as pkg from '//dev.jspm.io/start-of-week'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/index.ts</code> is typescript source code with import for modules</li>\n<li><code>start-of-week/edition-browsers/index.js</code> is typescript compiled for browsers with import for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-node-12/index.js</code></li>\n<li><code>start-of-week/edition-node-12/index.js</code> is typescript compiled for node.js 12 with require for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n## Usage\n\n[API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/)\n\n```javascript\nimport startOfWeek from 'start-of-week'\nconsole.log(startOfWeek) // 0 (Sunday) if North American, otherwise 1 (Monday)\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li>Benjamin Lupton</li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"http://balupton.com\">Benjamin Lupton</a></li>\n<li><a href=\"http://github.com/apps/dependabot-preview\">dependabot-preview[bot]</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=dependabot-preview[bot]\" title=\"View the GitHub contributions of dependabot-preview[bot] on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ Benjamin Lupton</li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","_id":"start-of-week@1.6.0-next.1576090822.a3e1229f2f9fe3aacb3b6e3c84385fb89e6d5ca6","_nodeVersion":"12.13.1","_npmVersion":"6.12.1","dist":{"integrity":"sha512-4F93qgBC9nLqweSCabylcDQbso7lxXMuET1T9qW0Sp0wnAIIqogcjFtXdAsONLw2VfUqRJNaQ5U68ozPgvG5ig==","shasum":"61b395c52cd4765088f3960eb787f9d8cbb18746","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-1.6.0-next.1576090822.a3e1229f2f9fe3aacb3b6e3c84385fb89e6d5ca6.tgz","fileCount":10,"unpackedSize":21912,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd8TzICRA9TVsSAnZWagAA0KEP/RDk8NjL9fqqpZ8pHc9E\nHMlVQXPrAoH5iqXXTyjq2wk+A0k9cOijgVIJg3DHf8hbcr1HUU76fzsBUBk6\nUuhIxY0B3D7MnlKNnKJ1H1WE80ffZg9LxdZP9p/B84e6MhkPfDPwr1n/L5aY\nhUgSnXfGWNBsUtR5EdHNbxuc7ai1jiA3UgNW2/8lkPQ+ohjy4W969XDRpMg0\nRpE1vrUR45w+STEhgUrrmvrMoFJ8cDG1xq8lKoh5fMTPwE+I2jOS1GlIFGVh\nKyzZjwPiAHB/pUgyAORNxSIUTsmY0vGw/Ga3EqXb7cexInMPhIVF7YplZH0o\nzERPBJ7jiLPvaIbBPp1fJ2+rGEO9MPhNXaO/cxR0YTaMIxmmrw8pBfZnqOCn\nAHDSr58dc16OsE3t4QDAVfhRb0VtCvIK7joAQTg85yF8oezfpIBd6hLwUZFc\nOv+ajlRbh2zOaqUmFOJl0wXyHFzz7fj00Ot9t+ls532UamWH8CwF+NPcoFZq\nEKvDrGHtoyTx73NzPQvYy9/MQsyJ+IgR0uPJYKNt7aCAjmyUSiU2/6m5HlJE\niyVKccvysqW+Gj9P4Cy3wOGHSKP5S8Z/q0YRcqss1wo8ZWrrQDU2fVOhMN4J\njLXCbUCDwxmYVEDbE7mKx2KIlAeaBzYixqyyQXyTAXTeKMun2T6KtkmJGGAd\n6hVY\r\n=wBeP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCFVYAd/aws+Q2Te+maTASrrq9T5yvO2wM3hQxrK2jy8gIgCJzxDMXJVjcV35R3lkX7UN6kyJMq0eTGLN9hWkB0oXs="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_1.6.0-next.1576090822.a3e1229f2f9fe3aacb3b6e3c84385fb89e6d5ca6_1576090823711_0.2950939517867932"},"_hasShrinkwrap":false},"1.7.0-next.1576624377.61ff0d5fa5abb9217b616818e8ebc63245f30059":{"name":"start-of-week","version":"1.7.0-next.1576624377.61ff0d5fa5abb9217b616818e8ebc63245f30059","description":"Returns the start of the week based on the locale.","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["browser","daet","date","day","export-default","locale","module","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","url":"http://balupton.com"},{"name":"dependabot-preview[bot]","url":"http://github.com/apps/dependabot-preview"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=8"},"editions":[{"description":"typescript source code with import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"typescript compiled against ESNext for web browsers with import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"typescript compiled against ESNext for Node.js with require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"8 || 10 || 12 || 13","browsers":false}}],"types":"source/index.ts","type":"commonjs","main":"edition-esnext/index.js","browser":"edition-browsers/index.js","module":"edition-browsers/index.js","devDependencies":{"@typescript-eslint/eslint-plugin":"^2.12.0","@typescript-eslint/parser":"^2.12.0","assert-helpers":"^5.8.0","eslint":"^6.7.2","eslint-config-bevry":"^2.3.0","eslint-config-prettier":"^6.7.0","eslint-plugin-prettier":"^3.1.2","kava":"^4.4.0","prettier":"^1.19.1","projectz":"^1.17.0","surge":"^0.21.3","typedoc":"^0.15.5","typescript":"^3.7.3","valid-directory":"^1.6.0","valid-module":"^1.0.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers && npm run our:compile:edition-esnext","our:compile:edition-browsers":"tsc --module ESNext --target ESNext --outDir ./edition-browsers --project tsconfig.json && test -d edition-browsers/source && ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) || true","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && test -d edition-esnext/source && ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) || true","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:docs && npm run our:meta:projectz","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier && npm run our:verify:typescript","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write ./source/**","our:verify:typescript":"tsc --noEmit --project tsconfig.json","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"61ff0d5fa5abb9217b616818e8ebc63245f30059","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/start-of-week\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/start-of-week/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nReturns the start of the week based on the locale.\n\n<!-- /DESCRIPTION -->\n\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Import: <code>import pkg from ('start-of-week')</code></li>\n<li>Require: <code>const pkg = require('start-of-week').default</code></li>\n</ul>\n\n<a href=\"https://www.pika.dev/cdn\" title=\"100% Native ES Modules CDN\"><h3>pika</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.pika.dev/start-of-week/^1.7.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^1.7.0/edition-browsers/index.js'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@1.7.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following <a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a>:</p>\n\n<ul><li><code>start-of-week/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-browsers/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://babeljs.io/docs/learn-es2015/\" title=\"ECMAScript Next\">ESNext</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-<a href=\"https://babeljs.io/docs/learn-es2015/\" title=\"ECMAScript Next\">ESNext</a>/index.js</code></li>\n<li><code>start-of-week/edition-<a href=\"https://babeljs.io/docs/learn-es2015/\" title=\"ECMAScript Next\">ESNext</a>/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://babeljs.io/docs/learn-es2015/\" title=\"ECMAScript Next\">ESNext</a> for Node.js with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<p>Environments older than Node.js v8 may need <a href=\"https://babeljs.io/docs/usage/polyfill/\" title=\"A polyfill that emulates missing ECMAScript environment features\">Babel's Polyfill</a> or something similar.</p>\n\n<!-- /INSTALL -->\n\n\n## Usage\n\n[API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/)\n\n```javascript\nimport startOfWeek from 'start-of-week'\nconsole.log(startOfWeek) // 0 (Sunday) if North American, otherwise 1 (Monday)\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li>Benjamin Lupton</li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"http://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li>\n<li><a href=\"http://github.com/apps/dependabot-preview\">dependabot-preview[bot]</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=dependabot-preview[bot]\" title=\"View the GitHub contributions of dependabot-preview[bot] on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ Benjamin Lupton</li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","_id":"start-of-week@1.7.0-next.1576624377.61ff0d5fa5abb9217b616818e8ebc63245f30059","_nodeVersion":"12.14.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-fq95ZmFsfajqd3vkCT0pNNzECDzlNXmPqkAHsrlwlm0TLetOyboBIMpQnJFrXPc/lscuKdDw9ReOMknBZiHOOQ==","shasum":"9b8713d0275066872c6d5c33392f12057baf3795","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-1.7.0-next.1576624377.61ff0d5fa5abb9217b616818e8ebc63245f30059.tgz","fileCount":9,"unpackedSize":22892,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd+WD7CRA9TVsSAnZWagAATL8P/00D5eIs6OYH8VQdURSp\n+O2kzo6QaMK+p+tyiIMsCrbTWMAjbA18jCQjup/jV+IKGDJZuaXGepXnHwK4\nMWRdZObbr6kQcuGQTutUBImUtLKevIar0uv+avMNqMwGFIvqZVK+u8N6LcJd\njSDrObluLZ1qH0h6/BrVgwdi/LW61Bgc8WgAEFczrmBhrvmI5J+oFVIOxnWo\nxcseES4/AB8hwDbwqJMeSKd0OjwmlDH+q7orJxLxsU4aLVzzvPQigQD9yAqV\ngOU0gCKNAJhYmoXqqCqc+lLJDJNDIZ4neXk5ZfZl/0B/h6ONIzTdC4qJIB5b\nz1B5Bun20YhID9GcA4l1t5ZQeU4rKrqCZEfDhN+jIEF9VyHgf+Zxucuph1ul\ncUgjkf8VrqpyRyWi3CeU3fKJtNsucl1PKMppbXIsmAoxxRIFwKJ67RwtH2MD\n4ibeWr055G7MnUKG43Qb7YOJcb4YusA5dk6vABk5fBjsOXD63O1wH1qFQd4L\nOkvf7sc+mh5o8FgXhD3Kp/+Hjtncjak3tt/k1BLiY7wNadvdprVeeuLAuu6M\n96HU4NGL7lJdNWc99+LzSdv4c9X2iwZiB3+5i83YcL2SNcJ1KXozL+4BdotT\nz02InOFtIR8zhrv/PmgjMRpz1+cjIm/PrgFSxmsp2X3xJbLjO421R426G5Pa\nI5CR\r\n=pfJY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICjbrMmfZpbxccE2X90HtjnhqnrOnscfqBNiuIic1EcaAiEA+MKngvmm258Oc5o+4FjYm1jmMGDVlVzk9ujBPon86NU="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_1.7.0-next.1576624377.61ff0d5fa5abb9217b616818e8ebc63245f30059_1576624378690_0.2727911779417056"},"_hasShrinkwrap":false},"1.7.0":{"name":"start-of-week","version":"1.7.0","description":"Returns the start of the week based on the locale.","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["browser","daet","date","day","export-default","locale","module","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","url":"http://balupton.com"},{"name":"dependabot-preview[bot]","url":"http://github.com/apps/dependabot-preview"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=8"},"editions":[{"description":"typescript source code with import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"typescript compiled against ESNext for web browsers with import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"typescript compiled against ESNext for Node.js with require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"8 || 10 || 12 || 13","browsers":false}}],"types":"source/index.ts","type":"commonjs","main":"edition-esnext/index.js","browser":"edition-browsers/index.js","module":"edition-browsers/index.js","devDependencies":{"@typescript-eslint/eslint-plugin":"^2.12.0","@typescript-eslint/parser":"^2.12.0","assert-helpers":"^5.8.0","eslint":"^6.7.2","eslint-config-bevry":"^2.3.0","eslint-config-prettier":"^6.7.0","eslint-plugin-prettier":"^3.1.2","kava":"^4.4.0","prettier":"^1.19.1","projectz":"^1.17.0","surge":"^0.21.3","typedoc":"^0.15.5","typescript":"^3.7.3","valid-directory":"^1.6.0","valid-module":"^1.0.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers && npm run our:compile:edition-esnext","our:compile:edition-browsers":"tsc --module ESNext --target ESNext --outDir ./edition-browsers --project tsconfig.json && test -d edition-browsers/source && ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) || true","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && test -d edition-esnext/source && ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) || true","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:docs && npm run our:meta:projectz","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier && npm run our:verify:typescript","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write ./source/**","our:verify:typescript":"tsc --noEmit --project tsconfig.json","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"61ff0d5fa5abb9217b616818e8ebc63245f30059","_id":"start-of-week@1.7.0","_nodeVersion":"12.14.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-k4JSmV7Y8wzub0JTXnz6cSL2i6Wsr2rgSnHfZpdAVb4LNWYcyO0B23PxcifFJu0YIp/52XFr9/SRfchhScJvFg==","shasum":"4c3bc500bfeaea7a4aa90c5d5ea85a9c71146b04","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-1.7.0.tgz","fileCount":9,"unpackedSize":22835,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd+WFFCRA9TVsSAnZWagAAXu4P/2GkBRKxIRJQwtWPwc4Z\naywHgSBuRVpYChIR82Ni3d4QzlDZ1gWIb4x8Rw/Jl9c21Cv6u7KGHdUW4pHP\nLgn+vDDAFfjGHlGSoZuBtGmxtsXEz6TN43qLya36dgUhX52NdxZFgrfmDw0n\ndgf+7wQmGpGExlaJ7zI8+WvlwzmprsnYqY4DttkQVtr+fWQ7uM/F1k+kit4v\n5XF1CY01U+ZENYALelzpfMocUqh5u+YWqHEuoGvyL2MPPDb07bGewXMwWDzT\nkVouGclFp3pIKoNsoahl0oPNh8orGH2/OKOuA5OOKY3sOzdCh9zz/yPYdQEX\nzY8cOMOMpnXClLWY21+IY2+4xKCROqIJoTUM8CHo7lTZKscehq36yfHDF3ca\nIwlG+XvpwfqSu6+eJpgUkWP9aBLsHs0sFf6I0SXCsEWqbH12oI6ZZhMhghSG\nt9Tlb53CXc6OK4RkQv2Qhnb4/OKBWxjZFymx04QlVoYXKc/fJMdr5ys8styH\n2yKYVQTKYkhe77u+XuEXEmm8gRrrM1uEnJPDU38ZmiRGraohhExiEkoQBawD\nFknfmCtblQSH+9dBh9dRjM5wRo38ttHmjc1JBgYh9kkmVlzIj4DvtwYiRPzl\no00mAETAypgtNI4I2E3SzW6MWl5ARW/iuCjFrNxM1ooGgmETnxyxdzx+jnud\n40OV\r\n=JSQK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDfREqKJl+hY9eMSh9sGEXbLPu11FyaSFFeJ0EmLviOnAIganediNgAwqGmZ1NAl5BLl0123xI9viga3Ll7OT243Dc="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_1.7.0_1576624452640_0.29633280156945485"},"_hasShrinkwrap":false},"1.8.0-next.1589194819.27a4a46f82d3c4aee2c03f98cb2c3ede84de5b13":{"name":"start-of-week","version":"1.8.0-next.1589194819.27a4a46f82d3c4aee2c03f98cb2c3ede84de5b13","description":"Returns the start of the week based on the locale.","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["browser","daet","date","day","dom","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=8"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"8 || 10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}}],"types":"source/index.ts","type":"commonjs","main":"edition-esnext/index.js","browser":"edition-browsers/index.js","module":"edition-browsers/index.js","devDependencies":{"@bevry/update-contributors":"^1.4.0","@typescript-eslint/eslint-plugin":"^2.31.0","@typescript-eslint/parser":"^2.31.0","assert-helpers":"^6.2.0","eslint":"^7.0.0","eslint-config-bevry":"^3.4.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.0.0","prettier":"^2.0.5","projectz":"^2.1.0","surge":"^0.21.3","typedoc":"^0.17.6","typescript":"^3.8.3","valid-directory":"^1.6.0","valid-module":"^1.0.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers && npm run our:compile:edition-esnext","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && test -d edition-browsers/source && ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) || true","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && test -d edition-esnext/source && ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) || true","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"npx @bevry/update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && npx typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"npx projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier && npm run our:verify:typescript","our:verify:directory":"npx valid-directory","our:verify:eslint":"npx eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"npx valid-module","our:verify:prettier":"npx prettier --write .","our:verify:typescript":"npx tsc --noEmit --project tsconfig.json","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"27a4a46f82d3c4aee2c03f98cb2c3ede84de5b13","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/start-of-week\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/start-of-week/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nReturns the start of the week based on the locale.\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/globals.html)\n\n```javascript\nimport startOfWeek from 'start-of-week'\nconsole.log(startOfWeek) // 0 (Sunday) if North American, otherwise 1 (Monday)\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Import: <code>import pkg from ('start-of-week')</code></li>\n<li>Require: <code>const pkg = require('start-of-week').default</code></li>\n</ul>\n\n<a href=\"https://www.pika.dev/cdn\" title=\"100% Native ES Modules CDN\"><h3>pika</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.pika.dev/start-of-week/^1.8.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^1.8.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@1.8.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-esnext/index.js</code></li>\n<li><code>start-of-week/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-browsers/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li>Benjamin Lupton</li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://github.com/balupton\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ Benjamin Lupton</li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","_id":"start-of-week@1.8.0-next.1589194819.27a4a46f82d3c4aee2c03f98cb2c3ede84de5b13","_nodeVersion":"14.2.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-mbARwjury/b7AuOOQEdk+X97dQ1Qxg5Md0Zqd9C8gQg7clyq4q3gsmk5SwCWCaFpuzL+ELgKl6RleSRLdEIMrA==","shasum":"dc48252e5564c39fcd500fd1de32b18157c61580","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-1.8.0-next.1589194819.27a4a46f82d3c4aee2c03f98cb2c3ede84de5b13.tgz","fileCount":9,"unpackedSize":22770,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeuTBFCRA9TVsSAnZWagAALGAQAJ5PC4YhEmFJNrisfX90\n410kOU5TOcgSjh5Xwc/F1NL1arBGCp4wd3hmzb+jZGV7CGbS1g+VnuZCJG5o\naBI5dQxHJEkFu1FfeYGQR0AH1TWLVF7EO8RLNXSVBQ4IMu+AFUszIJSsYwkg\npggy/qksexbN0UJaTsDIUK5qOixtVGdImt7WfR772svhKRxu/1o0UzqEAcjR\ndfE141epdguDK/5YPuC7MzfUJmhhKmPFWcMtxW8dvm2sA3mQqpiubQyaAhQs\naAztFb2MSFJnSifGX/+OOBBaxSnNy4/hMAfirIpNE/UkmZLSRc2tG4yY9iu0\nUEEAztW/fVk3XCbrPyRKi/TyHFtiDmykoJ+gzAm9e9Oi0fVJ4G+33EyOIU5a\ncFhlWj+5toVYLODYG0KSWphbFNlIgkgT/qop/lz0claCu2aN85wA1OJKQ3S8\nUProc7ZzYeZkRPwkEw8DfpuvbAPMc5fn4Cq7Q+NlSXv2D8SwNHZ/u8GCLmy6\nlmcoCthCJcM1CJqi/w2AXSDYd7I6za3tJ7HqxHfCbH2nEUKbSnznBv5rpPfF\nXezMBvVi01sMQK4rnOFEONnEBdQMxGOKwDpHDbszpFd2Utqnw39HOqlQtrQA\n3MmlsEsvbm24Ad7yin08QHWfK4uOPQ+cShMVRux40Y58JgXqo8k7Qa/2iPjf\nw5gR\r\n=5pOk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDb3EAP8O/COI6FHNnkIj/5oDSDyy8rvIjuG3vLQgev4gIgLi4HTJLW5H4zJU1h5wY8EpkPk+Wg/lFzOtXOpDXtR8Q="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_1.8.0-next.1589194819.27a4a46f82d3c4aee2c03f98cb2c3ede84de5b13_1589194821098_0.121150717722591"},"_hasShrinkwrap":false},"1.8.0":{"name":"start-of-week","version":"1.8.0","description":"Returns the start of the week based on the locale.","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["browser","daet","date","day","dom","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=8"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"8 || 10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}}],"types":"source/index.ts","type":"commonjs","main":"edition-esnext/index.js","browser":"edition-browsers/index.js","module":"edition-browsers/index.js","devDependencies":{"@bevry/update-contributors":"^1.4.0","@typescript-eslint/eslint-plugin":"^2.31.0","@typescript-eslint/parser":"^2.31.0","assert-helpers":"^6.2.0","eslint":"^7.0.0","eslint-config-bevry":"^3.4.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.0.0","prettier":"^2.0.5","projectz":"^2.1.0","surge":"^0.21.3","typedoc":"^0.17.6","typescript":"^3.8.3","valid-directory":"^1.6.0","valid-module":"^1.0.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers && npm run our:compile:edition-esnext","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && test -d edition-browsers/source && ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) || true","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && test -d edition-esnext/source && ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) || true","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"npx @bevry/update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && npx typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"npx projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier && npm run our:verify:typescript","our:verify:directory":"npx valid-directory","our:verify:eslint":"npx eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"npx valid-module","our:verify:prettier":"npx prettier --write .","our:verify:typescript":"npx tsc --noEmit --project tsconfig.json","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"27a4a46f82d3c4aee2c03f98cb2c3ede84de5b13","_id":"start-of-week@1.8.0","_nodeVersion":"14.2.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-leB/O6HYUrvnplScbBHmEuA6wQDLokUXkeExj9NTnk8UCaYMwoNAbIFMMVo+2ZLAs1gct1uty4sS1WjkTwsDuw==","shasum":"9a3eb0828c1de48d5ec69c7b534530765a9714ac","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-1.8.0.tgz","fileCount":9,"unpackedSize":22713,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeuTCLCRA9TVsSAnZWagAAUkIP+wdqxpNez93y9Zh6otiP\nMaHyQtcRE+isGTCpLbjMeFkxSipnM3iflVmjVuJ72pdbJykpmUoNg4ztsbZ+\nKqHBCYBT+tas8KKMavHyFWJtKhukACF9uBUdtjLoMbRhDuyApjfDnx7U5c8x\nhCefyiSl5ExW+UJ8jlS+Qeat84yl2v5YkoL2ESh5zi5+3zlcKPn0xoCvyEsH\nQDoxEtie3qIRhSSqvZ6YqmDesNZD9FW1veW+1iIyE/U1qrp1k09v0aYqnHtM\nvma1q25vkTPExma4g7Wpnek8+T4v/hp5C4/Kny/p8Gz4FCEbS528ekCm8O5s\nz4BJmG8eSFw+mGoty4oSPZBQTXObMXlj6688X2vX0T1GyGR6U1y/pMk8yUM1\nxym6PPns8TVjnGRCBIRYUM2gAtY8EEP98LGxbp/0CiTBnz/6fi46kZfGzc4a\ntamJBMN0YSJxLbx62czibzuGSXENUYok0bShwat86Y9SGWyoUJ64X8JxAeZl\nGMl3DawKjpq1h1c2CHlXFuf9lD2ddpckYLxGP1sgL4gHHI6lM921h4nYrj55\nQ5jNCm+JoV7LnpSEzdURg6+vPlQaEUs+TP3/pAPDyINEynojiNnYbagQrK5n\na6tElUDoJGevyVmnz8j5S+qNZjuvpehEId7o69Qt5+ziZryLER0vSmsUU6Tc\n3XEo\r\n=tkDy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCotXR6di3RinDTaoryY5HsbhRtksXingHm915l00FfkwIgFugW21oOd+z3i3i6kn2OW8jus45oQoCbBBwzNf8k3og="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_1.8.0_1589194891132_0.5170357237332415"},"_hasShrinkwrap":false},"1.9.0-next.1589246422.8e5a3aed0f6b422e2e4cf00928c83e26151cc6d6":{"name":"start-of-week","version":"1.9.0-next.1589246422.8e5a3aed0f6b422e2e4cf00928c83e26151cc6d6","description":"Returns the start of the week based on the locale.","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["browser","daet","date","day","dom","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=8"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"8 || 10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}}],"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","browser":"edition-browsers/index.js","module":"edition-browsers/index.js","devDependencies":{"@bevry/update-contributors":"^1.5.0","@typescript-eslint/eslint-plugin":"^2.32.0","@typescript-eslint/parser":"^2.32.0","assert-helpers":"^6.3.0","eslint":"^7.0.0","eslint-config-bevry":"^3.4.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.0.0","prettier":"^2.0.5","projectz":"^2.1.0","surge":"^0.21.3","typedoc":"^0.17.6","typescript":"^3.8.3","valid-directory":"^1.6.0","valid-module":"^1.0.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers && npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && test -d edition-browsers/source && ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) || true","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && test -d edition-esnext/source && ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) || true","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationDir ./compiled-types/ --declarationMap","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"8e5a3aed0f6b422e2e4cf00928c83e26151cc6d6","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/start-of-week\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/start-of-week/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nReturns the start of the week based on the locale.\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/globals.html)\n\n```javascript\nimport startOfWeek from 'start-of-week'\nconsole.log(startOfWeek) // 0 (Sunday) if North American, otherwise 1 (Monday)\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Import: <code>import pkg from ('start-of-week')</code></li>\n<li>Require: <code>const pkg = require('start-of-week').default</code></li>\n</ul>\n\n<a href=\"https://www.pika.dev/cdn\" title=\"100% Native ES Modules CDN\"><h3>pika</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.pika.dev/start-of-week/^1.9.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^1.9.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@1.9.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-esnext/index.js</code></li>\n<li><code>start-of-week/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-browsers/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li>Benjamin Lupton</li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://github.com/balupton\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ Benjamin Lupton</li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","_id":"start-of-week@1.9.0-next.1589246422.8e5a3aed0f6b422e2e4cf00928c83e26151cc6d6","_nodeVersion":"14.2.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-F8bjM0R6izhNQ/cumhm6wyJ7+NnCAms4oOGiv+D5odgd6FwQFOfJfCWFbkNEt4Y8tSvLYs/nkTY3tTM7/ZFchA==","shasum":"27c6bbe01929501d7c0c08f34344bacc3d47f2a6","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-1.9.0-next.1589246422.8e5a3aed0f6b422e2e4cf00928c83e26151cc6d6.tgz","fileCount":11,"unpackedSize":23473,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeufnYCRA9TVsSAnZWagAAAe8QAKDRbVHL9IPIB62EF6hp\nMxS78uJCtr1PzqsUXDHuTnQYpYYBh09JTbVXwobhFK+l3s+0ZpS9wRP2a0mf\ne3RP29NIefbcL8ClX1dLyStoMYZNKKyVNyUybIkYGpzFD0HygWeh85NoLk6M\nYbQ+uhWv0IxnDU4LOBYVYcsVAnRTUIt8G8gq0A9rKRqaDZBtjvnzvVOt+ZoG\nk3F1GbnykpVQlgxE8PYWBruUB38taVqpIuMW4yoCn/EzW1YEFrqveKf8J0Au\nQObPv+e1l8araZSYJf1bAb1Hgp3lpmzrjPbOE4lI+aYMAGH2BPMHXtEMEFw9\nXZ/uvq6gca6YAmyS4lI4IJAVW1O6Vtdg07w/zs2Zfg/60ozne7f8gYDq07pv\n8opXC9rgOxPIgYBMJ9NDLEqw8koYWviOUn0RQj5qhg+9QV2GNrTg8hSkhp3W\nerZfYjtuSETJVZhQUODxNfqwMm4baFLreAqNHhebi2Dhp6TYwspOIWe9Ylyx\nmLk4WZT+kkNGzHYrWBmalZdw9aWiCAhl2Dw5RUlXYm9ykEWFH4BQZNoFVXiZ\n2f8jRStn/Pi6hLPJ9MmUDDYVknOVIl+JP0CYRB27w+rrwDQm5qbUSXVfEaOG\ngiBVeVICR7BLoD0+SZaxNQ+/3pF8Rcifw8XjUgZHXQ2626bsWRmHGU4Q/7cv\nLxCx\r\n=DxMX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC/YeBtwsT+/yeEX8sHfQV8UQizkV7+iUvBFXzWBbZsXQIhAOxD8tnAA7POg4j4kKtbqlTjtt8t33NoEgFhk1RVnlbO"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_1.9.0-next.1589246422.8e5a3aed0f6b422e2e4cf00928c83e26151cc6d6_1589246424043_0.7285282483759898"},"_hasShrinkwrap":false},"1.9.0":{"name":"start-of-week","version":"1.9.0","description":"Returns the start of the week based on the locale.","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["browser","daet","date","day","dom","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=8"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"8 || 10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}}],"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","browser":"edition-browsers/index.js","module":"edition-browsers/index.js","devDependencies":{"@bevry/update-contributors":"^1.5.0","@typescript-eslint/eslint-plugin":"^2.32.0","@typescript-eslint/parser":"^2.32.0","assert-helpers":"^6.3.0","eslint":"^7.0.0","eslint-config-bevry":"^3.4.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.0.0","prettier":"^2.0.5","projectz":"^2.1.0","surge":"^0.21.3","typedoc":"^0.17.6","typescript":"^3.8.3","valid-directory":"^1.6.0","valid-module":"^1.0.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers && npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && test -d edition-browsers/source && ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) || true","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && test -d edition-esnext/source && ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) || true","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationDir ./compiled-types/ --declarationMap","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"8e5a3aed0f6b422e2e4cf00928c83e26151cc6d6","_id":"start-of-week@1.9.0","_nodeVersion":"14.2.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-q4oSbrztQwR7RNy5S4Lb39KVkVJt36iP2riQtnHsXjbnmPx2DLb7WlyVcSaUVLSrL+ytESSopBuptHyi9usAAQ==","shasum":"21aecef7ade2d0afe454d6f95d1bcf76d03789e6","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-1.9.0.tgz","fileCount":11,"unpackedSize":23416,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeufooCRA9TVsSAnZWagAAgq0P/iXwGRQJ8BXJgc9Lfl4k\nXAZFUNPxzK8znV+HEUUyut2M0GNz/DA1bBnLmDpmgroNJ4TK/l5Ye9WSPRZa\neIVe6ALjS6j/02EJj0O2LzAit/ciMEpiLmzBHYTtQXhl+tkBziFk0kQYjxRh\nNCu9dqfhv+C8O0QF7R1RBYja4QNrW0AVFNjAFbIuY78b6l5TuCQvSHNij2Rq\ngZtg9Z7jy9pZ+Lf1M6hVfDjOek1Hb3dKByMyTvth9JmS8bGnJWYkcYUQKkYY\nDzpaYQP1Eaua7aQLvHx19DlhW4ctmaCMKxOelcUMaZweJT+wqdIbBNRFJCcC\nYBxqQmZCpunO5vyOCD4vZ1uO62/HHk2+rkGzyvudZNy5csVHkUIFBZeNEt8O\nHcvQPp51fQPALJQ2mxv/XTI02KZgnoWCHsEsSIBM268nA7IJdsFZ6p/fnrIb\nY0OYsFELvUaf7v+S7sWcvKdFEELr+ly/naEnFQ2KjQ967KtVTZCIodVRsZh1\n31/73fOvX+P708Obhl06GotaGhGl8rrqs1JSF8RISV/MN80/RCo11qSS8Be+\n7f00BlIKpUkDLjHlAXSO5epj5tHMKoJ5zndVhfW0/2EfOG5evV1EBzlq8/Qq\n/E/f7tdvFtNGf65Y4w5sXrdXUcA0R3lq/RmaC79BRx8qGLr7pk0+CvMbFZbB\nW2x/\r\n=vQoQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBbnLvmOwim/L7D8A1/0RyPDrBKt1mQd9ErzQeFFhx8oAiAQUcWs2eB7SjsJACjZTcSzkZkBYPA4x20hQaT0X6Z5Bw=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_1.9.0_1589246504192_0.9037614836887009"},"_hasShrinkwrap":false},"2.0.0-next.1590009407.3543b4bb189038a009dd9e809d55cf95fe8fd161":{"name":"start-of-week","version":"2.0.0-next.1590009407.3543b4bb189038a009dd9e809d55cf95fe8fd161","description":"Returns the start of the week based on the locale.","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["browser","daet","date","day","dom","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}}],"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","browser":"edition-browsers/index.js","module":"edition-browsers/index.js","devDependencies":{"@bevry/update-contributors":"^1.5.0","@typescript-eslint/eslint-plugin":"^2.34.0","@typescript-eslint/parser":"^2.34.0","assert-helpers":"^6.4.0","eslint":"^7.0.0","eslint-config-bevry":"^3.5.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.1.0","prettier":"^2.0.5","projectz":"^2.2.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.3","valid-directory":"^1.6.0","valid-module":"^1.0.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers && npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && test -d edition-browsers/source && ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) || true","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && test -d edition-esnext/source && ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) || true","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationDir ./compiled-types/ --declarationMap","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"3543b4bb189038a009dd9e809d55cf95fe8fd161","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/start-of-week\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/start-of-week/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nReturns the start of the week based on the locale.\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/globals.html)\n\n```javascript\nimport startOfWeek from 'start-of-week'\nconsole.log(startOfWeek) // 0 (Sunday) if North American, otherwise 1 (Monday)\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Import: <code>import pkg from ('start-of-week')</code></li>\n<li>Require: <code>const pkg = require('start-of-week').default</code></li>\n</ul>\n\n<a href=\"https://www.pika.dev/cdn\" title=\"100% Native ES Modules CDN\"><h3>pika</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.pika.dev/start-of-week/^2.0.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^2.0.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@2.0.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-browsers/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-esnext/index.js</code></li>\n<li><code>start-of-week/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","_id":"start-of-week@2.0.0-next.1590009407.3543b4bb189038a009dd9e809d55cf95fe8fd161","_nodeVersion":"14.3.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-l09eyRTgF1hhU0SY1TQcAwFY9snF0j+IUuzz1wF5H/o8OqcyVVoA4xEfKD64/4xiQeP5U5w+sJgY4L3LBs3Mow==","shasum":"1748e8656aca827ec76d409c75533bb17230c8e8","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-2.0.0-next.1590009407.3543b4bb189038a009dd9e809d55cf95fe8fd161.tgz","fileCount":11,"unpackedSize":24137,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexZ5BCRA9TVsSAnZWagAA0MoP/A05eGJph1Nv+QFaoj0M\nhBTbX59hVJR6i/0IDDqc+H+z7raTv1fubFIzy0nDWCNfW37Xicz98yYzh8hD\nw/kzvZTtxDpjfFgRD8gortnOwudUNytQynSCg/eyr8MG1hm0S0mIM0baIoD9\neQLuiC/YnS+mMWl7iw0iJoWE95f7rf8nCmxdsPQTHPptYitpr6fg52R3pW9m\n49Gy+Vyx5dlSx17BZaCtSWnNruU+WuqdlCug917AyJZzV/JdPjoRrpYUr6Z2\n4yh7uAsV/Nlk3QC1mCUPLWHfMw1xvKomAOx1Nqpzjb3NTVmzftu5kHb9Fqca\nUSiiHuVlA4P7Rlm7XfhEL1X2mCxfPUGqbS5iUQwWMFDf7mkAMmbLWjzMgUB7\ncy1Qw+/QVHlNCqOHrJ8S5cioB8AQG/1jRLetQolTOLGqNlYsU2prTicixcEl\nMQ0SDSp747lrCw1bgf8KTgSOQ1RBE4OX5/PIE1/G5ckq2T0Wz+ulyctShg0Y\n5cQnXQxjKbVOVet6gc2cZnmTJU6u8Ksj3WZ9zW9xlrgStobShGXg1Z+9vJTl\n0Wcw5GuYzLjN8sueBJH3XAl0IaJe4jwTc9d8k8AizWx3NChGcnhDQhxwgLCE\ntw2Xi1aHb+Nqow4p7xHEYdMLxru4DtT3aknMD2i/XDXMo1U6bKWITrYi/PdP\nhZFX\r\n=oBV/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDlTHymZP75w/u/PyirVWa6awpM+EJPeL6ppO3A9NkCtAIhAOVMM5RCi0QgJMIwr2wasRM9RmAAApUARg8HEKvr3ApA"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_2.0.0-next.1590009407.3543b4bb189038a009dd9e809d55cf95fe8fd161_1590009408972_0.24473897139337275"},"_hasShrinkwrap":false},"2.0.0":{"name":"start-of-week","version":"2.0.0","description":"Returns the start of the week based on the locale.","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["browser","daet","date","day","dom","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}}],"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","browser":"edition-browsers/index.js","module":"edition-browsers/index.js","devDependencies":{"@bevry/update-contributors":"^1.5.0","@typescript-eslint/eslint-plugin":"^2.34.0","@typescript-eslint/parser":"^2.34.0","assert-helpers":"^6.4.0","eslint":"^7.0.0","eslint-config-bevry":"^3.5.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.1.0","prettier":"^2.0.5","projectz":"^2.2.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.3","valid-directory":"^1.6.0","valid-module":"^1.0.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers && npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && test -d edition-browsers/source && ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) || true","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && test -d edition-esnext/source && ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) || true","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationDir ./compiled-types/ --declarationMap","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"3543b4bb189038a009dd9e809d55cf95fe8fd161","_id":"start-of-week@2.0.0","_nodeVersion":"14.3.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-dRyCudIIrs8jdcb5MEB36L3Dps5JHv4GraEgEGbrAsbz/5Slpkbu/coPf3DDR6r/GhNszML+klyk05W+9TkFqw==","shasum":"15368f8f02a04e33f44ce99c140eda186925e45d","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-2.0.0.tgz","fileCount":11,"unpackedSize":24080,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexZ6PCRA9TVsSAnZWagAAL58P/04NafYmNLo+TqtuokxT\n4G2QoPUgrtRMI9+RTWUVrlbqARL5rRohad9XtZFclmBSq3j+jZ28I4kH1phJ\n25BdMeiWLLRmVgvUBcUMYhGfylSTU9qCr19DasP9fOLVmbxkYUEL3iX6u94s\nlCSyMxh/p9pAc+bCJMQdcF45G+IGRE48Zgd600bPGoveD7vqAaEyAvMJyQ6x\n/WfTLo5I44oQSgfJrfFhe2Syz59gmk8GQ3sLzU08+HQxRyVi6TmSvGTz4u3l\n9hCfm/iCFXQRFExnHoOHPJWp7HzvZaSBcLi41pTPtEWx2hEYszCY162W+Xad\ngGFkX9PDSIjjKItKOqMmLujzf8c0NRf9G8acjsbE4q9lxgRtgi+AgfKZ9ncA\n+02aSR0OK2Ch88UnYQPODrRpUU0y0D0OXWqOq6VQcgxLgIZRYpt6jV4AL4zh\ntzNeZz1ag3i96bihyt8LD++D+e7TX/6/QsRhqHo2ScA/OdRlen143xv83GBH\nns5rw27lEYz7JVC47WBiybMjMuSAK+S+9XCgIbLvClrVq96nIjr8L1SG+b0G\nXRFmzKAOCs3OuP4P3+ZBqCwYimR1M11WiqN+CZLnBixMPqnBLvU+VkaQLj2T\ntWhMjBd0Sl39qzPES3GSrBTJa8ykdmIEJOz4D4kxeOjIPnXSERO2OOElQSuO\nBq1k\r\n=LwEJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDS9CfneCqdjhQqBbSlQ9H8HQeDSCPmodCMsKi0TXokQgIgdK53gX8nRyaGaMoTogAfc/xZDIBOOmxPeGcyTj4YmZk="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_2.0.0_1590009486768_0.949607561348925"},"_hasShrinkwrap":false},"2.1.0-next.1590065071.27327b462ece13651eebab4a528b5265bc3216ed":{"name":"start-of-week","version":"2.1.0-next.1590065071.27327b462ece13651eebab4a528b5265bc3216ed","description":"Returns the start of the week based on the locale.","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["browser","daet","date","day","dom","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}}],"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","browser":"edition-browsers/index.js","module":"edition-browsers/index.js","devDependencies":{"@bevry/update-contributors":"^1.6.0","@typescript-eslint/eslint-plugin":"^2.34.0","@typescript-eslint/parser":"^2.34.0","assert-helpers":"^6.5.0","eslint":"^7.0.0","eslint-config-bevry":"^3.6.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.2.0","prettier":"^2.0.5","projectz":"^2.3.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.3","valid-directory":"^2.0.0","valid-module":"^1.0.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers && npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"27327b462ece13651eebab4a528b5265bc3216ed","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/start-of-week\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/start-of-week/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nReturns the start of the week based on the locale.\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/globals.html)\n\n```javascript\nimport startOfWeek from 'start-of-week'\nconsole.log(startOfWeek) // 0 (Sunday) if North American, otherwise 1 (Monday)\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Import: <code>import pkg from ('start-of-week')</code></li>\n<li>Require: <code>const pkg = require('start-of-week').default</code></li>\n</ul>\n\n<a href=\"https://www.pika.dev/cdn\" title=\"100% Native ES Modules CDN\"><h3>pika</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.pika.dev/start-of-week/^2.1.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^2.1.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@2.1.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-esnext/index.js</code></li>\n<li><code>start-of-week/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-browsers/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","_id":"start-of-week@2.1.0-next.1590065071.27327b462ece13651eebab4a528b5265bc3216ed","_nodeVersion":"14.3.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-M4bpKfhdshX6MlmHGLIeonwlZ1RXITXYaRtdMUQHiMJ1HibEbyZDn+/n9X+R4CPUqjEgKelnplYnRjPy3zA/qg==","shasum":"f030cdf4cfcef12f6637daa4ee8760a5421be11b","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-2.1.0-next.1590065071.27327b462ece13651eebab4a528b5265bc3216ed.tgz","fileCount":11,"unpackedSize":24468,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexnexCRA9TVsSAnZWagAAOqIQAKAtX1UvqDBsskaXIQhC\nXyx3WqoKE7MM0dNohtFHeNCIzWDhoj6l/WrEADXt7atPZnz0O1It2TOiTuqD\nle/3BXH4NUfgjXEQ9I4w7nKzntJZINGbLmArLPM9RG+BCEKOeIwGX0J8tNAt\nBobhz8qxsdLbohIWY3GpeM0j977FO0XM+Zl0bUN9TTzcH3RYlBnqtCNNNnME\n40pgcEcnpC+Y2uPvbIAU1u2R0888xZOocOA7k3hVm5gpGbd2N+eYhj0sIDV/\n9OqDz+SdmLl1uxNHY7cv7wEjA4HAErVm8mG/w2z+wNJcCjbYw0kV9Yw4TQWH\nskoiIr1UNV5bTkQiBskcziZTU0G1dc2xtpQvyz68iZ21wv35hQgTGo05/bk3\nvd829Iq2lz3UfhP7nGW+3sfMrN9wudJSH9dINkzOKovxeXkaL/uKjySFJMy0\nCKoui51Pzjzq6co4FgB8JI9iSwqv/xQPY85qW/Ql98Hx13xxhynK3m3QX+TN\nUL2v2at2phZl+6Nmcn2XsauMru7iksnfDx4jMVseA3Vus0afFK4ND3oKZ7nj\n9ZVCZB1rqi4RHKL97yacyD75tBV2I63APWDNWUgYbxjGm/E6MzzqD0eouxja\nv9UF398bnQSDckbIntqSsbBvjtA1CLbQojbR2maWFslB9mgwtxw3PccM/Wm5\n9NCy\r\n=JRwe\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHQzK4WTxg5CRnGx1YFBa1nNVenRhqyIleidATlRwnNoAiEA8YaOqTwLS9Tluzb67zUgXiSmUlzpLcs2LXOn3+KPjtU="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_2.1.0-next.1590065071.27327b462ece13651eebab4a528b5265bc3216ed_1590065072703_0.0016606865518136171"},"_hasShrinkwrap":false},"2.1.0":{"name":"start-of-week","version":"2.1.0","description":"Returns the start of the week based on the locale.","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["browser","daet","date","day","dom","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}}],"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","browser":"edition-browsers/index.js","module":"edition-browsers/index.js","devDependencies":{"@bevry/update-contributors":"^1.6.0","@typescript-eslint/eslint-plugin":"^2.34.0","@typescript-eslint/parser":"^2.34.0","assert-helpers":"^6.5.0","eslint":"^7.0.0","eslint-config-bevry":"^3.6.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.2.0","prettier":"^2.0.5","projectz":"^2.3.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.3","valid-directory":"^2.0.0","valid-module":"^1.0.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers && npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"27327b462ece13651eebab4a528b5265bc3216ed","_id":"start-of-week@2.1.0","_nodeVersion":"14.3.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-lnDZyh9pwvk8rgvSpO9MBn43W1el2K5jzZI9lvqRK5LN3uANv/Z3VjtOJWO/3RzDNv9QwB2t32cwkr5DfaksPg==","shasum":"995fbaaabc46f895fbefae4f4acf3a70ba92a000","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-2.1.0.tgz","fileCount":11,"unpackedSize":24411,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexngGCRA9TVsSAnZWagAA67QP/1JoXZrIC1qUWiMEv4Kp\nbb+d8VGhIyrBT2/73Q/qndwtXMpKMPwhWLmxTiFIqbXpRl7kZP3ps9mDHHfC\ns5GS4jbbFn2QfFbP2dK2fAQuMEKVz2aikHEIBCy2p46j/BHoB84s8zzqap98\nWbH+zeOqwk7BMTenGjsdkMIOop8loWe5ZO2PhQSm/YhFKUz87nr0JhFcKtic\n+iB8EVo87nD2FZEZwbcTf6SQ+3mXjpX2h9adWNgbzc+B6MWYQAoTNCM6jys0\npXSYo9eZP6/TI6jo2qKQ9bZO/8VD6HLZ81rIZpykRWq3wGXgs6lU7Ss0PPdQ\nIqXiyJJTy2+WEAh1NnJYX0NxO6ARjXe/I4PVrOEUlF+eThMYMu79IhnMSzjo\nvOscoq+ZptLOOp1NlMhQAYogQDJbkS8oZq8d05Kof9hf9UdzL4fOf7OyzXOl\ngx/ugyxCWsITW0ghoKIpSoVNzTvtf5RH7PQFVZkuFaAw5HVu3sTJ1Mk7lFYw\nsqERTsPoFtOWb8zz+t8h6SQN3LDN2Y1YHz5fJCDpA0cc9fO8PZpwuCKGFh3+\n0AuP2SULLNCc4nhfNY6ZHhKTM9Kg6Vlha+1py2PZjKTSrIF0++AO2InC+6pN\nb7t5tgHeyuMr5DrYTerjWNf6MCe7hRl0u1X5N1/x1aNm3lZxS2BaFbI3+0R9\nShGl\r\n=/9Oz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFbpx00VVFBmXCSbTQfdVKbAncSVaR/0rl6zvYyg8MP4AiEA5dNc+ZLP6c2okFpQOFwMmRWxBTQMBro/9xzUK/kFcYU="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_2.1.0_1590065158142_0.8078666520752247"},"_hasShrinkwrap":false},"2.2.0-next.1590082239.fe2890830ea2b6badcbf7b170bcfacc88d8c1383":{"name":"start-of-week","version":"2.2.0-next.1590082239.fe2890830ea2b6badcbf7b170bcfacc88d8c1383","description":"Returns the start of the week based on the locale.","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["browser","daet","date","day","dom","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}}],"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","browser":"edition-browsers/index.js","module":"edition-browsers/index.js","devDependencies":{"@bevry/update-contributors":"^1.7.0","@typescript-eslint/eslint-plugin":"^2.34.0","@typescript-eslint/parser":"^2.34.0","assert-helpers":"^6.6.0","eslint":"^7.0.0","eslint-config-bevry":"^3.7.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.3.0","prettier":"^2.0.5","projectz":"^2.4.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.3","valid-directory":"^2.1.0","valid-module":"^1.2.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers && npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"fe2890830ea2b6badcbf7b170bcfacc88d8c1383","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/start-of-week\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/start-of-week/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nReturns the start of the week based on the locale.\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/globals.html)\n\n```javascript\nimport startOfWeek from 'start-of-week'\nconsole.log(startOfWeek) // 0 (Sunday) if North American, otherwise 1 (Monday)\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Import: <code>import pkg from ('start-of-week')</code></li>\n<li>Require: <code>const pkg = require('start-of-week').default</code></li>\n</ul>\n\n<a href=\"https://www.pika.dev/cdn\" title=\"100% Native ES Modules CDN\"><h3>pika</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.pika.dev/start-of-week/^2.2.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^2.2.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@2.2.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-esnext/index.js</code></li>\n<li><code>start-of-week/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-browsers/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","_id":"start-of-week@2.2.0-next.1590082239.fe2890830ea2b6badcbf7b170bcfacc88d8c1383","_nodeVersion":"14.3.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-SGPCddMg8J0Q5jDhT6HEuJ4S+mjWPJ+UkHlVfMLUWzHLvXk2Tt/UyBdZFz0xbeGl+vkqsQqySAx7ALIdA5MCGQ==","shasum":"24eb1b83abf607bb8f94375f1e10b8979863c1bd","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-2.2.0-next.1590082239.fe2890830ea2b6badcbf7b170bcfacc88d8c1383.tgz","fileCount":11,"unpackedSize":24661,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexrrCCRA9TVsSAnZWagAAdq4QAJcHpSJ2Y6DE/idBWb7Q\nWvLA/SFio52ZL4X9atWez8ckf9cTTDO8tTaIp8KzcWt0+AAnSKoecGTn2iaW\ntRfwlbD48tIK1BJZbNetS4vQAExsS0RUIXre3Fd6brd3dEZAWCh2tmcq5SUy\nnF0hfz9pQjgve7Vaoc94cGpMXsUZZK2Mm/WIR9Cfj97d8zAP2klMj7OBFCE7\nLD1C67LtydLWLS51LUsWd/Jmbj6zYsI0cMEJc2aaeN4DJ9YKV2iAcDe7AKbT\nwXirt5ry1vSUvA4aZscNneN4ihAZWwsWNMvjr/rQfu/dD9Bf798aNvKNd9pE\nIOndk/2ZaLAheIqiTLiJpGxqZuUCsmR+yYKrUPlAN5pRTU8Ieus1K/ElOjY1\nQvTpu7PdsAbJGQCkSnB5PKi+etxIYz/2XzTSAUu1hN6b1AG68nlyJx6r775G\nbV3ZNa88/yUaGZuG8NnjJgD8Mh4qn9fhVUIMt2jcIJVG/mC+OmcBZn9dTtls\nLb0F+bfHaaD9UNNaY68/OOJJVUjn93gLFsBpBqns0m+Ta3ea/0u5YjqtSlAN\naILsoRprDyOoKAtlghPYSq2vE+phr3Q4GawRi0dzprOMftxDhhaj1VCRMiPn\nXmxYwj675GJRcqqogCU8b2LXu3Rlhm0LZmyU2jcJfRy2HKY8BfmFi2gkGKlQ\nm7Yc\r\n=dmyP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCg/a3a4mYKllsXcRyTVDHwTi+2JIGl+C9ckjNCvia/xQIgEYeA/T4cY12WZkJQg/J2osNbl5hj3NbWgDNA5CmMEyQ="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_2.2.0-next.1590082239.fe2890830ea2b6badcbf7b170bcfacc88d8c1383_1590082240921_0.2695950332793078"},"_hasShrinkwrap":false},"2.2.0":{"name":"start-of-week","version":"2.2.0","description":"Returns the start of the week based on the locale.","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["browser","daet","date","day","dom","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}}],"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","browser":"edition-browsers/index.js","module":"edition-browsers/index.js","devDependencies":{"@bevry/update-contributors":"^1.7.0","@typescript-eslint/eslint-plugin":"^2.34.0","@typescript-eslint/parser":"^2.34.0","assert-helpers":"^6.6.0","eslint":"^7.0.0","eslint-config-bevry":"^3.7.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.3.0","prettier":"^2.0.5","projectz":"^2.4.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.3","valid-directory":"^2.1.0","valid-module":"^1.2.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers && npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"fe2890830ea2b6badcbf7b170bcfacc88d8c1383","_id":"start-of-week@2.2.0","_nodeVersion":"14.3.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-Xf4i9CVBQa6BkPtPkedlQGwc3kUJiqGyQwTBkWiXUOAv9pVgE/8ATga+i8sJaRkS82RiUxEwsBlYflOGrFQR3g==","shasum":"6bab0d1d13ef3cc321b6854cfe1bfbec62e46617","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-2.2.0.tgz","fileCount":11,"unpackedSize":24604,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexrsVCRA9TVsSAnZWagAAOwcP/R2my7JdRNEMK8lEeV51\nBdRp1Rb5hxLrxnr0o64yciCIfBgnowNABl8+wkIZ0FlHeRK3FuX7rqOA77uF\ndxDgOYamL1Ui0HwCZf47F/Mbq4IAwuXVaUvfGoHRpr34qg5Aw+dPQpsf1hSO\nivpjaDZksUhWH4IaOBSHQmg3s+oHt0kp//GJVew2bYlRG7i/6GZr/9hM/5Nr\nEWOvLnsdqfyzj4UOP/iYQIuWamLXVmuHWF2C5J+gjgsBFlyxh6PR4ymYCaMT\nIl9dhYoYT44seHdcvfTVdKO7ZYjYZzsSAvjulzDX6A93erzYEuy/HOe53b4R\nVzl1cGT8XFsCA1Z7Y5TzQiwaL7yszYEnhYQ2xiy1DbCPDCRwMKYHqvDkSFiz\nksgIoJmw7XAduaziwpo6ogU7JmBQ/dWbnU7mdyig+28NO3J//iS1YO75mtLb\n9gz1WhbfXGHMiRkgS8fxv0do2S6KQkoVjFHLhN78WB7+k8D1ycAZGKB0Yrcz\njdOPf0EXVZnLgC0YGnUUq09nQRaO/jrCJu86cC5k4Mb5vTGYq9WS/i4yR/05\n049JnmLty3HUmOJHjR+RHWdws53vc8GWyW5Gt43KLYUB8xgqRCZQ4gON+EAB\n4LpoqYac7ux559NUeJPD6FhqVdXRBvF7zer93qh8xu6tGQ81ZdLn6d2dV1jG\nbu0s\r\n=iJ2i\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFZoIqV91qkLAOHjVDXKc6aZnRAayjltqvuISvBHvPe0AiEAjflau8lj2xXuxHVjJSwwnoZSKoRWQhpDExG+Udf/vjs="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_2.2.0_1590082322375_0.4673742144680042"},"_hasShrinkwrap":false},"2.3.0-next.1591786699.78fc3efe948454350698099c12f59cc8442c0fb5":{"name":"start-of-week","version":"2.3.0-next.1591786699.78fc3efe948454350698099c12f59cc8442c0fb5","description":"Returns the start of the week based on the locale.","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["browser","daet","date","day","dom","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"index.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","browser":"edition-browsers/index.js","module":"edition-browsers/index.js","deno":"edition-deno/index.ts","devDependencies":{"@bevry/update-contributors":"^1.8.0","@typescript-eslint/eslint-plugin":"^3.2.0","@typescript-eslint/parser":"^3.2.0","assert-helpers":"^6.7.0","eslint":"^7.2.0","eslint-config-bevry":"^3.8.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.4.0","make-deno-edition":"^0.2.2","prettier":"^2.0.5","projectz":"^2.6.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.2.0","valid-module":"^1.3.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"78fc3efe948454350698099c12f59cc8442c0fb5","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/start-of-week\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/start-of-week/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nReturns the start of the week based on the locale.\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/globals.html)\n\n```javascript\nimport startOfWeek from 'start-of-week'\nconsole.log(startOfWeek) // 0 (Sunday) if North American, otherwise 1 (Monday)\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Import: <code>import pkg from ('start-of-week')</code></li>\n<li>Require: <code>const pkg = require('start-of-week').default</code></li>\n</ul>\n\n<a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n``` typescript\nimport pkg from 'https://unpkg.com/start-of-week@^2.3.0/edition-deno/index.ts'\n```\n\n<a href=\"https://www.pika.dev/cdn\" title=\"100% Native ES Modules CDN\"><h3>pika</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.pika.dev/start-of-week/^2.3.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^2.3.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@2.3.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-esnext/index.js</code></li>\n<li><code>start-of-week/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-browsers/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-deno/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code made to be compatible with <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative to Node.js\">Deno</a></li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","_id":"start-of-week@2.3.0-next.1591786699.78fc3efe948454350698099c12f59cc8442c0fb5","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-uFtW8aKgGMGEbrOnh0UyAm5IOqytoE8uok1akWWiRef7KJSA2Ts0NMkvRhWt0XG/PHKpMasX9g+tUDz9CpXsAw==","shasum":"b995fe57c9e3733e4159e5066f8d71e79a96c35f","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-2.3.0-next.1591786699.78fc3efe948454350698099c12f59cc8442c0fb5.tgz","fileCount":12,"unpackedSize":26670,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4LzNCRA9TVsSAnZWagAAXiYP/RAKUWkN/ftuAALwNLSd\nSq3QbOtwgtcyzxv6st+QzjdFZndEyEDRbdAvTSi3DuEavIKkbYL+dH3j8A3F\naOZnI/Wq140BsiYRoSwthQ1rbEb+0xIMKQ2u26yOYFfcgh+J0uDKVtnsYdbf\nI36cbYN8Zd3U4mFLJdd1WWYNbn7Uh4cYUR0F454ZtFlaqBn0rCH94ftmXJMY\nJbDjK9DUD8qWKA9TXqH53IlAAzU4iELMPV7h3UYi24fr+6LJAzdGsZN2JtGT\nqdjGh8aSLR7WUd2PRIo1DtPlVvUbDKzbKKphq1SenJWesG1SRf5YP9g798RH\na7Ha1kMojWgzRTDL4fHc/Ckf3HK8poCKXas552aiqTzwOtPSCh/AilBPo842\nO3OhABQd3qHLuzm7oodH+zQBC/h8GpjYfM3JNMBxOw7xPNirBH56o3IKQWhk\nWlq/5ZFpjEMqUytGCRvrr7xHQvbNCx/kjWojPebrRD2KdWRmvOOTXGbehm5O\navdSx8IpxlKhl/zfr4mZeHyjA3P8Nq9YZvroVahM6+t1z7P3NvIR6gYapNJV\nLR8QnvLpTp5BRLVfxEwrqLxQbHK48CXlGkPVuvWjufCaf3UPDZlq7ZK1oNeT\njVkGfN59o2TEIolXRWfxJh49OzROkRuvwGzKiC7T76KHQhmuSyKQNQTcaY9w\ngSF8\r\n=87o/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDT2hd2wDV0GQeLqcB06VFprNDTE3UcPVsQoE3PZGL6fQIhAMBvEOGpT8aqIGOGSdy6KhyK+wqI9HA2akSII6XKEveI"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_2.3.0-next.1591786699.78fc3efe948454350698099c12f59cc8442c0fb5_1591786700805_0.5204400247091958"},"_hasShrinkwrap":false},"2.3.0":{"name":"start-of-week","version":"2.3.0","description":"Returns the start of the week based on the locale.","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["browser","daet","date","day","dom","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"index.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","browser":"edition-browsers/index.js","module":"edition-browsers/index.js","deno":"edition-deno/index.ts","devDependencies":{"@bevry/update-contributors":"^1.8.0","@typescript-eslint/eslint-plugin":"^3.2.0","@typescript-eslint/parser":"^3.2.0","assert-helpers":"^6.7.0","eslint":"^7.2.0","eslint-config-bevry":"^3.8.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.4.0","make-deno-edition":"^0.2.2","prettier":"^2.0.5","projectz":"^2.6.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.2.0","valid-module":"^1.3.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"78fc3efe948454350698099c12f59cc8442c0fb5","_id":"start-of-week@2.3.0","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-3be/2kzDbRcIwqyYjpiULaYs4faB+gEYFn3ArZejIlC4rIkeHjLu43zKuSlVQM8FP0fQh8GJqeEbbkHeJYevSQ==","shasum":"f2f14fe901ca96af32ba773d924d3b73c1301b7e","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-2.3.0.tgz","fileCount":12,"unpackedSize":26613,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4L0fCRA9TVsSAnZWagAAReUP/05/oqicx+ydDGq31j1C\nJn4irc2UOz04zhL+hq7P2brf79FBsL7IuSC9qz//igC+jphxfPfbSZRLz4qW\nbxO4zMBX2CBLTFQp3W7L3ftOST9HBsDOoYDvwNUnTJBGt0c5Cnsyta21WFsv\nia4GMMViY+P8aM4zDaXr214GAgle+Dwal69F2pbl7OFMJ1Iq9UMN3MgPZJno\nMGjW7bnuwnL7yP0rZNH9tYTKoomI8tsS0p9sptgGMucogHkoHY+OgBJGExE0\nvVbhJb7/T0HbFSZhs/x+m8E3uvso9t+WVaoJ0/Eic7JBvE68bd8bQMY7H+dh\npkYe4OAxacfndSmSR6cZdoiDlS4BDKeH/S1tttVG2clX95lrYmMyCxyYIuMI\nl/iC/LuJy4MV0KCckiJHI83RryAASrV09Oj5r5KkM2m1Dks5t0dy5LOVR4EJ\n3YPN8RE6vGnf3TEN3yXWfJi9XrmpKW/ywpyBE7+5YVBGFDdgqSIYQrlH3XY1\nfFMz7HkbmjvBlC5PC/eDwP9us9GeYyo5mod/2Ft+FT6zn4SMRzGWTMCdD341\nSam7UVS4ndqcg13B9+JVzIEaQKmdPOduNbQIoQHktY1/zr9aLAA8y2cgZX3y\ngvjJPVjqmTVc1Ne3zP6r1irs/N+q/ZhziWurRMudKCvN5u0EI8NlEUbWCATY\nKD88\r\n=73Fd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEhKrttqKmbB9e+of7Xd731S0xX6+Kd4xtVJ08cf0pYhAiEAu1a7RC3vOJ/FtKJuGAQayluD3etfvLoTVqJTW3pGhyQ="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_2.3.0_1591786783166_0.6249716671635093"},"_hasShrinkwrap":false},"2.4.0-next.1591802644.959978a1476ef42a907f179abb88a4e61cd4d414":{"name":"start-of-week","version":"2.4.0-next.1591802644.959978a1476ef42a907f179abb88a4e61cd4d414","description":"Returns the start of the week based on the locale.","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["browser","daet","date","day","dom","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"index.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","browser":"edition-browsers/index.js","module":"edition-browsers/index.js","deno":"edition-deno/index.ts","devDependencies":{"@bevry/update-contributors":"^1.9.0","@typescript-eslint/eslint-plugin":"^3.2.0","@typescript-eslint/parser":"^3.2.0","assert-helpers":"^6.8.0","eslint":"^7.2.0","eslint-config-bevry":"^3.9.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.5.0","make-deno-edition":"^0.3.0","prettier":"^2.0.5","projectz":"^2.7.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.3.0","valid-module":"^1.4.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"959978a1476ef42a907f179abb88a4e61cd4d414","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/start-of-week\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/start-of-week/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nReturns the start of the week based on the locale.\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/globals.html)\n\n```javascript\nimport startOfWeek from 'start-of-week'\nconsole.log(startOfWeek) // 0 (Sunday) if North American, otherwise 1 (Monday)\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Import: <code>import pkg from ('start-of-week')</code></li>\n<li>Require: <code>const pkg = require('start-of-week').default</code></li>\n</ul>\n\n<a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n``` typescript\nimport pkg from 'https://unpkg.com/start-of-week@^2.4.0/edition-deno/index.ts'\n```\n\n<a href=\"https://www.pika.dev/cdn\" title=\"100% Native ES Modules CDN\"><h3>pika</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.pika.dev/start-of-week/^2.4.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^2.4.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@2.4.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-esnext/index.js</code></li>\n<li><code>start-of-week/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-browsers/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-deno/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code made to be compatible with <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative to Node.js\">Deno</a></li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","_id":"start-of-week@2.4.0-next.1591802644.959978a1476ef42a907f179abb88a4e61cd4d414","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-WfRiFNc2qfpiUdF/M9TF8rGJ152uQpXwehBfWLuuI8xBQw5YNGjlReLIwlD0YIgTUt4I5FzPGQrhQi1Zxxi2fA==","shasum":"9fd98da766ea83c85b3901c2212dfd7b29b82330","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-2.4.0-next.1591802644.959978a1476ef42a907f179abb88a4e61cd4d414.tgz","fileCount":12,"unpackedSize":26864,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4PsVCRA9TVsSAnZWagAAfWIP/R6i15NmzJuoC9QfxrI6\npxtbKp2zsdpgk/EVbiy+AomMT+rpx4yPyJhhFGTChhFDhaQsUiWXSD+4GjZ2\nn/mcSTiGLCVcZly+cXIN5xCQjSJRaQs7994PnF+y25mTackyedu/8D6QR4On\npHa5vvpUGaYCiAF03mrFtMUL5vy55+Hs89F1aNr+UTXPiyvtB6sd16Ak5/aZ\nVPiKw2HY4ZrKLg/2U0cCcJkdN925yFJSpUKFUIMA0ZEouaMY8f/rIh3uhLiB\nAU6L82+ccYwkZf6CGw7ZYnNtkpwz8MktKMxAZbNGpwzPu7gUrghj9pdbZ398\nmlPe9Z7+RrOwcMb8EXnOgZueM04Oj6SoDSj2BM52lHrbZL7yBvrqW+qZ/szL\nFf4KJm58CbMuGaY41XXByY+YgCwfPpHeoL4bXRux/zNrjecdivxB1TGJ8iuU\ntoQ3SAKabGQqCzE3KCms2TadEywx6FED5AUnU3ZLTQoJMo8KdQiX1JEjbci9\n8PE/dI5aKNIWao3DK39rSexC1ufItgXgPa9uy4aasaHkWvGxiRLLyLDcC6dp\n3ztvcYDEpRvE/+c7aOJDL9ISslVd+Dv0HUfqDCkd4jjyNlD/seiEZMvZlfIb\nZm6o7GjWgPKz1sc+yRC2a+pBY6ttrmKYjiWhRvuLf6gmvMjF/SpjI6GXrsOv\njo58\r\n=KxrS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCCKLTajdbCITloPVBvs/DN9lKp35Cq2ec+GWqC8vzv7QIgFevUm9HK5+yqAMh968sTa7DshtoDZygkhn+Gcy33dok="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_2.4.0-next.1591802644.959978a1476ef42a907f179abb88a4e61cd4d414_1591802645437_0.3202041199251475"},"_hasShrinkwrap":false},"2.4.0":{"name":"start-of-week","version":"2.4.0","description":"Returns the start of the week based on the locale.","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["browser","daet","date","day","dom","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"index.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/index.js","browser":"edition-browsers/index.js","module":"edition-browsers/index.js","deno":"edition-deno/index.ts","devDependencies":{"@bevry/update-contributors":"^1.9.0","@typescript-eslint/eslint-plugin":"^3.2.0","@typescript-eslint/parser":"^3.2.0","assert-helpers":"^6.8.0","eslint":"^7.2.0","eslint-config-bevry":"^3.9.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.5.0","make-deno-edition":"^0.3.0","prettier":"^2.0.5","projectz":"^2.7.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.3.0","valid-module":"^1.4.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"959978a1476ef42a907f179abb88a4e61cd4d414","_id":"start-of-week@2.4.0","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-qBpD778+Uce0C1Lj6aw3oU9n+xrtnK7113MAh0smuM+wa5nL8g1vV0/O5IzNeUrAdGRQ0vM92RAIsAkr8kO+CQ==","shasum":"a354f1cad96fa03cecdd599838fd6d0243b2ca46","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-2.4.0.tgz","fileCount":12,"unpackedSize":26807,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4PtfCRA9TVsSAnZWagAAG0oQAJ4HDk/lxmWYTV/ki9VG\n5qC1E5FXCI9x04ESSdBlHT5nVNrnbq1/m/yt1rIU+GPv9z7/2dhzQ7ivgz/s\nNkGBtzz+G2R2DdD6ypRg/aeNNM9AsO1NQLLoe0UXmAz7/1qsGckPz3rAZFS8\nn1QPbIhtPaObAIR2nCJDnplQAI/rnv/2RnptIS09pnFG6+yTlIVNNfMi07E+\n9HmXPvS47sR6Qg5Kua861yBXUP2kpQy2G6IlkY9dUKXSe7QZAndVJlLgTi+h\nKvVwnmC75zLNd5oYeFmPkczuTbGpy0aG6VMoLB3/+hh5hcdPzZLTIPArBhlq\nCAfXDNvAGs+yDZzsDn36SOkKyp/DEngfIoN/adCQR11gO5NRq4IRZ2fv9X/v\nuVsH4hQaP/vKFVP7ygtDe/jFxbVE98aPf05EsrezGCPxbxZigAJhOSm2svp+\n+YzitGla5CX8382DOfdKDkBq0x0XpVDz9ZkiYStFyDz6D5fiNAGhrAcGL6ej\nCjrU0Jcs2Dk7ISoSOQZUVibn4QJGpozMYkz/Mi3wiY7XfAloiVYenHcfeu0i\nQ8St0N0dFSyTe1opmCyx0i0pCB2/RKpXqpTUrNPinVZde7Qe+YxyI+gbdwVe\nAeHpUjYcdpzJXREC9k//Fht0eI4wuIHWUVo/Ds9GipNAh43wxtpry2oQvBG1\nVNmT\r\n=Rh4L\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCujmncSUfkam5X0yk+er7+KCSkgkJZzBY8JiMHkAyFrwIgaxy70weAxaQqolcEtsGTbXjRaw5zq5t3aQlRHiscOTk="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_2.4.0_1591802718953_0.496479957370322"},"_hasShrinkwrap":false},"2.5.0-next.1592611681.a7f0d9fb90cf7ba761875ad8618f677410589d07":{"name":"start-of-week","version":"2.5.0-next.1592611681.a7f0d9fb90cf7ba761875ad8618f677410589d07","description":"Returns the start of the week based on the locale.","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["allow-env","browser","daet","date","day","dom","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"node.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}}],"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/node.js","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","dependencies":{"@bevry/update-contributors":"^1.10.0","@typescript-eslint/eslint-plugin":"^3.3.0","@typescript-eslint/parser":"^3.3.0","assert-helpers":"^6.10.0","eslint":"^7.3.0","eslint-config-bevry":"^3.10.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.5.0","make-deno-edition":"^0.7.0","prettier":"^2.0.5","projectz":"^2.7.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.4.0","valid-module":"^1.5.0"},"devDependencies":{"@bevry/update-contributors":"^1.10.0","@typescript-eslint/eslint-plugin":"^3.3.0","@typescript-eslint/parser":"^3.3.0","assert-helpers":"^6.10.0","eslint":"^7.3.0","eslint-config-bevry":"^3.10.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.5.0","make-deno-edition":"^0.7.0","prettier":"^2.0.5","projectz":"^2.7.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.4.0","valid-module":"^1.5.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"a7f0d9fb90cf7ba761875ad8618f677410589d07","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/start-of-week\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/start-of-week/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nReturns the start of the week based on the locale.\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/globals.html)\n\n```javascript\nimport startOfWeek from 'start-of-week'\nconsole.log(startOfWeek) // 0 (Sunday) if North American, otherwise 1 (Monday)\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Import: <code>import pkg from ('start-of-week')</code></li>\n<li>Require: <code>const pkg = require('start-of-week').default</code></li>\n</ul>\n\n<a href=\"https://www.pika.dev/cdn\" title=\"100% Native ES Modules CDN\"><h3>pika</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.pika.dev/start-of-week/^2.5.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^2.5.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@2.5.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-esnext/node.js</code></li>\n<li><code>start-of-week/edition-esnext/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-browsers/browser.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","_id":"start-of-week@2.5.0-next.1592611681.a7f0d9fb90cf7ba761875ad8618f677410589d07","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-dd0C0LeQbxCIYU4ikBOUw9qbmj4a9BEULyAdPK3loHh16+uNQuXccp8hevqg7Y2Or4ZJNV9JSo/6tOoPOPvQYA==","shasum":"e173840fbbb034425ceac2c60b2477e2c44636e0","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-2.5.0-next.1592611681.a7f0d9fb90cf7ba761875ad8618f677410589d07.tgz","fileCount":29,"unpackedSize":29256,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7VNjCRA9TVsSAnZWagAAnlIP/Ah4ZAoI6Irgv1pSajpQ\njuXkX+2zWONSzfQR/pPjZ+tz4q/Fu2b6/VqaN46WnrQucfXXPyDn+qSo6Nxk\nPFpbgF3DQFtYCF5oqyvS+3b6bd0iPGMTkhBslQgctiGS7rmUwQ2UqedGo+oo\nj6UaLMvliwzEf8tNCu/qCS3nepqJxfnkz9WfZo/BEsSSLfbH9zeDL0fvTcNd\nss2Y386uTGx1XthyFVJ8hzlsxGym5snyIUbc2XkS/f+qzgi/v05sPufloor6\nsE9VsnbYuS8ei5G/0Hngg/pPsNRQLKUu3kpPZpOkZob2g2d4vHuOF+jvb625\nwrwY76JeKhQapyIiyJAL8nlaU8zu87b/RcbamwSPaA9mDqPXpKYZ0pfw8PVV\n28gnV9lO3yliJjnBanLB6jnRFNqIk7gFLNadmH7ncZVC6j+38i/xWOlUuilC\nIm7PtoMANZ/jA/1Y4mtiiwHMZ3MgUbRucxE4p8Lnj4uYmVEPXGDrc09qlj7a\nVxGV2PSLaMaamVQzHB2sVHvKUOk35Wm84e/CoMXI0O1W0vEGmNv4Qfw0IQYa\ntUM2UvTT9MT8c/EsekZLH0Pa+Wn6EUaPEJTa1KUkyKnepyJ62v94EZ78d3CZ\nqMYgFjnrC/gyw1sLIiLX9+VbVHRqGy6zA5SxCtAy2uxI3Gx+QGWs96El/SZT\nQZjM\r\n=QnXo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC64BED4OYkDYFg+tr/Qr1xJEY7g8jS5lWpyk/3kvCy/wIhALMCys0nz4Ovz9APvsoAO4Q/9hWV2yt6t3Mz7VK0jTZ/"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_2.5.0-next.1592611681.a7f0d9fb90cf7ba761875ad8618f677410589d07_1592611683080_0.2489137750587005"},"_hasShrinkwrap":false},"2.5.0":{"name":"start-of-week","version":"2.5.0","description":"Returns the start of the week based on the locale.","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["allow-env","browser","daet","date","day","dom","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"node.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}}],"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/node.js","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","dependencies":{"@bevry/update-contributors":"^1.10.0","@typescript-eslint/eslint-plugin":"^3.3.0","@typescript-eslint/parser":"^3.3.0","assert-helpers":"^6.10.0","eslint":"^7.3.0","eslint-config-bevry":"^3.10.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.5.0","make-deno-edition":"^0.7.0","prettier":"^2.0.5","projectz":"^2.7.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.4.0","valid-module":"^1.5.0"},"devDependencies":{"@bevry/update-contributors":"^1.10.0","@typescript-eslint/eslint-plugin":"^3.3.0","@typescript-eslint/parser":"^3.3.0","assert-helpers":"^6.10.0","eslint":"^7.3.0","eslint-config-bevry":"^3.10.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.5.0","make-deno-edition":"^0.7.0","prettier":"^2.0.5","projectz":"^2.7.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.4.0","valid-module":"^1.5.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"a7f0d9fb90cf7ba761875ad8618f677410589d07","_id":"start-of-week@2.5.0","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-ZHvgkO7577avsaBhWfKHTv7is9nszMvntR/sRhqVv5Q8YiPR9uEX+rVcQbFxjTm4Q1D/cauibPqcmk7LJgmR/Q==","shasum":"b0f2d07fe1ffacbf5c5da94c1798ab11cdb3dae9","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-2.5.0.tgz","fileCount":29,"unpackedSize":29199,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7VOnCRA9TVsSAnZWagAArYwQAJnF5KLpZ3gQl0Js9Ln8\n6chGO+IVmR7VM/cdjWua3YC19zjzxFnPzkYP5701i8xrVxq0nZcWfBsYl3Ad\ngRH1R0QBiqGSWx5SM3OD36edyP/ptCTNYF2WCHgVY3/RnMKj5HsTc9qaNR/u\n+SEBuKN5FitWYQMyhULBNYnjyMe/yL5QMxwUg4FmEaYBv1B5wndS+Tr0rimY\nhPYuzjowgvZFvgqzNvfo6XjyG1a5KFGI63Y3/PVhjPT2bPjn2stRkndjdbro\nwf3fpTiVLo10JcOjVTZW84gir/11tBZPzWocFRqyx/WeC3WebAmCYFxARIyO\neiZ6tW6weo7gPvQ1VQG7z++ZbbG039XezjRGyfJogI7Ub2ZNyatdQ9OIqaKD\nVN1/pavTik24Uxd9Vm0IhMgFZWgnjOvrUd2A6BZk1TzxW1n2E+U6eJYXT/7g\nXIj0Zdh/fx8PQUgPST7ZUKP/kI0V1cNW7TAnWG6Yn5hT4VxeSpwkIo9LsiAC\nQv0GeeruUWc6h9UFzoZySI93qtTkKd3gN9xQZz/y8pczwz3FUITCu+7XtDyO\nyfmiACbaO2snID1ETRl5UYfm+iAWmzyqEdwQ0czgXrXR0ScUGY95CoAXP3Oi\nLXoOo81+nIfuO2D6tYd9RMfz3DKKf4raCHlmMbxDfgK0juEjQ7vBG4sxZeP9\nYtqj\r\n=RdxA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDPR73eBmqu+Td84pARB/B8tdZFVCoYA0tiy5qBELi4zQIhAMyCVMqiKSt+Alzxj2JJOmFAZ9khTFZR1RpMqSLlpyuj"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_2.5.0_1592611750464_0.478956774453003"},"_hasShrinkwrap":false},"2.6.0-next.1592646877.16bbc79adc2c3860cf57b6306466a6d0db714f75":{"name":"start-of-week","version":"2.6.0-next.1592646877.16bbc79adc2c3860cf57b6306466a6d0db714f75","description":"Returns the start of the week based on the locale.","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["allow-env","browser","daet","date","day","dom","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"node.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"node.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}}],"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/node.js","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","dependencies":{"@bevry/update-contributors":"^1.10.0","@typescript-eslint/eslint-plugin":"^3.3.0","@typescript-eslint/parser":"^3.3.0","assert-helpers":"^6.10.0","eslint":"^7.3.0","eslint-config-bevry":"^3.10.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.6.0","make-deno-edition":"^0.9.0","prettier":"^2.0.5","projectz":"^2.7.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.4.0","valid-module":"^1.6.0"},"devDependencies":{"@bevry/update-contributors":"^1.10.0","@typescript-eslint/eslint-plugin":"^3.3.0","@typescript-eslint/parser":"^3.3.0","assert-helpers":"^6.10.0","eslint":"^7.3.0","eslint-config-bevry":"^3.10.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.6.0","make-deno-edition":"^0.9.0","prettier":"^2.0.5","projectz":"^2.7.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.4.0","valid-module":"^1.6.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"16bbc79adc2c3860cf57b6306466a6d0db714f75","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/start-of-week\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/start-of-week/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nReturns the start of the week based on the locale.\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/globals.html)\n\n```javascript\nimport startOfWeek from 'start-of-week'\nconsole.log(startOfWeek) // 0 (Sunday) if North American, otherwise 1 (Monday)\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Import: <code>import pkg from ('start-of-week')</code></li>\n<li>Require: <code>const pkg = require('start-of-week').default</code></li>\n</ul>\n\n<a href=\"https://www.pika.dev/cdn\" title=\"100% Native ES Modules CDN\"><h3>pika</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.pika.dev/start-of-week/^2.6.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^2.6.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@2.6.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/node.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-esnext/node.js</code></li>\n<li><code>start-of-week/edition-esnext/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-browsers/browser.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","_id":"start-of-week@2.6.0-next.1592646877.16bbc79adc2c3860cf57b6306466a6d0db714f75","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-q1YREy4Z6fyuV115UzsObgmuPnZ9m+EFQY1pRhZgX+Zvd9gIuSMMgKEAq55SKGemM7lKbX6lWO5UXG51c0Ebzg==","shasum":"b0580e5cbe1d96e673a3738299116d40c9b82c6a","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-2.6.0-next.1592646877.16bbc79adc2c3860cf57b6306466a6d0db714f75.tgz","fileCount":29,"unpackedSize":29448,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7dzfCRA9TVsSAnZWagAA/dMP/0npNpcLu1jvrrwwKo/j\nk5PrZq+XedgPRqmVJ8qnd3SLv6Lsu1Elyt80npkkA63wYt0Mou2H0kQ1CdRy\nssWjSROj5oUoyCadHROL0jNCvDttbwIHM5sliZzKe7jzV6OkA4rrWlIu1nN6\nem73C03UZo27hEjn3k2q1FUIyBB0CwUaDJB6Mcv/jSphRbrtrYad38sq7RiF\nx4UZkuvLs6wbysVA5+RHGUeoB8gKjU7mBVfrrufWXx+94fFt1qs2CXro2gbN\ncLzSQDDxgKkc8LqiiflDnFFCp0NXc1lVDl7c1Ufw9GIAiz674K4ZIt4+eUNq\nWSRrHkjiiZkowRGX+WEoOQb5FgegO8MjjaUs/nprCsJ6vfGcc3DjIiW57sF2\n582Os+TGZuxTGyQ0MsbvC+G9cAA17pEm1C5gZ3qn4OQ/RjLH3ywlR2IjfYZM\nCZiXD+ZOWPFzRlkIb70PBhfdlluPjgs783daKFi9xf6NDbsx/8wNLyOnk095\nj6jbRIkr087WJcFD0EYtBR80I4+/VSDvkLC8/5R4BqxaYylCtkDtrkXeHksn\nqPhP7rd/nb2pFZzwzBIbLekYg5c1mGKpLMK4jaujJ2PCjL4Qm639Pr3Cogd7\np7m1UDmDq5//bcAqeMHKzzFlu18G3RE/8YyRwZLS7jE/3mAFUFcJ2wiKfRty\ncUCC\r\n=BsUH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDNCuFJBpPB1y7wvp2A7jpq7jjdKO1AdE4jBrQV3hWtIAIgCVISQ1MdZuTY0Vcd0uCR4Nkpn6sFpjD3+SquOGdep74="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_2.6.0-next.1592646877.16bbc79adc2c3860cf57b6306466a6d0db714f75_1592646879028_0.5338749266547782"},"_hasShrinkwrap":false},"2.6.0":{"name":"start-of-week","version":"2.6.0","description":"Returns the start of the week based on the locale.","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["allow-env","browser","daet","date","day","dom","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"node.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"node.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}}],"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/node.js","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","dependencies":{"@bevry/update-contributors":"^1.10.0","@typescript-eslint/eslint-plugin":"^3.3.0","@typescript-eslint/parser":"^3.3.0","assert-helpers":"^6.10.0","eslint":"^7.3.0","eslint-config-bevry":"^3.10.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.6.0","make-deno-edition":"^0.9.0","prettier":"^2.0.5","projectz":"^2.7.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.4.0","valid-module":"^1.6.0"},"devDependencies":{"@bevry/update-contributors":"^1.10.0","@typescript-eslint/eslint-plugin":"^3.3.0","@typescript-eslint/parser":"^3.3.0","assert-helpers":"^6.10.0","eslint":"^7.3.0","eslint-config-bevry":"^3.10.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.6.0","make-deno-edition":"^0.9.0","prettier":"^2.0.5","projectz":"^2.7.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.4.0","valid-module":"^1.6.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"16bbc79adc2c3860cf57b6306466a6d0db714f75","_id":"start-of-week@2.6.0","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-qd8Nuqf83zh3VQMAf/uGQC0/QXBor/AxU5if52AY7kiGWYWGqk+zAo6963I90Sb8eJqx03B0Gv2uVjRM0G1vHw==","shasum":"74711387b56dca795a3267eff1ae37d70e141449","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-2.6.0.tgz","fileCount":29,"unpackedSize":29391,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7d0vCRA9TVsSAnZWagAA+v0P/R0mylImBO+Pb/OKJR8e\nS1gOrVTzQurmxvHnqKVxdGzpeE9wv3afBrfYQrLIDJxZa9XagXe37oa63+6T\nddrJsm1uFLRz0lHfoYop5SRDNfg/P58zhMHymfuxbz9RDurfqS+EcLyEHmV/\nqkZa8CL94TlOTmk2FW5gJ7pmHDzE8snUvcon3Re5yYqROcgA2QhWhAZp4TE/\noV/2GAz2yzy6zRDwQpfH2b/FwEIfp+SrtnkyH5S0CV4qGWkIuudqb0GUJgYm\nvYP0If6FrfGSm5VjgwHifgZ1MM/L1Mvi88mSkwJzW+lQiY/3L5AA6vZvo5Rt\nGqTCj/MMKb+pkw2U8IeaLCMNs5mgA1/znhTeA5FjVCdVgCb9w+pAYq2i0mva\nUnjM7uMsFDk4fvNgdwKv6YIwJHtHGRrDFk1R++CwVNld/QB+hKAw1mW/QhAT\nYC99FIya8MmPsyWSCPgYtaksiBlkp8SJPGD87gc0V+iYG9gtxnVbg/XXOPWX\nbMFY0LNmRG+JZmpMcqDNEETXiZG8jzPFJcd7lZcfVgAdGJ1RtKEsjIWeoAKw\nt74zFtD/LIO1+pl+l4yroQjLWsg/N0wohoYmRtqqcbL130DdhUW2rXoKJlOG\n0FltVSKGtBoXCcgfe5/pDhunhDGfQqvPk1VxyqM+FWpy+ve18GPQKG/E4+8j\njC8u\r\n=CFoQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEZTwWFA7r0V0MP+GtrfgmhCVjVdhxgotiaURPK5mHxwAiBxHI8DsWZf7G3lri3sm7jFPfBQj0L4+aji3e8Zerh7rA=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_2.6.0_1592646958819_0.37287252901543844"},"_hasShrinkwrap":false},"2.7.0-next.1592729367.ee9af199fee1f19ab36904d7f3317967fa0c9cd7":{"name":"start-of-week","version":"2.7.0-next.1592729367.ee9af199fee1f19ab36904d7f3317967fa0c9cd7","description":"Returns the start of the week based on the locale.","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["allow-env","browser","daet","date","day","dom","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"node.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"node.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}}],"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/node.js","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","devDependencies":{"@bevry/update-contributors":"1.9.0","@typescript-eslint/eslint-plugin":"^3.3.0","@typescript-eslint/parser":"^3.3.0","assert-helpers":"^6.8.0","eslint":"^7.3.0","eslint-config-bevry":"^3.8.0","eslint-config-prettier":"^6.7.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.7.0","make-deno-edition":"^0.9.1","prettier":"^2.0.5","projectz":"^2.9.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"2.2.0","valid-module":"1.4.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"yarn run our:compile:deno && yarn run our:compile:edition-browsers && yarn run our:compile:edition-esnext && yarn run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"yarn run our:meta:contributors && yarn run our:meta:docs && yarn run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"yarn run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"yarn run our:release:prepare && yarn run our:release:check-changelog && yarn run our:release:check-dirty && yarn run our:release:tag && yarn run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"yarn run our:clean && yarn run our:compile && yarn run our:test && yarn run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"yarn run our:setup:install","our:setup:install":"/usr/local/bin/yarn install --ignore-engines","our:test":"yarn run our:verify && yarn test","our:verify":"yarn run our:verify:directory && yarn run our:verify:eslint && yarn run our:verify:module && yarn run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"ee9af199fee1f19ab36904d7f3317967fa0c9cd7","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/start-of-week\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/start-of-week/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nReturns the start of the week based on the locale.\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/globals.html)\n\n```javascript\nimport startOfWeek from 'start-of-week'\nconsole.log(startOfWeek) // 0 (Sunday) if North American, otherwise 1 (Monday)\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Import: <code>import pkg from ('start-of-week')</code></li>\n<li>Require: <code>const pkg = require('start-of-week').default</code></li>\n</ul>\n\n<a href=\"https://www.pika.dev/cdn\" title=\"100% Native ES Modules CDN\"><h3>pika</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.pika.dev/start-of-week/^2.7.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^2.7.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@2.7.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/node.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-esnext/node.js</code></li>\n<li><code>start-of-week/edition-esnext/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-browsers/browser.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","_id":"start-of-week@2.7.0-next.1592729367.ee9af199fee1f19ab36904d7f3317967fa0c9cd7","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-yFwKx+fhWAdAmnPMwOZdE7gj9hlPerGNmDN9oFNXXP6LJ5nmC/SAIfxrYcHdpP0X+0pxgZSDl3VC3s4975oE5Q==","shasum":"1a2363107a3b5e28cc6c047b577490a7d24ffb00","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-2.7.0-next.1592729367.ee9af199fee1f19ab36904d7f3317967fa0c9cd7.tgz","fileCount":29,"unpackedSize":29104,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7x8ZCRA9TVsSAnZWagAArfsP/3HRyjkZwFTQrNvKBqFW\n1/QNLuz36CMqzN5cyJZB2jU8Zks1ISjCIMyvlZe6WfobQXRHzbF+zEao7co5\nIP6pcwllzam6CF/IDvx4ocigSl7YDlP2f9RZFkiMz2cHzvy9r7E3UOF0aScY\nqN8WpgVTpxTaqAeKbYuIKnCTtJL/Fo/7AjQanZfKF72oYsNKhvhEB1LmVM6P\nnhKjuo3KS7fQyFwFu3770cd2nE7yLjpio9KkxBTha62T6ntut+ZJDfUHvkFq\npb2eLcZ83x1/r2aO6T0IkkUGrhyC4SX9yLKSJrSXJS8aZlzyeTaVXD9jDNHi\nVRnKh9zjYsw7rhFLIwkqc27iB1/4ueDh2VKwGHNKMxrsxpisrkQ8wzj6bmwA\nO71eIn8DyulQslRyn+gRrMjAujNiLZMa1nZNsPyX/ifMG5grPijyt/Mmo0oK\nMli7ZlcMLt1gjaX2YRr5L5ysrNh46i0KBrsgd4i33EpFE1LZWINufIvmjKpE\n3COO8bUnyDSfST/dezWFIec8/zcGYIEi8w7G2pe+x81ZOAbzBP0ZLGPFjAqa\nZHthKrz7dlrZLImpL3/sLxDv/mzvfDMe8Q2T/q2BQTA0v0YO+9iveacgV6GE\nCFsvG7NeS4uSyL1AlBi2JzIuZU2MlKOmYy9KfJBH5a0KjrTGrU10zBBb4WRI\n8jRG\r\n=sBuI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD2lMTkKeedEx64DoDrBWkzC0Ha5/ToQ/US9re7824ZBQIgAvfDsTpCiC8W5vIkyKFbyXcsyIoAQjK/1tQqbryRtzI="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_2.7.0-next.1592729367.ee9af199fee1f19ab36904d7f3317967fa0c9cd7_1592729369169_0.8236273743095168"},"_hasShrinkwrap":false},"2.7.0":{"name":"start-of-week","version":"2.7.0","description":"Returns the start of the week based on the locale.","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["allow-env","browser","daet","date","day","dom","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"node.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"node.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}}],"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/node.js","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","devDependencies":{"@bevry/update-contributors":"1.9.0","@typescript-eslint/eslint-plugin":"^3.3.0","@typescript-eslint/parser":"^3.3.0","assert-helpers":"^6.8.0","eslint":"^7.3.0","eslint-config-bevry":"^3.8.0","eslint-config-prettier":"^6.7.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.7.0","make-deno-edition":"^0.9.1","prettier":"^2.0.5","projectz":"^2.9.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"2.2.0","valid-module":"1.4.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"yarn run our:compile:deno && yarn run our:compile:edition-browsers && yarn run our:compile:edition-esnext && yarn run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"yarn run our:meta:contributors && yarn run our:meta:docs && yarn run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"yarn run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"yarn run our:release:prepare && yarn run our:release:check-changelog && yarn run our:release:check-dirty && yarn run our:release:tag && yarn run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"yarn run our:clean && yarn run our:compile && yarn run our:test && yarn run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"yarn run our:setup:install","our:setup:install":"/usr/local/bin/yarn install --ignore-engines","our:test":"yarn run our:verify && yarn test","our:verify":"yarn run our:verify:directory && yarn run our:verify:eslint && yarn run our:verify:module && yarn run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"ee9af199fee1f19ab36904d7f3317967fa0c9cd7","_id":"start-of-week@2.7.0","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-QqQ9TNcSJbZyRWDXdir1LmelQP3NQfmjpuY7MlEIRMbs4uw7ONHyCUtuPwwgpLpC2mQv9PdOhZ99ImNxBpnneg==","shasum":"ee5d1820d0a4d1be77d6887c5366743d7c9ab666","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-2.7.0.tgz","fileCount":29,"unpackedSize":29047,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7x9nCRA9TVsSAnZWagAANeMP/jw5ZAMeNn+RX3olu9zZ\noBkLpQh/0wlpZL3Q+HiZ5p47Iw2M8ZPAYFo3cs+DZUnIQ5ffSR12ufDgbiaL\nCUX9N6zkJZNun9VMC4Hr22yYllgPV8tk+0ItKUDXYEGEItcLzYWel0eKYXkq\ncwoHU6CoXuQ072g9BZ4XpxvSULUnPncs3m5s0mjTZB8/cKijdQ8b1T9U0lDR\n81jONi+yGG7ana5PWfKQqJnw7OdOV7r35zhj7klBaEIG5n3th5RAPfSQchiR\nRIv14rZJPXo3hW4lNwtpT+d+isU5GQnHVbTn8Tt6ixN1PEnH2c1/at7JVn+Q\nYMdms4hbYhm2MEfweMwP1bKTnNdSfLBDeECxlNNpJfCEPr8CerrGLLR4MB++\nCvA7tPXDyMGlG8+w4h1QD5KxKN3OHdzV0EzO3zwCNpJYtlcLjJLJZQhiW9c4\nDzv/5ZHEYaOa8L654PFnhejrXMWRl24PMiK33x0my8o4fW2hAkv/eimekkNg\nnNmMFuraIH4ff2hz5NOFWBVMho+oXkmcdFpD1ipSo3nmCVFBGTyVLtgfIr/i\nVLALdEN1bAdWo+K4pER4ZqaqHZrDeoXGnu20B+GsD2N/NKDcygfytg5Ua7vH\nBDrqpz88O2PpMoCgqGxeUpdaOSNgV/pRBCeg1dXiWEMwdAWqgGJUC+mTo99o\n1Zun\r\n=Ragh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD/24FrIJa3e+Wi8rXti0tmkpw2u8bM5NMJDiCJFiHB9gIgE0qPEuuXRTwhC/a/sXmFhiTKPTklXxNK24X3kIYnmvY="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_2.7.0_1592729446639_0.8096726790066291"},"_hasShrinkwrap":false},"2.8.0-next.1592764918.7f4479276d515c81ddba300037d6cb02e033feda":{"name":"start-of-week","version":"2.8.0-next.1592764918.7f4479276d515c81ddba300037d6cb02e033feda","description":"Returns the start of the week based on the locale.","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["allow-env","browser","daet","date","day","dom","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"node.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"node.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}}],"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/node.js","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","devDependencies":{"@bevry/update-contributors":"^1.9.0","@typescript-eslint/eslint-plugin":"^3.3.0","@typescript-eslint/parser":"^3.3.0","assert-helpers":"^6.8.0","eslint":"^7.3.0","eslint-config-bevry":"^3.8.0","eslint-config-prettier":"^6.7.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.7.0","make-deno-edition":"^0.9.1","prettier":"^2.0.5","projectz":"^2.9.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.5.0","valid-module":"^1.6.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"yarn run our:compile:deno && yarn run our:compile:edition-browsers && yarn run our:compile:edition-esnext && yarn run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"yarn run our:meta:contributors && yarn run our:meta:docs && yarn run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"yarn run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"yarn run our:release:prepare && yarn run our:release:check-changelog && yarn run our:release:check-dirty && yarn run our:release:tag && yarn run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"yarn run our:clean && yarn run our:compile && yarn run our:test && yarn run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"yarn run our:setup:install","our:setup:install":"/usr/local/bin/yarn install --ignore-engines","our:test":"yarn run our:verify && yarn test","our:verify":"yarn run our:verify:directory && yarn run our:verify:eslint && yarn run our:verify:module && yarn run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"7f4479276d515c81ddba300037d6cb02e033feda","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/start-of-week\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/start-of-week/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nReturns the start of the week based on the locale.\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/globals.html)\n\n```javascript\nimport startOfWeek from 'start-of-week'\nconsole.log(startOfWeek) // 0 (Sunday) if North American, otherwise 1 (Monday)\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Import: <code>import pkg from ('start-of-week')</code></li>\n<li>Require: <code>const pkg = require('start-of-week').default</code></li>\n</ul>\n\n<a href=\"https://www.pika.dev/cdn\" title=\"100% Native ES Modules CDN\"><h3>pika</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.pika.dev/start-of-week/^2.8.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^2.8.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@2.8.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/node.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-esnext/node.js</code></li>\n<li><code>start-of-week/edition-esnext/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-browsers/browser.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","_id":"start-of-week@2.8.0-next.1592764918.7f4479276d515c81ddba300037d6cb02e033feda","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-Z9yjGyMtdETNbqB5oXQlgzfhvf4iI2iGn/YNxm+luVfMHGEgWzLNx6xfVnyBH6o2qMdabxDwIw06IsSFYK2IJw==","shasum":"8bc64450dc6727ce5f83904fb62bd4d42791e9c7","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-2.8.0-next.1592764918.7f4479276d515c81ddba300037d6cb02e033feda.tgz","fileCount":29,"unpackedSize":29301,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe76n4CRA9TVsSAnZWagAA6qMP/0MjKWdtMsfuEMJdy8f1\nO0zu0oJEPgduVBhh6YqHoWNCl2vhs0nYcvGEJBuRp/2XHSFg/mXmUDjPOW6M\nimTnetjV+iVAr7RWG7SyaAXwzftR1Q8mdRKxDE0wBzH7L6xHW5Mm9Lbg1stV\nFpzh/qbU3SwiDB1AlQ6scb6R0Guk338TwR5lNM6huQ0CZxYzfIVfo8j+ubb8\n/kQoTe6+fxaO5Fqal6VyKj2SwrBfQSHdPo8DlILfXCxzwzXV4YK7UQ83TbN+\nZMZhQRy8AX1bFByGtr6z0HSjUUWFUOsHlrK+BugVz70zZLnv9zcAVAS92PEq\nVYLH6QjJcwrxRrfojTn9rMUki1e/cuOxlxo3hdHL5D5V7slQvqegiZh5uXf8\nLtuD5Y2m5AlLQM3Rwf+L7Ly2dCSDxKI9J9pDBA9BFerMoTSFOQHOATMdxjHR\nbGzP+lNbFSrBp41lVAcau+KS+5fFuaMlHEP8wa3K14qGYprT22fT4vPr5tkc\nd3fNBIwWykvND5lEzbCC5ymTL02J4K05yYla/QKrUbmH4zDyf/wxFrpjyTSe\nUJrAT4QiVTISRK2ID2NjcZKxW7PSIHLj6/nlJgrVFvaR/Ojpx+a72ptUG4fi\nSUgYYMJ3wTl7jEUdyfL8oUOUfFp5KXEIbiz/ZRiO8vK/hJPtHj7jS2lX9Mpz\nFpzg\r\n=6P4b\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA4+qWfd/CEpRIfrigKp8OfKZFmqo0tAeXTG2fo6T5O2AiAdd/bRQnsLQNmH3tiWQPKqsQMzL4HZ0FodeVPhkIHCxg=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_2.8.0-next.1592764918.7f4479276d515c81ddba300037d6cb02e033feda_1592764920189_0.4218833832793665"},"_hasShrinkwrap":false},"2.8.0":{"name":"start-of-week","version":"2.8.0","description":"Returns the start of the week based on the locale.","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["allow-env","browser","daet","date","day","dom","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"node.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"node.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}}],"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/node.js","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","devDependencies":{"@bevry/update-contributors":"^1.9.0","@typescript-eslint/eslint-plugin":"^3.3.0","@typescript-eslint/parser":"^3.3.0","assert-helpers":"^6.8.0","eslint":"^7.3.0","eslint-config-bevry":"^3.8.0","eslint-config-prettier":"^6.7.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.7.0","make-deno-edition":"^0.9.1","prettier":"^2.0.5","projectz":"^2.9.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.5.0","valid-module":"^1.6.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"yarn run our:compile:deno && yarn run our:compile:edition-browsers && yarn run our:compile:edition-esnext && yarn run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"yarn run our:meta:contributors && yarn run our:meta:docs && yarn run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"yarn run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"yarn run our:release:prepare && yarn run our:release:check-changelog && yarn run our:release:check-dirty && yarn run our:release:tag && yarn run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"yarn run our:clean && yarn run our:compile && yarn run our:test && yarn run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"yarn run our:setup:install","our:setup:install":"/usr/local/bin/yarn install --ignore-engines","our:test":"yarn run our:verify && yarn test","our:verify":"yarn run our:verify:directory && yarn run our:verify:eslint && yarn run our:verify:module && yarn run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"7f4479276d515c81ddba300037d6cb02e033feda","_id":"start-of-week@2.8.0","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-Vt3PfiyCi0X4TVyX3HW3rf887EzJffy5o9t3FTIC4xV7fdmbf1LVLk7NcJZz3y7gkHkl7l+uPeYDtdQ5NriCZw==","shasum":"45f25a07c6a334cee8f4a6280220d069e323544a","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-2.8.0.tgz","fileCount":29,"unpackedSize":29244,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe76pGCRA9TVsSAnZWagAASGYP/iDwegQtyFEeYt58961r\nlLCG/0AJNkGRuuD6FT6XVNlgcqmVB0OAhxTj1OgJQa+2vGngQwj9+/cW3XX+\n44CpR+CEDGz7aZGP6yRrPwHk1eTP7vy7mV7AeXMqZ3mtxv9JAl+drFefpkX8\nFYOcVCJrUiSEKV3q3LEdKcv+4NzClM0Nc4RoFTmJ/yVn8PSJa6z6/7p1UWsK\nM9n48VVtCHhm3iXMsJV9l0ulOyIcEo6XQbqdPuuFfy6ln++LCXi3dOB8QDSq\nb8NzCqLvx4zYqBGAIfAAJQ5XBEHM1N40kiY+qJjBjFXobyh2JU3VzF65zmeg\nbk/QtH6PhDYbhjAVka8GGBI5ZjaxWc8wL0tI2YoVTOKzcGp3FA7l1Y33kLOh\nSW+u0FcSOl8gScl8pjJNfvFXQRjC7EI0f9eerWbmGyzCpeRvekTthpCEWx3K\nD/Sap9Nac8PIJ1UYOQp/wpjCGP7WVuOsbe0S0LKqVbJrM7Xt+3ZUF0dd3S25\noXUoDaJL0Pc1OT5mSle0XWqf5TzPCcJe1dLb6TnGjJVjUyJ/imCVf0unaPbH\nK8sElYEeJ1QOXPWJgZn7WACGklOqv6t74+V4l15AtV7Dq39uH2T3juU8RmrW\nygZBmDlaeQoz7eCWtHkFxijUBdJmQudg74GKjmvzUit3MFXqnv1QC4z9KR2B\nxBDU\r\n=Kchq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCRH/gU5G4NGHh0yG225H5ZItB19WQ1cMhlOOGPVE3qqQIgMCwrokYGidyx5jha1lqa4Cxi16DVC528+WDqpLLw6B0="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_2.8.0_1592764997830_0.6136504694022162"},"_hasShrinkwrap":false},"3.0.0-next.1593050801.7f5adf28eb26de9e76e32eb28b1c1cdcd7c37c56":{"name":"start-of-week","version":"3.0.0-next.1593050801.7f5adf28eb26de9e76e32eb28b1c1cdcd7c37c56","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"node.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/node.js","deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","devDependencies":{"@bevry/update-contributors":"^1.12.0","@typescript-eslint/eslint-plugin":"^3.4.0","@typescript-eslint/parser":"^3.4.0","assert-helpers":"^6.13.0","eslint":"^7.3.1","eslint-config-bevry":"^3.12.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.7.0","make-deno-edition":"^0.13.0","prettier":"^2.0.5","projectz":"^2.10.1","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.5.0","valid-module":"^1.7.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"yarn run our:compile:deno && yarn run our:compile:edition-browsers && yarn run our:compile:edition-esnext && yarn run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"yarn run our:meta:contributors && yarn run our:meta:docs && yarn run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"yarn run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"yarn run our:release:prepare && yarn run our:release:check-changelog && yarn run our:release:check-dirty && yarn run our:release:tag && yarn run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"yarn run our:clean && yarn run our:compile && yarn run our:test && yarn run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"yarn run our:setup:install","our:setup:install":"/usr/local/bin/yarn install --ignore-engines","our:test":"yarn run our:verify && yarn test","our:verify":"yarn run our:verify:directory && yarn run our:verify:eslint && yarn run our:verify:module && yarn run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"7f5adf28eb26de9e76e32eb28b1c1cdcd7c37c56","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/start-of-week\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/start-of-week/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nTake a locale and return its start of the week (0 = Sunday, 1 = Monday)\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/globals.html)\n\n```javascript\nimport getSW from 'start-of-week'\nconsole.log(getSW()) // 0 (Sunday) if user is in North American, otherwise 1 (Monday)\nconsole.log(getSW('')) // 1\nconsole.log(getSW('en_AU')) // 1\nconsole.log(getSW('en_US')) // 0\nconsole.log(getSW('en_CA')) // 0\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Import: <code>import pkg from ('start-of-week')</code></li>\n<li>Require: <code>const pkg = require('start-of-week').default</code></li>\n</ul>\n\n<a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n``` typescript\nimport pkg from 'https://unpkg.com/start-of-week@^3.0.0/edition-deno/deno.ts'\n```\n\n<a href=\"https://www.pika.dev/cdn\" title=\"100% Native ES Modules CDN\"><h3>pika</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.pika.dev/start-of-week/^3.0.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^3.0.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@3.0.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-esnext/node.js</code></li>\n<li><code>start-of-week/edition-esnext/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-browsers/browser.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-deno/deno.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code made to be compatible with <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative to Node.js\">Deno</a></li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","_id":"start-of-week@3.0.0-next.1593050801.7f5adf28eb26de9e76e32eb28b1c1cdcd7c37c56","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-Re7NB7pUccwI8wR0014ydVGQjjnuDhmaxKwDF+CBdOxCvES2LMbeeppoR3dE7SOTjOwqyZCNvhzS3hnU2xsSfQ==","shasum":"8e685b7041d4732a4b799ff2064961b12d410257","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-3.0.0-next.1593050801.7f5adf28eb26de9e76e32eb28b1c1cdcd7c37c56.tgz","fileCount":29,"unpackedSize":32411,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe9AazCRA9TVsSAnZWagAAeEsP/3n4gs1LI85m+ROViyKy\n2NcIIZ7cnQll/imaE+vJ3QVdrj1hQSnvD2zEtIx6PmQwP8jaP7zsQBCLk/B4\nYDhm+f8aTA1k1VdrbwbFc5uGHUVNhyU2zi1DScqF9ih42aVCj/Gm9w1pY6fm\nFjkInrMhAfEsvzoh7rqiZFRSX3rDjngsCvSFJDlgVb9UyZBBnlSKTLkVVYYQ\nVxJr82Q8mylam5Uqp5RzR5NQQBe/bUYi/kW6lToK68aKRAsOfdV4Kd7X117r\ngsNOcvPmp3niI8mzcwE6+iTW/7eUJwGh9Ym7Q0NMwNQuSMq9Pv0Bgd0eoIan\nyybENopqpxzdT3U2dOnX3T0OUSltDm02JDiVyswwX71mmB3ywGSFqqOie4mc\nAwU7DUJ6jNu0xWfk8D8XYdkoUU40Aes4KdtdGNGYg93RAAdRje28SAOawSK6\nq2D6kdEu7pRoumcp6C+DUYfjvqtS2Ww+9ppuAjo+eDQqC14NS9djnaa7EIQh\nxtF03mtte8AmcirkhUsdU3I5vQAzM7wUkL9fEXzsCiX4dSa5P3WeV+5g30ks\n+Wq4ta8yu++oa0eQj7NXuHFsad8EwPKocCboZQXMKZGE0rPTqEaZz4d30X4q\n0b6TNlGzXJn0vXy4/DZTRHNBbX6sms+dDufswq5B4N1S7O7Qssp3nXV0y40C\nbaks\r\n=GWoZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDVpqVSRXk0IDYIZlcqc2dMVyNIW0I6XtnuhnH7y8ZxpAIgUSKIbu+QKnmAumiwW8POxdKofHNvncHYVET864qyPnQ="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_3.0.0-next.1593050801.7f5adf28eb26de9e76e32eb28b1c1cdcd7c37c56_1593050803179_0.6460130508372839"},"_hasShrinkwrap":false},"3.0.0":{"name":"start-of-week","version":"3.0.0","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"node.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/node.js","deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","devDependencies":{"@bevry/update-contributors":"^1.12.0","@typescript-eslint/eslint-plugin":"^3.4.0","@typescript-eslint/parser":"^3.4.0","assert-helpers":"^6.13.0","eslint":"^7.3.1","eslint-config-bevry":"^3.12.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.7.0","make-deno-edition":"^0.13.0","prettier":"^2.0.5","projectz":"^2.10.1","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.5.0","valid-module":"^1.7.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"yarn run our:compile:deno && yarn run our:compile:edition-browsers && yarn run our:compile:edition-esnext && yarn run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"yarn run our:meta:contributors && yarn run our:meta:docs && yarn run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"yarn run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"yarn run our:release:prepare && yarn run our:release:check-changelog && yarn run our:release:check-dirty && yarn run our:release:tag && yarn run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"yarn run our:clean && yarn run our:compile && yarn run our:test && yarn run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"yarn run our:setup:install","our:setup:install":"/usr/local/bin/yarn install --ignore-engines","our:test":"yarn run our:verify && yarn test","our:verify":"yarn run our:verify:directory && yarn run our:verify:eslint && yarn run our:verify:module && yarn run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"7f5adf28eb26de9e76e32eb28b1c1cdcd7c37c56","_id":"start-of-week@3.0.0","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-9sf1dU1WiVwOxb2Ub7dkDVV69S+TtKntCPyb+rL1e2vLEHnrYd7hAViHLyzKD/ABxFEQo5pOFFr/zyrXLrLVqQ==","shasum":"48682cebac2b87ed601fc8a9ac5c6b96595c9cac","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-3.0.0.tgz","fileCount":29,"unpackedSize":32354,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe9Ab0CRA9TVsSAnZWagAAxnYP/1K/w/Z5KLwhclWIu/yP\nvvy0MGA/RgZNZyAZUGd5L0Wy0S/+NzQAKXH7UCsV///2R3SBLQFV3WKVZq2M\nq7q9v5ezfoihLzbORuN+mzmx7Xctxg1pqh5MLQrExbdGLxcencAd9MbaTfG5\nv2XfdqkG7c5nbHAsNxwPUIQQqlDKP+oTakVsgq3ZiOFNXaQGcSF5rDn4H05e\ndkw+xuSb2GOkUlziRjcsVuDbcJfsR4ONLWwT6yNv+r46jsg3gJRzCA4kkWNB\nZ9p25gqUVUhBnKv0JMsgLwa+Y2ZTn3pEnUQEMt/NY7oGEh9iKB3ETYs+BC6c\ngn2j4g8LAW2juBBRNWVZTfciPfCArrtm4bAKA4036VDOI65H3z1GjpMndqd3\nQkbVEzOitj76jh8VOiHBqaV1cS5jEsYMw2AETRta8mSmqgqMVT9z+lKZLo6U\nRqF43u8bbkZY+hDvL3ZC/GomyXpLX5Dzj8PPFkCuBCKLGomyhSk1BQQg5OKh\npt/Abj85vU7qvwB9haHG5LVbmHdeRx6ScJ62dD36Qmlau1Q9UKyEXl6ABRRU\nojqt0aAki3eD+JZ+mnyJzKk2OUIQwGGUofVIy5DlSqhI1MgrrIW/QG9LEku0\nmO9V6ZxNsztjzLa7SL00NZoAl+RT2KsDHPacOS6EOYIzozt3issc6Co5A+4g\nUqZS\r\n=00Rp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHLA1h4pHLSMSSPAyCFBUp3P5wETcyZ2wNjGbaBIkppCAiEA5p4h/5H6XWkcDa9WfEffb9OD4+K+P2V86KeJcnN6Lx0="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_3.0.0_1593050868274_0.3346162002348385"},"_hasShrinkwrap":false},"3.1.0-next.1593060730.40a0267daecadec1f8744b1f3b8202d904ff63b4":{"name":"start-of-week","version":"3.1.0-next.1593060730.40a0267daecadec1f8744b1f3b8202d904ff63b4","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"node.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"node.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/node.js","deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","devDependencies":{"@bevry/update-contributors":"^1.12.0","@typescript-eslint/eslint-plugin":"^3.4.0","@typescript-eslint/parser":"^3.4.0","assert-helpers":"^6.13.0","eslint":"^7.3.1","eslint-config-bevry":"^3.13.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.8.0","make-deno-edition":"^0.14.0","prettier":"^2.0.5","projectz":"^2.11.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.5.0","valid-module":"^1.7.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"yarn run our:compile:deno && yarn run our:compile:edition-browsers && yarn run our:compile:edition-esnext && yarn run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"yarn run our:meta:contributors && yarn run our:meta:docs && yarn run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"yarn run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"yarn run our:release:prepare && yarn run our:release:check-changelog && yarn run our:release:check-dirty && yarn run our:release:tag && yarn run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"yarn run our:clean && yarn run our:compile && yarn run our:test && yarn run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"yarn run our:setup:install","our:setup:install":"/usr/local/bin/yarn install --ignore-engines","our:test":"yarn run our:verify && yarn test","our:verify":"yarn run our:verify:directory && yarn run our:verify:eslint && yarn run our:verify:module && yarn run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"40a0267daecadec1f8744b1f3b8202d904ff63b4","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/start-of-week\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/start-of-week/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nTake a locale and return its start of the week (0 = Sunday, 1 = Monday)\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/globals.html)\n\n```javascript\nimport getSW from 'start-of-week'\nconsole.log(getSW()) // 0 (Sunday) if user is in North American, otherwise 1 (Monday)\nconsole.log(getSW('')) // 1\nconsole.log(getSW('en_AU')) // 1\nconsole.log(getSW('en_US')) // 0\nconsole.log(getSW('en_CA')) // 0\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Import: <code>import pkg from ('start-of-week')</code></li>\n<li>Require: <code>const pkg = require('start-of-week').default</code></li>\n</ul>\n\n<a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n``` typescript\nimport pkg from 'https://unpkg.com/start-of-week@^3.1.0/edition-deno/deno.ts'\n```\n\n<a href=\"https://www.pika.dev/cdn\" title=\"100% Native ES Modules CDN\"><h3>pika</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.pika.dev/start-of-week/^3.1.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^3.1.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@3.1.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/node.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-esnext/node.js</code></li>\n<li><code>start-of-week/edition-esnext/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-browsers/browser.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-deno/deno.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code made to be compatible with <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative to Node.js\">Deno</a></li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","_id":"start-of-week@3.1.0-next.1593060730.40a0267daecadec1f8744b1f3b8202d904ff63b4","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-OXfm18tdZs1ZCAMtwTie7S5JlG+vO5JujC8lzAh7OfEvACnD6M+2WB1DjYhUGeV+1KRNZaX2PXNWZaTmjWY8PA==","shasum":"102bb6f37d919db8083d38645a1d84ba4ee9756f","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-3.1.0-next.1593060730.40a0267daecadec1f8744b1f3b8202d904ff63b4.tgz","fileCount":29,"unpackedSize":32603,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe9C18CRA9TVsSAnZWagAA148P+wW79Qw+0Gz/m9pu7Y5f\nhIy4EWZ2eUXGHj1ensjD+4KERyEPQ2s67MSrpfEsEEE/52ViQqkv+vgXQStW\nK/uXU13vT6A52AUfXKR4NjI2HHdWlUvoXuO4O3pOXGdcholsvcQdKfICwekC\nvRIYOT6dvEcBuOxvhCigqBhntCmXWUXZkIDXHc31igDujgrB/An4T2UV5uh3\nlTuoCQHpQZEue2aiInrrn+zcCUV3SzJd2mQWoS6MhcVESzJXL7AP7EAEeYjV\nvr0vfcLXLspwV4f8zG1mdMx4KQYjAPWLTeSAPlEfqagJ8NI/NaaW9iQKO9MW\nsEC31IIb+zd67VutRD21tuXIWRx1Wb0FX8gDw2TGCxRrqqJjR6ikjiFEhA8e\nc7Yx5MuspKzKVMlaYvjiOUdaJEEXBXZalx3b123RyS4uDpHLWofhQiLYe4aV\nrMAVbq0cCYKMIx1QRMvMui2l8fLAcjSdt7xP43+ICMuhvsCFKAJNZTKgIkAs\ns7bmSanhia186BCJ7zKa6adelTnYOpjz+dir7OkkVa6SSNl2iFSJDPuZpKuF\n9BWqVcHdyHHLJbpJxLX2fSrXRnQkggr+O37nT10UzH6dOzrah7VtI9/yzSIq\nXl7TElU3ptHw0LqrInlEjVSDuMpYoyAqOYqhDrdj/jPGh9ZNDyX7MZVGWHDp\ndlVl\r\n=Uw3d\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA7cKTgPuCrzWc9iSCwIdJGiRqx8U978Q2Hwm82gecacAiAZdDctY7+hsW/T/EvQb2Bk0CGPX3K7cmbCcLGKYFjLCg=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_3.1.0-next.1593060730.40a0267daecadec1f8744b1f3b8202d904ff63b4_1593060731864_0.6874189733758571"},"_hasShrinkwrap":false},"3.1.0":{"name":"start-of-week","version":"3.1.0","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"node.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"node.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"./compiled-types/","type":"commonjs","main":"edition-esnext/node.js","deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","devDependencies":{"@bevry/update-contributors":"^1.12.0","@typescript-eslint/eslint-plugin":"^3.4.0","@typescript-eslint/parser":"^3.4.0","assert-helpers":"^6.13.0","eslint":"^7.3.1","eslint-config-bevry":"^3.13.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.8.0","make-deno-edition":"^0.14.0","prettier":"^2.0.5","projectz":"^2.11.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.5.0","valid-module":"^1.7.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"yarn run our:compile:deno && yarn run our:compile:edition-browsers && yarn run our:compile:edition-esnext && yarn run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"yarn run our:meta:contributors && yarn run our:meta:docs && yarn run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"yarn run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"yarn run our:release:prepare && yarn run our:release:check-changelog && yarn run our:release:check-dirty && yarn run our:release:tag && yarn run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"yarn run our:clean && yarn run our:compile && yarn run our:test && yarn run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"yarn run our:setup:install","our:setup:install":"/usr/local/bin/yarn install --ignore-engines","our:test":"yarn run our:verify && yarn test","our:verify":"yarn run our:verify:directory && yarn run our:verify:eslint && yarn run our:verify:module && yarn run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"40a0267daecadec1f8744b1f3b8202d904ff63b4","_id":"start-of-week@3.1.0","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-CkERMyv1eGEEPJIscWdgAfVHL20BVo9wmzRpZ8oV+wcu5u7yGtenAp88EqlOKXOGOYGrjZpdriLKedNI/xL/2Q==","shasum":"60516dbcc188c0c427ec47c95a5ad9a5c0195608","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-3.1.0.tgz","fileCount":29,"unpackedSize":32546,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe9C3eCRA9TVsSAnZWagAAIOAQAJFbwYNlHJgBT+c4IKxq\na5dEslKo5yJSNhpWsC8tzzE6CH9bDAs/x6JoCak9m+6j0UyikOIdShqiywjM\n2tTQsIJ5R7t4C4HfgKpZIgRsZXptpnitNAXGD13nCwt8YFduy9SHOKS4P2b0\nZbQ7+SN73ExmAcsVnAlzkrjWAfIPLIQMzNbWJG2znzGaXAVPhmEq3tQl8IoS\nzzLslEshL3kPrtn7QqtYW1k42J0YJ2lG9DCqpt08FAtOzE09Uj8ejK3k/Ee0\n5L22I2CAJJa3/IjPQ1hjvmpts1gwhZ5CEYGKugLpfbce36m9tIXztv0sNmiG\nEElMyScE6UvlX1KdhXp3i0T2zSSfST/7sYmL3V0U3NVbohs7TXRY6KQolfsQ\nWeCeuAEDx/N1IU/i2nzqDagYnnvPf1LenunlCKptl+nJl5z/qF2hGm7PGMCO\nNDScC7I7iwiiXBy3Ft4WlVU0Lnw6oNoWWhjxO2SzQjOlABoCTuKUopDviIge\nbhmZBtdClpaUY+TvP1fmG3zLg/6zbnQrDDT3L6meo+mVifpuIgA51ZKLsAhC\npY2pIkL9OQrFX6C06tr/1kCR7u+th6TL6YfH4Knd2Kqop0XtoWVgq6qQzZ7G\nbqyH7tCwjvAmOQT4LOBaa1/UUS8tpa/r6pC+loNuzANmqNzRzo75kbHw9O0N\nMV6X\r\n=yQh7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHlF1lbYEtLQFvV8MiVZKTAVRehbmlz3hGQSBx6Et39+AiBMNXTaIKAsvRRu1DXTXHDxgrT3aTDT4EctHLbrggvudg=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_3.1.0_1593060830343_0.28811780225633177"},"_hasShrinkwrap":false},"3.2.0-next.1595451713.84a1bc9d55a4922542dffd47914868246a9ff66b":{"name":"start-of-week","version":"3.2.0-next.1595451713.84a1bc9d55a4922542dffd47914868246a9ff66b","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"node.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-esnext","entry":"node.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js with Import for modules","directory":"edition-node-esm","entry":"node.js","tags":["javascript","import"],"engines":{"node":true,"browsers":false}},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"./compiled-types/","type":"module","main":"edition-esnext/node.js","exports":{"node":{"import":"./edition-node-esm/node.js","require":"./edition-esnext/node.js"},"browser":{"import":"./edition-browsers/browser.js"}},"deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","devDependencies":{"@bevry/update-contributors":"^1.13.0","@typescript-eslint/eslint-plugin":"^3.7.0","@typescript-eslint/parser":"^3.7.0","assert-helpers":"^6.18.0","eslint":"^7.5.0","eslint-config-bevry":"^3.17.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.9.0","make-deno-edition":"^0.15.0","prettier":"^2.0.5","projectz":"^2.12.0","surge":"^0.21.6","typedoc":"^0.17.8","typescript":"^3.9.7","valid-directory":"^2.6.0","valid-module":"^1.10.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-esnext && npm run our:compile:edition-node-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-node-esm":"tsc --module ESNext --target ESNext --outDir ./edition-node-esm --project tsconfig.json && ( test ! -d edition-node-esm/source || ( mv edition-node-esm/source edition-temp && rm -Rf edition-node-esm && mv edition-temp edition-node-esm ) ) && echo '{\"type\": \"module\"}' > edition-node-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"84a1bc9d55a4922542dffd47914868246a9ff66b","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/start-of-week\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/start-of-week/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nTake a locale and return its start of the week (0 = Sunday, 1 = Monday)\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/globals.html)\n\n```javascript\nimport getSW from 'start-of-week'\nconsole.log(getSW()) // 0 (Sunday) if user is in North American, otherwise 1 (Monday)\nconsole.log(getSW('')) // 1\nconsole.log(getSW('en_AU')) // 1\nconsole.log(getSW('en_US')) // 0\nconsole.log(getSW('en_CA')) // 0\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Import: <code>import pkg from ('start-of-week')</code></li>\n<li>Require: <code>const pkg = require('start-of-week').default</code></li>\n</ul>\n\n<a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n``` typescript\nimport pkg from 'https://unpkg.com/start-of-week@^3.2.0/edition-deno/deno.ts'\n```\n\n<a href=\"https://www.pika.dev/cdn\" title=\"100% Native ES Modules CDN\"><h3>pika</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.pika.dev/start-of-week/^3.2.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^3.2.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@3.2.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/node.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-esnext/node.js</code></li>\n<li><code>start-of-week/edition-esnext/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-browsers/browser.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-node-esm/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-deno/deno.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code made to be compatible with <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative to Node.js\">Deno</a></li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","_id":"start-of-week@3.2.0-next.1595451713.84a1bc9d55a4922542dffd47914868246a9ff66b","_nodeVersion":"14.6.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-d34ujd2wuKcekQAcv0sRNa9BCQp6qlzVB97aqb++SAaEiuUXQwtvo/0LKD6yySfmt5wqan4notk/A+dmBgoOLw==","shasum":"45f521d55a9d7b130e7db73653c917812e084a4e","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-3.2.0-next.1595451713.84a1bc9d55a4922542dffd47914868246a9ff66b.tgz","fileCount":35,"unpackedSize":35672,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGKlDCRA9TVsSAnZWagAASBQP/20IRjZEgrqLLxQ7y1ez\nUzCNTX8Pr5PENx6rc2Lf0Avmkw3PSTh1xzXur/A8vXeJK/K/xRuGQlXaPIPZ\nwbVcojgvD2seqJYNHNjk7/XpZESsdAb34tzLeAoxMzsZDSMXB1tG4GRFpWF3\nzMjaJRlw5nOLOu5SMUWBYgd3Kf379/X6Jotii9AJ/apsAB5UwmGbsP9s1/dw\neL4HGIhL1rS4BbEiImsj6Uyn1M/FGGMUqT9iC5Sm4NYh20FQxzXht2MnXiiP\ne5+IxecRPzwhLtdpMFL4O/g1MOMmpJmWQ//cDCDzzSZTY7JzXaoRWjht2fQj\nJEZeqG7FPMAU0KT/ancIwbKbvw+JZiz2W+JbcE6EclxZjEeb9MJbWTFpGts/\n/FcjjJ9ZuqNbPgZm4EyYZrfqkzEoQanmGdcifkHq77SUF01JXvhCoeUklnJj\n7SDQfZNh0wE79N6jVo8Y8/jifWkN9CuE9sofFWCS+BU+NL6adahA2bm/wlj/\nFrh5i3GNte4Q+rGIzfJy72C7Pk5u02IO96eciKWE3pNlZhCeDt3DCw2q+G15\n7mnZeWS9yAVhsO9LQdOS9H/6CujzM3qqk1L1v88UKuUpWjUJJyNYxr4yqzwf\n6ZFSxYpLNMb1XrmBhz7N1M5e1CZqpfY2SSqBaZnOcHGjAlr66zRMku40UTXW\n8UJG\r\n=WQE5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICESEX+YnhDHYKwWvrZi/fgM75GLN+ScV1HTyXFHxAcEAiASwEXek71wj6PfqL4aHO/FQxH0wT0beWRKj8kKamu2Zw=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_3.2.0-next.1595451713.84a1bc9d55a4922542dffd47914868246a9ff66b_1595451715047_0.047710766923122705"},"_hasShrinkwrap":false},"3.2.0":{"name":"start-of-week","version":"3.2.0","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"node.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-esnext","entry":"node.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js with Import for modules","directory":"edition-node-esm","entry":"node.js","tags":["javascript","import"],"engines":{"node":true,"browsers":false}},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"./compiled-types/","type":"module","main":"edition-esnext/node.js","exports":{"node":{"import":"./edition-node-esm/node.js","require":"./edition-esnext/node.js"},"browser":{"import":"./edition-browsers/browser.js"}},"deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","devDependencies":{"@bevry/update-contributors":"^1.13.0","@typescript-eslint/eslint-plugin":"^3.7.0","@typescript-eslint/parser":"^3.7.0","assert-helpers":"^6.18.0","eslint":"^7.5.0","eslint-config-bevry":"^3.17.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.9.0","make-deno-edition":"^0.15.0","prettier":"^2.0.5","projectz":"^2.12.0","surge":"^0.21.6","typedoc":"^0.17.8","typescript":"^3.9.7","valid-directory":"^2.6.0","valid-module":"^1.10.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-esnext && npm run our:compile:edition-node-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-node-esm":"tsc --module ESNext --target ESNext --outDir ./edition-node-esm --project tsconfig.json && ( test ! -d edition-node-esm/source || ( mv edition-node-esm/source edition-temp && rm -Rf edition-node-esm && mv edition-temp edition-node-esm ) ) && echo '{\"type\": \"module\"}' > edition-node-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"84a1bc9d55a4922542dffd47914868246a9ff66b","_id":"start-of-week@3.2.0","_nodeVersion":"14.6.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-Y+P2Kj8ysWpQSPXxKemtUJPIfc7R/ssFbgcPtAYDEeSN21B2mkaDSBbgxmseBf9bAyQiOxYueE4UdMHAXFQjPQ==","shasum":"49adb0ba233b90050875af24f7586355f3e64b38","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-3.2.0.tgz","fileCount":35,"unpackedSize":35615,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGKmbCRA9TVsSAnZWagAA1IkP/ivbmwOY8792YhP7WU5R\nD12hxVoGA2eaJ7c3P9xU5SWVvrxYF5ZXQyzIDzBNko0shbH0bG8B8bUpEKEn\ntrp6FJ4gxh8Kp8vCdaTZPRJE9oT+z26gi11RSMuoxpngSvcLr/Od+XF6jnAv\nVyWViiUY1Wvn7YUew/r8ydLmxbG1Fo7fIG8HpO3yF+Xpur/KwPmOYNKkCsrW\nx4kOXBSZjtz6Wq/0pA+6IHRBy6g5WhuPvXM+fDPtyaXZTxpj/2a/ZXRb3TWI\nXMGkPqK65U6XvQ0sQlRyMxTmfpYkM/2w5tyAlQx69xZo5BQ0OSqhGHOatOYq\ntmq1gUGZBkCetV8xVKYdByrZ+2XE/+X5bRPPjdk8eKWHueFTmOYHruHuaSNU\nTpgp8o/eyRMZXPYkwz4ehyZ4qaBoa+Y/MDnF9cFcOi/II68HPntmfXrQze9V\nrzcWZyfZ1o4EpAxJBSvv6tFEaoBklx8v41jP3NauVULo7dAc7w64rpzOO3Ab\ntkj49aH+PG7nAZLxEGiQJVOkjATqDiMTGAzY23wKI6299B3hHdiVBQuyuXqh\nI7WtZwhhAjp4j6ECCqaGCPuohexQORRgm3yPPVLfADb71dps2pR4CPK8tZm6\ngAJKen9X7bgW2jz+7sERxbFIwJQ5/AutXiy4OM8kMphakVcf6cA+q4XfXZkg\njBfE\r\n=OAAR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA60ykiEeISI0+2ixD/Asw+F1mZn+rTeSPDHPzFPZa/nAiAgpl5RxXWUneb6vvJ8xmd7jFeyFwxaHfNDrQj8PxI6bg=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_3.2.0_1595451802480_0.8786721479439785"},"_hasShrinkwrap":false},"3.3.0-next.1596523709.4369376e2828749b4debb622f7d9c920177acc2f":{"name":"start-of-week","version":"3.3.0-next.1596523709.4369376e2828749b4debb622f7d9c920177acc2f","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"node.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-esnext","entry":"node.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js with Import for modules","directory":"edition-node-esm","entry":"node.js","tags":["javascript","import"],"engines":{"node":true,"browsers":false}},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"./compiled-types/","type":"module","main":"edition-esnext/node.js","exports":{"node":{"import":"./edition-node-esm/node.js","require":"./edition-esnext/node.js"},"browser":{"import":"./edition-browsers/browser.js"}},"deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","devDependencies":{"@bevry/update-contributors":"^1.14.0","@typescript-eslint/eslint-plugin":"^3.8.0","@typescript-eslint/parser":"^3.8.0","assert-helpers":"^6.19.0","eslint":"^7.6.0","eslint-config-bevry":"^3.18.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.10.0","make-deno-edition":"^0.15.0","prettier":"^2.0.5","projectz":"^2.13.0","surge":"^0.21.6","typedoc":"^0.17.8","typescript":"^3.9.7","valid-directory":"^2.7.0","valid-module":"^1.11.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-esnext && npm run our:compile:edition-node-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-node-esm":"tsc --module ESNext --target ESNext --outDir ./edition-node-esm --project tsconfig.json && ( test ! -d edition-node-esm/source || ( mv edition-node-esm/source edition-temp && rm -Rf edition-node-esm && mv edition-temp edition-node-esm ) ) && echo '{\"type\": \"module\"}' > edition-node-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"4369376e2828749b4debb622f7d9c920177acc2f","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/start-of-week\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/start-of-week/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nTake a locale and return its start of the week (0 = Sunday, 1 = Monday)\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/globals.html)\n\n```javascript\nimport getSW from 'start-of-week'\nconsole.log(getSW()) // 0 (Sunday) if user is in North American, otherwise 1 (Monday)\nconsole.log(getSW('')) // 1\nconsole.log(getSW('en_AU')) // 1\nconsole.log(getSW('en_US')) // 0\nconsole.log(getSW('en_CA')) // 0\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Import: <code>import pkg from ('start-of-week')</code></li>\n<li>Require: <code>const pkg = require('start-of-week').default</code></li>\n</ul>\n\n<a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n``` typescript\nimport pkg from 'https://unpkg.com/start-of-week@^3.3.0/edition-deno/deno.ts'\n```\n\n<a href=\"https://www.pika.dev/cdn\" title=\"100% Native ES Modules CDN\"><h3>pika</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.pika.dev/start-of-week/^3.3.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^3.3.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@3.3.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/node.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-esnext/node.js</code></li>\n<li><code>start-of-week/edition-esnext/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-browsers/browser.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-node-esm/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-deno/deno.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code made to be compatible with <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative to Node.js\">Deno</a></li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","_id":"start-of-week@3.3.0-next.1596523709.4369376e2828749b4debb622f7d9c920177acc2f","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-elD11OD5vPwb6mH7ZhcBAhNrw5eqR3uz9YIiYw0HLRpVsHEmRQJashJROvY5pVFnGFI5i2FNu0qKzQW3BruS0Q==","shasum":"86c98adc77e6461d17c9a6d8f0dbc96cf7cef62e","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-3.3.0-next.1596523709.4369376e2828749b4debb622f7d9c920177acc2f.tgz","fileCount":35,"unpackedSize":35868,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfKQS+CRA9TVsSAnZWagAA+pAP/iGxJ7YbrXCYwWkcTrcu\nzt4ZuX24IMjmkpPcA+WTqE79kpgrth8oOWr719jWpEoCOxVYj15yf+7y8pcF\n66I0YV1ptGuWJC0YMXGJ36Z6UcqhJyyk19AkQ01TPvflV8Wi806bFg5lwoAZ\nFoRWvJ0k2hTKWvtq3x3bX0hCjBkL8O7qxGZU9T/TofMgi0kzP/sgaecD0ss1\nAUJAz9mW7ylXNKkJqCpWBLPRbFzx91HQdjqdeucteE5ia0NXfrwhHR5TUx+G\njLmf+jnAv7G8gbJcUN5a6ztqO/BQrkVFV5B+5cn9oj6U4gCHg+FK57xAt+Yo\nCc7WIu/sVXu5Z8lN+kbtQFn3/Ps3qhOnRIWR35DDmTnN1eIni6xYxOfZExWi\n8GUR0NGsUb1eg++sg1jQfNYLNWKzGK2PKEAE9+SLYDqZVGutiwZHlUdzzzx9\njebIyq+85Co5F58f58nKTWDEpMnhuOzCj5qfiwXKdn0zsSoumqPqSrZC3p3B\nsp5vcUugFwEKp3vZgZomCE57JidBwMCsSMwCoHadmXFm86H5jKkuMcmdJkrv\n+EjefSi7JoXcZWqWjA5d8TIEuCBfv6eI6PAbfwImAwxh3Td4EJz0Oe1npCnO\nwvnKO+u/cBVBEF63Gwm6ps7o0i+VjoiuhvOJ8LgT+NoffR9Jwf5wC/aGrStL\ncb2/\r\n=tGwy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDgxmumhliQnCruPqzsUeApBj+tmNDR+YTA8ZxfbEiHIgIgeW1UybDEusObHVG66HEHYsF0hLX1t9dqLl0k5uxsHSo="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_3.3.0-next.1596523709.4369376e2828749b4debb622f7d9c920177acc2f_1596523710419_0.7579536870067456"},"_hasShrinkwrap":false},"3.3.0":{"name":"start-of-week","version":"3.3.0","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"node.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-esnext","entry":"node.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js with Import for modules","directory":"edition-node-esm","entry":"node.js","tags":["javascript","import"],"engines":{"node":true,"browsers":false}},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"./compiled-types/","type":"module","main":"edition-esnext/node.js","exports":{"node":{"import":"./edition-node-esm/node.js","require":"./edition-esnext/node.js"},"browser":{"import":"./edition-browsers/browser.js"}},"deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","devDependencies":{"@bevry/update-contributors":"^1.14.0","@typescript-eslint/eslint-plugin":"^3.8.0","@typescript-eslint/parser":"^3.8.0","assert-helpers":"^6.19.0","eslint":"^7.6.0","eslint-config-bevry":"^3.18.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.10.0","make-deno-edition":"^0.15.0","prettier":"^2.0.5","projectz":"^2.13.0","surge":"^0.21.6","typedoc":"^0.17.8","typescript":"^3.9.7","valid-directory":"^2.7.0","valid-module":"^1.11.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-esnext && npm run our:compile:edition-node-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-node-esm":"tsc --module ESNext --target ESNext --outDir ./edition-node-esm --project tsconfig.json && ( test ! -d edition-node-esm/source || ( mv edition-node-esm/source edition-temp && rm -Rf edition-node-esm && mv edition-temp edition-node-esm ) ) && echo '{\"type\": \"module\"}' > edition-node-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"4369376e2828749b4debb622f7d9c920177acc2f","_id":"start-of-week@3.3.0","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-IqLb/qaA2MZ18IqdB4XyJvq10VNqJIhEU/Rb9BK0RG3bFE2ULDy1JKfZXEA2aqJJcs0/GEbED5kLBtclzfuXJw==","shasum":"ed4706e0ab4d7145947b02bb956684a0276265f9","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-3.3.0.tgz","fileCount":35,"unpackedSize":35811,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfKQUNCRA9TVsSAnZWagAA3dQP/itqwgChds4p/WdlqIea\noRXvGaPIfkjZEerYDBdJVWi104kwhaW+4c4QH+BfqRizsEMgoW6eM2+GeCyf\ncCNeX674H4tme8xXA8/1RlSQ+gAuwKkChilJBNWQ/t7veSMaV/U8RS/y/jSD\nxijzLipeqqAAJPWYTSaYTAonJdR7BLdUOgyRnImTXz3gyS2i9S8YV6GXJ9aJ\nTbVOcYXELN7aERPIqqxtGoQARyQfvelpUwxf8Fr7E1CSPgZVufD8MXTqvwA1\nyiVsGs8CTho3QeEOAbkVcToI54oPPr7iidh5WPNHDXPBfoSm5U+pyxHqZvgv\n2oLZGtAIsEED3zVDmLd0JAfKSGI5qPFgMq5ZbYE/DAgD1nGfj3DLXdiYgnp8\nEo1XIO2AsOdzrxMnKfBW+QNaJS3Ze6IHHh3oa88er+wRaB2PNWS/fAjXJRy0\nMZkU0ZQbKUWMjs+eKloTutfI0jKT5y/AkgFhDbdH59zJwgJVYavf1tNlv/qm\nag1kamjqOHjFWYsNaMRgDh51UQGGqOFx/qazRzOJLg6aN73P2FmuDJL+BjZw\n7ygMLGl4UiiDwksq1ptUl26V5MyC+kN0NijalD2HqI95JhQbkePKWcOkawZ9\nykG5lV+uGp5Eu0EyAEvsvVFM+zmpxyF0lb/VgG2qEZfoQB9ej0OooJ/Jb19g\nroYo\r\n=BYbW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDMhATPowQqLzIiyZaXkXHEl7/8gPXQ58bzejrysSV0MAIhAPkxDkct2Zku/OVVv+cZ725sYFVfv+w12j0In7Y9g27e"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_3.3.0_1596523788659_0.5201076268182014"},"_hasShrinkwrap":false},"3.4.0-next.1597702086.ace5a5142f757305a5a3f4c6f0e54da992792ad3":{"name":"start-of-week","version":"3.4.0-next.1597702086.ace5a5142f757305a5a3f4c6f0e54da992792ad3","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"node.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-esnext","entry":"node.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js with Import for modules","directory":"edition-node-esm","entry":"node.js","tags":["javascript","import"],"engines":{"node":true,"browsers":false}},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"./compiled-types/","type":"module","main":"edition-esnext/node.js","exports":{"node":{"import":"./edition-node-esm/node.js","require":"./edition-esnext/node.js"},"browser":{"import":"./edition-browsers/browser.js"}},"deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","devDependencies":{"@bevry/update-contributors":"^1.15.0","@typescript-eslint/eslint-plugin":"^3.9.1","@typescript-eslint/parser":"^3.9.1","assert-helpers":"^6.19.0","eslint":"^7.7.0","eslint-config-bevry":"^3.19.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.11.0","make-deno-edition":"^1.0.0","prettier":"^2.0.5","projectz":"^2.15.0","surge":"^0.21.6","typedoc":"^0.18.0","typescript":"^3.9.7","valid-directory":"^3.0.0","valid-module":"^1.12.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-esnext && npm run our:compile:edition-node-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-node-esm":"tsc --module ESNext --target ESNext --outDir ./edition-node-esm --project tsconfig.json && ( test ! -d edition-node-esm/source || ( mv edition-node-esm/source edition-temp && rm -Rf edition-node-esm && mv edition-temp edition-node-esm ) ) && echo '{\"type\": \"module\"}' > edition-node-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"ace5a5142f757305a5a3f4c6f0e54da992792ad3","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/start-of-week\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/start-of-week/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nTake a locale and return its start of the week (0 = Sunday, 1 = Monday)\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/globals.html)\n\n```javascript\nimport getSW from 'start-of-week'\nconsole.log(getSW()) // 0 (Sunday) if user is in North American, otherwise 1 (Monday)\nconsole.log(getSW('')) // 1\nconsole.log(getSW('en_AU')) // 1\nconsole.log(getSW('en_US')) // 0\nconsole.log(getSW('en_CA')) // 0\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Import: <code>import pkg from ('start-of-week')</code></li>\n<li>Require: <code>const pkg = require('start-of-week').default</code></li>\n</ul>\n\n<a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n``` typescript\nimport pkg from 'https://unpkg.com/start-of-week@^3.4.0/edition-deno/deno.ts'\n```\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/start-of-week@^3.4.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^3.4.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@3.4.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/node.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-esnext/node.js</code></li>\n<li><code>start-of-week/edition-esnext/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-browsers/browser.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-node-esm/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-deno/deno.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code made to be compatible with <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative to Node.js\">Deno</a></li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","_id":"start-of-week@3.4.0-next.1597702086.ace5a5142f757305a5a3f4c6f0e54da992792ad3","_nodeVersion":"14.8.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-QPeU6TWFH+XXdspOVcTyPeCNSUSR2uUzVIPkfEQhGf8uKE2le8msm1mEIxQxed+nRzzXqvi+iMe+2cBQ/OJ2Sg==","shasum":"0de608d26457841c2aaddb8be26988e21f3eb160","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-3.4.0-next.1597702086.ace5a5142f757305a5a3f4c6f0e54da992792ad3.tgz","fileCount":36,"unpackedSize":36339,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfOv/ICRA9TVsSAnZWagAAWDAP+wQHskQ4QiamcmNg52K6\nPQCAxo+RCUJA+BXekIfM6PoXNAqgVikKlNai2tEBYmBSM3Vf01Sulw14oK/V\n4yV/nPe2YDNYOCW0KMr0xs09b1j1gdPk0/tUyukO/3NUZYVK0trwjAoqItYW\nwGY2DPi6imPBGkvxTAHxdd+O7GKn2cMVYbHwhPcAm9V2gKwNDQBf+jCdpHsw\nKxU7f11vRnUZ8W90jRP1yFL8my0y7N/Z+aTNqxK0+x79js/WKUeNx27rACLQ\n7V3zq/wORDBE/NWNdqKUCvgsAW47sk9JTIw4nycwukOykLhHUoZqAMjaj73P\nqxFatRgpeV/+ZLe+FbdvMnoaMJniTb/Yfk3ejurZjNqXwqJH8t8cv2S5WvmG\nOqrHsXxihdo3eicE5FT+PANbvcSgoDsB8XQkO3FKm4fJRaqFTC8VsHgMDdxa\nWHuuyZmj/HLdB+ffdDu69XkzwQTM9dBrhV6pURZxfQnqPyyOAN/H9V2GMGxF\ni91Nteb6yHxWBhoXj01ciuF+rsz60B37KelYRIlI1M0HwnVOk3gEd8WegSNB\ng+cY8ERV0thHDLQ2s+dnjUIil4mWd9QuCdZBlMfdVSaPI38Q/sI7EZEP/Y2b\n22r2wN0KFbImnDFtRrGsFPELwsGtLvkPLQ9UvO+z1LOLRgBs7NbWl3w75300\ndsMd\r\n=0Qq/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDxrlXIh3fZJSwsljg/cP6FYyxmguv7XRcB2JBGBm8koAIhAJYGD3V2E91kGt/VfKdKXe97Gas0cVQTcwnC6OFBz/l1"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_3.4.0-next.1597702086.ace5a5142f757305a5a3f4c6f0e54da992792ad3_1597702087825_0.607220003624747"},"_hasShrinkwrap":false},"3.4.0-next.1597702165.9c09f00055bf1055a051dbed18e5a8ebab009a87":{"name":"start-of-week","version":"3.4.0-next.1597702165.9c09f00055bf1055a051dbed18e5a8ebab009a87","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"node.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-esnext","entry":"node.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js with Import for modules","directory":"edition-node-esm","entry":"node.js","tags":["javascript","import"],"engines":{"node":true,"browsers":false}},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"./compiled-types/","type":"module","main":"edition-esnext/node.js","exports":{"node":{"import":"./edition-node-esm/node.js","require":"./edition-esnext/node.js"},"browser":{"import":"./edition-browsers/browser.js"}},"deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","devDependencies":{"@bevry/update-contributors":"^1.15.0","@typescript-eslint/eslint-plugin":"^3.9.1","@typescript-eslint/parser":"^3.9.1","assert-helpers":"^6.19.0","eslint":"^7.7.0","eslint-config-bevry":"^3.19.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.11.0","make-deno-edition":"^1.0.0","prettier":"^2.0.5","projectz":"^2.15.0","surge":"^0.21.6","typedoc":"^0.18.0","typescript":"^3.9.7","valid-directory":"^3.0.0","valid-module":"^1.12.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-esnext && npm run our:compile:edition-node-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-node-esm":"tsc --module ESNext --target ESNext --outDir ./edition-node-esm --project tsconfig.json && ( test ! -d edition-node-esm/source || ( mv edition-node-esm/source edition-temp && rm -Rf edition-node-esm && mv edition-temp edition-node-esm ) ) && echo '{\"type\": \"module\"}' > edition-node-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"9c09f00055bf1055a051dbed18e5a8ebab009a87","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/start-of-week\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/start-of-week/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nTake a locale and return its start of the week (0 = Sunday, 1 = Monday)\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/globals.html)\n\n```javascript\nimport getSW from 'start-of-week'\nconsole.log(getSW()) // 0 (Sunday) if user is in North American, otherwise 1 (Monday)\nconsole.log(getSW('')) // 1\nconsole.log(getSW('en_AU')) // 1\nconsole.log(getSW('en_US')) // 0\nconsole.log(getSW('en_CA')) // 0\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Import: <code>import pkg from ('start-of-week')</code></li>\n<li>Require: <code>const pkg = require('start-of-week').default</code></li>\n</ul>\n\n<a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n``` typescript\nimport pkg from 'https://unpkg.com/start-of-week@^3.4.0/edition-deno/deno.ts'\n```\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/start-of-week@^3.4.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^3.4.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@3.4.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/node.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-esnext/node.js</code></li>\n<li><code>start-of-week/edition-esnext/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-browsers/browser.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-node-esm/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-deno/deno.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code made to be compatible with <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative to Node.js\">Deno</a></li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","_id":"start-of-week@3.4.0-next.1597702165.9c09f00055bf1055a051dbed18e5a8ebab009a87","_nodeVersion":"14.8.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-DWAakpn69UqFUcZhC0JgHezBubhBoCQLWu5cfY7+2KcuWeoBfSJbm9QWqb9Xkf0kjxwkWg9qPd8UXoW2LY1kvA==","shasum":"d012ae9d27e828745ff9c6c83539d1eb9309be42","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-3.4.0-next.1597702165.9c09f00055bf1055a051dbed18e5a8ebab009a87.tgz","fileCount":36,"unpackedSize":36339,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfOwAXCRA9TVsSAnZWagAA+EQP/2nRTZ1sk+g3LYzQ/9uN\nG9EVXp/8eDqUvLsFHmcvMU1CgHK9YG9CYUuifDNUQ7h+KlZe5uv8RdB+UcR4\nikoBVhK/F31/SQ+Mbs0i631EHp2qRmK/4eCcN9K1HhS0DW6cIEG8Peqlj3ZU\n3kPqmH28MPRHIl7Bd5K3owLPMwL1Jfb51bChjexioyQWcxdAvj8dlA6ftFGM\nMzMgmTh4w9CZkVx1xxGFNjq3AC+G7aoLYNczjODu1Ni+48zkGBM/LxIE5I7z\nZBZZ5818f5MnFj+DY8HI4qkPwaNP/eAX1A0lBXj3pJWHpHwKTeCcmwv30+7V\ncRfT1UFnpI6ov1JcMsFl9RwuxyFElfTXm1kL+tzmHo2aJcISLrsec69lJhIi\nLsq5WSbBRJ0SKqBaqrRqjmvE+BSgdN2rV8YeYlRdcNa8GCSAP9+7D0gLNuKD\npYdshjOn35wotJJoh78DFos68vFBZuty5RGrYNYLAEIj5/B2lrRCgtCkTX0h\nAFN2v702j1NVOnwBsYQOOOy52Cxff6MWSsff4fHimIKueD+ao/RSeuvvE4AU\nnaYkMFmELltbsB8dR5olk+5XxYN29lB1U2EGEtO4b+mwGMuoqGxzY3DAr2M8\n/5mHQ60SkkPZ16i+CTQwhuXzXsGqoCohnGp5F7AWtUvHT3y3EyK3pnXEG3iR\n31+d\r\n=HPez\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD8xCOSlWvB7CsmsLxopqll6Pa7zNgkyuSJc92hkAnP1AIhAJhgMy4GwYXASuLpMXZ8y1sAmu2/XaCt/q2H1ArSQIfP"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_3.4.0-next.1597702165.9c09f00055bf1055a051dbed18e5a8ebab009a87_1597702167289_0.39228697838011795"},"_hasShrinkwrap":false},"3.4.0":{"name":"start-of-week","version":"3.4.0","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"node.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-esnext","entry":"node.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js with Import for modules","directory":"edition-node-esm","entry":"node.js","tags":["javascript","import"],"engines":{"node":true,"browsers":false}},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"./compiled-types/","type":"module","main":"edition-esnext/node.js","exports":{"node":{"import":"./edition-node-esm/node.js","require":"./edition-esnext/node.js"},"browser":{"import":"./edition-browsers/browser.js"}},"deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","devDependencies":{"@bevry/update-contributors":"^1.15.0","@typescript-eslint/eslint-plugin":"^3.9.1","@typescript-eslint/parser":"^3.9.1","assert-helpers":"^6.19.0","eslint":"^7.7.0","eslint-config-bevry":"^3.19.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.11.0","make-deno-edition":"^1.0.0","prettier":"^2.0.5","projectz":"^2.15.0","surge":"^0.21.6","typedoc":"^0.18.0","typescript":"^3.9.7","valid-directory":"^3.0.0","valid-module":"^1.12.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-esnext && npm run our:compile:edition-node-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-node-esm":"tsc --module ESNext --target ESNext --outDir ./edition-node-esm --project tsconfig.json && ( test ! -d edition-node-esm/source || ( mv edition-node-esm/source edition-temp && rm -Rf edition-node-esm && mv edition-temp edition-node-esm ) ) && echo '{\"type\": \"module\"}' > edition-node-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"ace5a5142f757305a5a3f4c6f0e54da992792ad3","_id":"start-of-week@3.4.0","_nodeVersion":"14.8.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-1+8/cMXngRf2CsQqYX2zvoNUZlquSlOCGeVI1a9bbqi71u7x7UW8KmPG1lyuk/l3Nonqs+w3vVLH8ILl2PsV3Q==","shasum":"da886e5f02c7d7801b40b99da3dedf58116eaa8e","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-3.4.0.tgz","fileCount":36,"unpackedSize":36282,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfOwAmCRA9TVsSAnZWagAAb+QQAJbtwxaX6WNZ3tSJ4GVx\ngzJeoPlJaTiwODN5HtDpUtYoglzdngqy8vmQatkGS0gTN0Gv7cI7JQmWWc3M\noYq2fD8gkFugUK9JssBWmT+KpgZinEg4VDuDvvDvesNcfhq0eur7W3q5ZCfS\nKhx4fMnHyzk3FJztzFQc9vwJZVD29V34NMq6fLcQp2cvpZOVE4K97olQ4+/6\n6SljsVLp2o4PpxsNV5vzFuAtXj6Sod8CB7WX6d7mGlavX0SOug73D4BPMIok\nRJV5STYhD3GV8ovdRSPXOzA6khcpSJe6tSORIxAH++oBd/W37Zb9VRWd9Qb1\nv23jXvgYqLn0GEzs2fH6el1oH22ERruka9fE9NcW/XMWJdqkuFJT004+SP2b\nKLcmvXzTNTyCUiLOjtLfWi+7PPow2wDVsIPS7gVlahWwWUtG4efK2lvbp9Zv\n+ovLgdIOsva0LNsR3ohjQ9PDJh/pGY7vYP0oxcHm6iMq5EOSI9WiG+jlMeQ2\nurdbh4PLPskcAJb2WTItcmisyqptUVTYgV48nMT8cAUUDcvt1eKk576dTOnK\nhGteLqANn8i0Rqm4R/vkhCTFMHnAcBDp5hx1BO3yHJAVQpzlEtHKe+iLshKb\nlTNkF4mFjfH3QHge0PYukOS5nF4Cw6kD/aZdBpQDoyVdKRFtS5R6PqmNOsdc\nXXjw\r\n=DEAY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDvRQ2JVNS828wM0ReQaVZPyaePG2q5mqMEyVS4mYPSRQIhANQSaFgqOEfG0gPZ0H1qEfqWJ5/yK8U18IR3Xaw6VVN5"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_3.4.0_1597702181688_0.027842399916397698"},"_hasShrinkwrap":false},"3.4.0-next.1597702243.ae73d3a79a8565eac60518d131df5005fd75c7cd":{"name":"start-of-week","version":"3.4.0-next.1597702243.ae73d3a79a8565eac60518d131df5005fd75c7cd","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"node.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-esnext","entry":"node.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js with Import for modules","directory":"edition-node-esm","entry":"node.js","tags":["javascript","import"],"engines":{"node":true,"browsers":false}},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"./compiled-types/","type":"module","main":"edition-esnext/node.js","exports":{"node":{"import":"./edition-node-esm/node.js","require":"./edition-esnext/node.js"},"browser":{"import":"./edition-browsers/browser.js"}},"deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","devDependencies":{"@bevry/update-contributors":"^1.15.0","@typescript-eslint/eslint-plugin":"^3.9.1","@typescript-eslint/parser":"^3.9.1","assert-helpers":"^6.19.0","eslint":"^7.7.0","eslint-config-bevry":"^3.19.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.11.0","make-deno-edition":"^1.0.0","prettier":"^2.0.5","projectz":"^2.15.0","surge":"^0.21.6","typedoc":"^0.18.0","typescript":"^3.9.7","valid-directory":"^3.0.0","valid-module":"^1.12.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-esnext && npm run our:compile:edition-node-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-node-esm":"tsc --module ESNext --target ESNext --outDir ./edition-node-esm --project tsconfig.json && ( test ! -d edition-node-esm/source || ( mv edition-node-esm/source edition-temp && rm -Rf edition-node-esm && mv edition-temp edition-node-esm ) ) && echo '{\"type\": \"module\"}' > edition-node-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"ae73d3a79a8565eac60518d131df5005fd75c7cd","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/start-of-week\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/start-of-week/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nTake a locale and return its start of the week (0 = Sunday, 1 = Monday)\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/globals.html)\n\n```javascript\nimport getSW from 'start-of-week'\nconsole.log(getSW()) // 0 (Sunday) if user is in North American, otherwise 1 (Monday)\nconsole.log(getSW('')) // 1\nconsole.log(getSW('en_AU')) // 1\nconsole.log(getSW('en_US')) // 0\nconsole.log(getSW('en_CA')) // 0\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Import: <code>import pkg from ('start-of-week')</code></li>\n<li>Require: <code>const pkg = require('start-of-week').default</code></li>\n</ul>\n\n<a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n``` typescript\nimport pkg from 'https://unpkg.com/start-of-week@^3.4.0/edition-deno/deno.ts'\n```\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/start-of-week@^3.4.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^3.4.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@3.4.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/node.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-esnext/node.js</code></li>\n<li><code>start-of-week/edition-esnext/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-browsers/browser.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-node-esm/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-deno/deno.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code made to be compatible with <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative to Node.js\">Deno</a></li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","_id":"start-of-week@3.4.0-next.1597702243.ae73d3a79a8565eac60518d131df5005fd75c7cd","_nodeVersion":"14.8.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-YvOuWACaOJ+gyIr1nqyTEMEpmPItx8KVm50SUWI++TfwBCRBkekvtRv5Tqr4EK1hWQO4pLfZWwnCKOcpKdiXpA==","shasum":"8bf60eefce1950f4ccfb2d3cff54198457f1fd69","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-3.4.0-next.1597702243.ae73d3a79a8565eac60518d131df5005fd75c7cd.tgz","fileCount":36,"unpackedSize":36339,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfOwBlCRA9TVsSAnZWagAAKgEP/008jAFux9daP6wySoPE\nv1PGQv/2S/qD1BAAhERuCVjr9Cy9U9GGFlPx2FXq2dokHvoXUGKRrJDDMwFL\nCFKs7oCotiinsvvqhkKrrw7+wLNxu2XG73781Pd+LtG2Qog4yQKpNclyY/sa\n9t8O0IyfkgjtzupCjzMYyh4KZZlgnZQixdyk9097x6xkKeFYBi0UxDRIyat9\n14xkIlytcWLr7hnTwKbxMTCOHZdq2Dti3hMj9Tu/NCkyN7tw7Fv8llZS4b5h\nJZykpRzfqQ5bIhqilWV0sMAHUd1VGp4boM7REAiLYQ89OeD8FyoLLi8LPVHL\nNwrvkUMj34LkW0qbTXZfgR1JLI2EuTl8JSCBO02B1h0Kngh3yaZo28BDfHxe\n8lz53agychq/CE1marP1N83AFcs3f+0O1SGEZmjkl6QBJ5Yw9Gnc1oIIMbF3\nkk5dEe2jvCW412JJ4omMiUAFFt1scUkwyilR2EILfT7t64pZfNbmIyKeJUk3\naeC9dRa/gm4iVDwfPNqTrMe0/iy7X2S2lO8pidTMSkDF3mk1D5Yr6GR8v3vA\nNxEbzG+GxzTZD0r/RJXsTBZDOm1zxpHterDDxe25abmEVGnBzA8L8QFLsXEi\nFE1C5b3AnQfHvAHgiMX1XSeWYgo+/KeKSheEXepLW1jG9k5ahjfiyC/p+2g8\nDU+r\r\n=KVWx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDQhkeFQIp3JEe8LIBQJYELfNUjbljL3CnTMm9EtIJbRQIhAKYS0ePLGeVITqKdUqnQ8HZGEtr86ckGtU8PW0SQzfBz"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_3.4.0-next.1597702243.ae73d3a79a8565eac60518d131df5005fd75c7cd_1597702244394_0.026478066191833127"},"_hasShrinkwrap":false},"3.4.0-next.1597702268.97efbaf2f474a1ef7d81af3447ea6d6b58137590":{"name":"start-of-week","version":"3.4.0-next.1597702268.97efbaf2f474a1ef7d81af3447ea6d6b58137590","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"node.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-esnext","entry":"node.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js with Import for modules","directory":"edition-node-esm","entry":"node.js","tags":["javascript","import"],"engines":{"node":true,"browsers":false}},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"./compiled-types/","type":"module","main":"edition-esnext/node.js","exports":{"node":{"import":"./edition-node-esm/node.js","require":"./edition-esnext/node.js"},"browser":{"import":"./edition-browsers/browser.js"}},"deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","devDependencies":{"@bevry/update-contributors":"^1.15.0","@typescript-eslint/eslint-plugin":"^3.9.1","@typescript-eslint/parser":"^3.9.1","assert-helpers":"^6.19.0","eslint":"^7.7.0","eslint-config-bevry":"^3.19.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.11.0","make-deno-edition":"^1.0.0","prettier":"^2.0.5","projectz":"^2.15.0","surge":"^0.21.6","typedoc":"^0.18.0","typescript":"^3.9.7","valid-directory":"^3.0.0","valid-module":"^1.12.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-esnext && npm run our:compile:edition-node-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-node-esm":"tsc --module ESNext --target ESNext --outDir ./edition-node-esm --project tsconfig.json && ( test ! -d edition-node-esm/source || ( mv edition-node-esm/source edition-temp && rm -Rf edition-node-esm && mv edition-temp edition-node-esm ) ) && echo '{\"type\": \"module\"}' > edition-node-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"97efbaf2f474a1ef7d81af3447ea6d6b58137590","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/start-of-week\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/start-of-week/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nTake a locale and return its start of the week (0 = Sunday, 1 = Monday)\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/globals.html)\n\n```javascript\nimport getSW from 'start-of-week'\nconsole.log(getSW()) // 0 (Sunday) if user is in North American, otherwise 1 (Monday)\nconsole.log(getSW('')) // 1\nconsole.log(getSW('en_AU')) // 1\nconsole.log(getSW('en_US')) // 0\nconsole.log(getSW('en_CA')) // 0\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Import: <code>import pkg from ('start-of-week')</code></li>\n<li>Require: <code>const pkg = require('start-of-week').default</code></li>\n</ul>\n\n<a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n``` typescript\nimport pkg from 'https://unpkg.com/start-of-week@^3.4.0/edition-deno/deno.ts'\n```\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/start-of-week@^3.4.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^3.4.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@3.4.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/node.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-esnext/node.js</code></li>\n<li><code>start-of-week/edition-esnext/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-browsers/browser.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-node-esm/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-deno/deno.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code made to be compatible with <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative to Node.js\">Deno</a></li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","_id":"start-of-week@3.4.0-next.1597702268.97efbaf2f474a1ef7d81af3447ea6d6b58137590","_nodeVersion":"14.8.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-PCvj6Szi/MTnnbTlRIFS7XBw7SEQ/kAJ+Izs5ni+1WiFQmidrSMQAgEypKhcrvIiBV/Lz5KjAjvSha39lVs2fg==","shasum":"a1e44a7dfa6ffdbb938b8c2067abca006a844fa8","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-3.4.0-next.1597702268.97efbaf2f474a1ef7d81af3447ea6d6b58137590.tgz","fileCount":36,"unpackedSize":36339,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfOwB+CRA9TVsSAnZWagAAAeoP/3bo2TkWJrxkCj97NekC\nVz63KOCY9VgXbxNpcHk+4iyrLCTAaFSKWQO6e4EqfIVoeYPMtG94FtbXjZv+\niXV2I51Q0KFpNMpOIQonZ/uJzGNc5Q+Vu7PkQjhVhHXAPiIiRsruxNvjawUd\nI1iy+NnixXaeVvVcFblDshYK1YuPWEp4CdtjDINhHy9Jc13mD6HoPEI+RZMk\niVs37bkTqhbiTUm5gVJP+IlcAzkWONoT9eE3Dm0haA+QX2IVz9hVCkuv4jQW\nrF7k+c/c9hOMCXypaKkhqrveeVwq2kD8MXThFD9MEp/4RKMMiwU1JIsG0YmY\n+YL7IhoKAvvcR85k1gdyQvDLyaYAJdN2CgAqfpxiignBaonwpTyS7NxmElYM\nCBcwnhoJf6m7Upi/uLTR+lMYShsKzM9s829X3II0uzUVIppV/EYiQ50rea2L\nt3r6Cpp1D8yANjB0xJ4LONSoC0hUVRTUr8nim4Xb5/WNDAuPnzeX+hl86t4s\noK3sYr3gjlVfRJ+WOWrbzz2GfoXx4umhed4sHMx0butiN2LaD5pqaWKxN4iH\nxgnkMzQGdFdh9NuJCAsyWe/JLCsRQozUSYYgeiPP3KgOY9llwFG8z8UagUCT\n4jLf9AHyylJ0irCpgpYR5M4HfQBsyV+TdtgFeWe08iCy0N9PJ7p3d0V2Udul\nr5zq\r\n=GLCs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD+6usAn/HhTfZNvTLHQqrd2eE0LIcIGZzvAalh8EPXQwIgUv5JdC2O/oCnkwu356XacR0NzhAl8RcdmMMZ4d9tj3U="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_3.4.0-next.1597702268.97efbaf2f474a1ef7d81af3447ea6d6b58137590_1597702270238_0.9054983874096421"},"_hasShrinkwrap":false},"3.4.0-next.1598184210.36cdf90fd3053a2f06ebca7acccc1b3fe394611b":{"name":"start-of-week","version":"3.4.0-next.1598184210.36cdf90fd3053a2f06ebca7acccc1b3fe394611b","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"node.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-esnext","entry":"node.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js with Import for modules","directory":"edition-node-esm","entry":"node.js","tags":["javascript","import"],"engines":{"node":true,"browsers":false}},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"./compiled-types/","type":"module","main":"edition-esnext/node.js","exports":{"node":{"import":"./edition-node-esm/node.js","require":"./edition-esnext/node.js"},"browser":{"import":"./edition-browsers/browser.js"}},"deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","devDependencies":{"@bevry/update-contributors":"^1.15.0","@typescript-eslint/eslint-plugin":"^3.9.1","@typescript-eslint/parser":"^3.9.1","assert-helpers":"^7.0.1","eslint":"^7.7.0","eslint-config-bevry":"^3.19.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.11.0","make-deno-edition":"^1.0.0","prettier":"^2.0.5","projectz":"^2.15.0","surge":"^0.21.6","typedoc":"^0.18.0","typescript":"^3.9.7","valid-directory":"^3.0.0","valid-module":"^1.12.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-esnext && npm run our:compile:edition-node-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-node-esm":"tsc --module ESNext --target ESNext --outDir ./edition-node-esm --project tsconfig.json && ( test ! -d edition-node-esm/source || ( mv edition-node-esm/source edition-temp && rm -Rf edition-node-esm && mv edition-temp edition-node-esm ) ) && echo '{\"type\": \"module\"}' > edition-node-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"36cdf90fd3053a2f06ebca7acccc1b3fe394611b","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/start-of-week\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/start-of-week/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nTake a locale and return its start of the week (0 = Sunday, 1 = Monday)\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/globals.html)\n\n```javascript\nimport getSW from 'start-of-week'\nconsole.log(getSW()) // 0 (Sunday) if user is in North American, otherwise 1 (Monday)\nconsole.log(getSW('')) // 1\nconsole.log(getSW('en_AU')) // 1\nconsole.log(getSW('en_US')) // 0\nconsole.log(getSW('en_CA')) // 0\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Import: <code>import pkg from ('start-of-week')</code></li>\n<li>Require: <code>const pkg = require('start-of-week').default</code></li>\n</ul>\n\n<a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n``` typescript\nimport pkg from 'https://unpkg.com/start-of-week@^3.4.0/edition-deno/deno.ts'\n```\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/start-of-week@^3.4.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^3.4.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@3.4.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/node.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-esnext/node.js</code></li>\n<li><code>start-of-week/edition-esnext/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-browsers/browser.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-node-esm/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-deno/deno.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code made to be compatible with <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative to Node.js\">Deno</a></li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","_id":"start-of-week@3.4.0-next.1598184210.36cdf90fd3053a2f06ebca7acccc1b3fe394611b","_nodeVersion":"14.8.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-84to5uuGOpLVqsOr6k+kNmkwC8d/tV1tMzX6/9p53xbCKkKboKOGAPwd58eAnrIY4hgmtEVA+9wT5NhenPrEfg==","shasum":"fbebf6f9d27b04a9e9695bfcf073cb905712fdb9","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-3.4.0-next.1598184210.36cdf90fd3053a2f06ebca7acccc1b3fe394611b.tgz","fileCount":36,"unpackedSize":36338,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfQlsUCRA9TVsSAnZWagAALcoP/3LujItW5eA7I6D+VcZ8\nQKUjMdOvC81184g8iUqrpQvOc8lgC/PKaBAR5vqO3ENOnj7e8W3KyoUl4pCk\nLZklnt/ruojCrt5AYaXCDCnI3SaPiAeKbkG+0tQIJfTllMbfQ74N1+9JMyTj\nPhw/iGMXmv3wVV2wg/i2iHgjr83dr/wtb9ix739mlGh/6NU1fAvUcknjDFOC\n/bgRIp27L2DxH1B+jzCZV3GS9Pqb+CZbn0umYCG6pdBDFhjlvg3tOa5MeOJh\ns+x8YWG5XZw3B9h4JBImuunAsAgSDGKUfQZkh0bUvaDTj6n3LA+gD7Frmc/o\nCiNQgVn2C9B5atR1CVG7ETv9ncVBDRj85RKGDPd5WLZKL0rn+dh8AnMVJji5\nXBNjQ9OprY7wqOK7zgX4qFNbVyCCwPzN9NFXVS9z2SHxwPm87Mo+FXOuSnDr\nm8ejLXLkHvRCB446saZccNaWKPzwLhUC/x5Ar1UA7UKklxHoSjv5jJ/U4svP\n0F4LRht3kgv8/eFk+9trYryIQt3XxKa5sSKAJMuEl/pGwjxhF00P9IFU3x9S\nJYnJ4q7HYKUxH/gmsmW7bTk5bmPh4mk7X6ZcXDBE0PztAxk717boJaRVvtpo\na5BopusdZjkrO3yWI8Q+VeaaTv4TCPBgcRwYjDRXpMtsqFf3y8fZEiWqLyH4\nSKsi\r\n=7Ll/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEx0I3W5R3uez//EtELQpLL9ED3zrG0l19/eFqjiT2LFAiAV1a3kIw4i4M200nxrBJ9hEB7+NbuM45VUbhonY2WPpg=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_3.4.0-next.1598184210.36cdf90fd3053a2f06ebca7acccc1b3fe394611b_1598184211505_0.5945998946155573"},"_hasShrinkwrap":false},"3.4.0-next.1598187130.15d1af863b78e8861c9d1ca9d7f5796230a74e71":{"name":"start-of-week","version":"3.4.0-next.1598187130.15d1af863b78e8861c9d1ca9d7f5796230a74e71","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"node.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-esnext","entry":"node.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js with Import for modules","directory":"edition-node-esm","entry":"node.js","tags":["javascript","import"],"engines":{"node":true,"browsers":false}},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"./compiled-types/","type":"module","main":"edition-esnext/node.js","exports":{"node":{"import":"./edition-node-esm/node.js","require":"./edition-esnext/node.js"},"browser":{"import":"./edition-browsers/browser.js"}},"deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","devDependencies":{"@bevry/update-contributors":"^1.15.0","@typescript-eslint/eslint-plugin":"^3.9.1","@typescript-eslint/parser":"^3.9.1","assert-helpers":"^7.0.1","eslint":"^7.7.0","eslint-config-bevry":"^3.19.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.11.0","make-deno-edition":"^1.0.0","prettier":"^2.0.5","projectz":"^2.15.0","surge":"^0.21.6","typedoc":"^0.18.0","typescript":"^3.9.7","valid-directory":"^3.0.0","valid-module":"^1.12.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-esnext && npm run our:compile:edition-node-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-node-esm":"tsc --module ESNext --target ESNext --outDir ./edition-node-esm --project tsconfig.json && ( test ! -d edition-node-esm/source || ( mv edition-node-esm/source edition-temp && rm -Rf edition-node-esm && mv edition-temp edition-node-esm ) ) && echo '{\"type\": \"module\"}' > edition-node-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"15d1af863b78e8861c9d1ca9d7f5796230a74e71","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/start-of-week\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/start-of-week/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nTake a locale and return its start of the week (0 = Sunday, 1 = Monday)\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/globals.html)\n\n```javascript\nimport getSW from 'start-of-week'\nconsole.log(getSW()) // 0 (Sunday) if user is in North American, otherwise 1 (Monday)\nconsole.log(getSW('')) // 1\nconsole.log(getSW('en_AU')) // 1\nconsole.log(getSW('en_US')) // 0\nconsole.log(getSW('en_CA')) // 0\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Import: <code>import pkg from ('start-of-week')</code></li>\n<li>Require: <code>const pkg = require('start-of-week').default</code></li>\n</ul>\n\n<a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n``` typescript\nimport pkg from 'https://unpkg.com/start-of-week@^3.4.0/edition-deno/deno.ts'\n```\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/start-of-week@^3.4.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^3.4.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@3.4.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/node.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-esnext/node.js</code></li>\n<li><code>start-of-week/edition-esnext/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-browsers/browser.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-node-esm/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-deno/deno.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code made to be compatible with <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative to Node.js\">Deno</a></li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","_id":"start-of-week@3.4.0-next.1598187130.15d1af863b78e8861c9d1ca9d7f5796230a74e71","_nodeVersion":"14.8.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-G3jGXgX/pK+pEkvzYVirvGnXeVbftTioZUC4OYxvAIxg/yRQssfIG6ySaWZioZWiyg/pdWLdjccEIa9a9ZF1Zw==","shasum":"a9386000fc5ef3e2f1c42d2aff63810a9db77649","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-3.4.0-next.1598187130.15d1af863b78e8861c9d1ca9d7f5796230a74e71.tgz","fileCount":36,"unpackedSize":36338,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfQmZ8CRA9TVsSAnZWagAAdzEP/1miZIKcQ5z75IRed9qf\nzmFtXvewm1rCcxLJ1r+f001PDO0UHmbF+c7+3B1srgsuP6u8v0j1AbpjjHNL\nycMcXCXCoM9lKB/zMdnVA4ZWE1OKIqRsCd6ZYt1K11Ge+js4fjUu8yK0buG0\nsRLFwX7wgNjkzK3QTFW2gjnS4ObwWLhZ/jCTpSH/lTI0fUAMyujcmUx2LXFX\nkw3gSahsFap3gk+uHW/9HFgy5QhFnleLZTsfC7o3RhzgrTtRgsuv6+j2TVnq\nwgIx+g3O8AzaRZPmjfj9Ga6+wDDW7hBTYFdgYdnwyLC0LjQfAMCtSNFSSoJt\nhjW3wc/DoVqmorqRqTyOoAHnqbKACDWD4GjgouhQO0tNTr8tvqz72W/YDi13\nixg5+QlfS/9o05u2kgpG/4WXZp3F1EAyD2vDSrQ0iIEib5Ue1qVFRyDG0aDl\nqIufrmnq+htiEaj5rTWKKS2ow0Gpjjd8LD/RE+SES7Tw5Y73UxkfwtLzdCpz\nO4SzLjRTvv+AhoMUv9uANsFhrsErGFI/hYOyoXAvfERql7JLjfGQVnHQUBKA\nrjgEjlCCtFDG3EYyjEXbG8Xgo0CXKpivhq7odwp1xn8lX62+p0aTpms9GfqT\ng+CwGsyIFCbcnwDr3rOy6YV+F4nn5GTO12CcnHVosyYhWCi/nyZrc2+A4FiB\nuWdG\r\n=D1xj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEDT2MKvSfRu/6FCCXPRb1BOia7RaA5Y3RCFS/TlRfu4AiEAidBUWEZdz6p5htISDO9Xz0JICEDNohzzQK17NN7wrds="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_3.4.0-next.1598187130.15d1af863b78e8861c9d1ca9d7f5796230a74e71_1598187131859_0.7838901215552787"},"_hasShrinkwrap":false},"3.4.0-next.1598188023.3778f08c94f82bdeb72faae6c77307b623359c22":{"name":"start-of-week","version":"3.4.0-next.1598188023.3778f08c94f82bdeb72faae6c77307b623359c22","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"node.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-esnext","entry":"node.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js with Import for modules","directory":"edition-node-esm","entry":"node.js","tags":["javascript","import"],"engines":{"node":true,"browsers":false}},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"./compiled-types/","type":"module","main":"edition-esnext/node.js","exports":{"node":{"import":"./edition-node-esm/node.js","require":"./edition-esnext/node.js"},"browser":{"import":"./edition-browsers/browser.js"}},"deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","devDependencies":{"@bevry/update-contributors":"^1.15.0","@typescript-eslint/eslint-plugin":"^3.9.1","@typescript-eslint/parser":"^3.9.1","assert-helpers":"^7.0.1","eslint":"^7.7.0","eslint-config-bevry":"^3.19.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.11.0","make-deno-edition":"^1.0.0","prettier":"^2.0.5","projectz":"^2.15.0","surge":"^0.21.6","typedoc":"^0.18.0","typescript":"^3.9.7","valid-directory":"^3.0.0","valid-module":"^1.12.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-esnext && npm run our:compile:edition-node-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-node-esm":"tsc --module ESNext --target ESNext --outDir ./edition-node-esm --project tsconfig.json && ( test ! -d edition-node-esm/source || ( mv edition-node-esm/source edition-temp && rm -Rf edition-node-esm && mv edition-temp edition-node-esm ) ) && echo '{\"type\": \"module\"}' > edition-node-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"3778f08c94f82bdeb72faae6c77307b623359c22","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/start-of-week\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/start-of-week/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nTake a locale and return its start of the week (0 = Sunday, 1 = Monday)\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/globals.html)\n\n```javascript\nimport getSW from 'start-of-week'\nconsole.log(getSW()) // 0 (Sunday) if user is in North American, otherwise 1 (Monday)\nconsole.log(getSW('')) // 1\nconsole.log(getSW('en_AU')) // 1\nconsole.log(getSW('en_US')) // 0\nconsole.log(getSW('en_CA')) // 0\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Import: <code>import pkg from ('start-of-week')</code></li>\n<li>Require: <code>const pkg = require('start-of-week').default</code></li>\n</ul>\n\n<a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n``` typescript\nimport pkg from 'https://unpkg.com/start-of-week@^3.4.0/edition-deno/deno.ts'\n```\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/start-of-week@^3.4.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^3.4.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@3.4.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/node.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-esnext/node.js</code></li>\n<li><code>start-of-week/edition-esnext/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-browsers/browser.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-node-esm/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-deno/deno.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code made to be compatible with <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative to Node.js\">Deno</a></li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","_id":"start-of-week@3.4.0-next.1598188023.3778f08c94f82bdeb72faae6c77307b623359c22","_nodeVersion":"14.8.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-oU2unDrKEIWAyz5KxjxyS1Tkn20Q5YlgWsx5+8VVZIOCM5F9YuUHldOi3r2oJsPk7M2YUGnkCSesZxW3weM0HQ==","shasum":"52f33766668faca3f4b29816bbc4b67a56819b25","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-3.4.0-next.1598188023.3778f08c94f82bdeb72faae6c77307b623359c22.tgz","fileCount":36,"unpackedSize":36338,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfQmn5CRA9TVsSAnZWagAARlcP/11ynLs5pocNBdx/Rh7C\n92wAr1WUJ+Ld7jlcnmiQ9D0R/vvIkBIX42aRnd0db2cFYqdv14HRrc3Sh9/c\nssQG8CCG71+8CXe60fDGgoJfOtkln1mhVskbkMX4sbIRX2cpj9wCIhcDI+6H\nxfTlrFi89Ar3xj6xPX/bj+zU1C3xoruaeCJHfhwN9E+V8ld2zEPwc/b6AXLq\nw2Xpq2TaaxL/uT6nbWdXvLUD5IyZHXVjVHpKD1Z33bDsDlh6/Djibyu+RbAz\nuqopZCV2RyBWILLFvOPCDHqHiNk8JcvhI3r173mi6nL8Y62jLYDfjdaH+CdU\nmDosSeurTRbapjJVCjF2dtJ9sPJ7fXM4yGdJxpjXsJRs3ovv9esjnfsBGy+r\nAV/QrgDmAWYblj/vmiXsCFY5JyFYAOce1HSKHXi6qwcaD9N3HdB2p1tBVoQp\nY+wPptoPkgqyywYr7TyqTz8zLa9Z01uPrbEtY0H6y/aSCAKjpmicPvsJQcWP\npY672237MAObknXKF5vh2NX4wu/2fJ6JqwfCCvD9fCK6JCfC5Oz3EyfzXbVM\naledaLreXY+r/viwmwnAbhNDRMatvqUxX91J6gy1ZV33O36Z5nUSLdHnlJyN\nbtFnZfYhoFzo2MR9xb5+kvA+WTdfS4CUsELIcguLGKytc79nipzuqN/IWPE8\nbh8Q\r\n=oQMv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDNJIJrPRZ3RiQvoab4uSBMTa3H+UCgC8TeDFjZ/zIwKgIhALbb+w8GJZ3z2e5CaWNnTVOOQxBsbJPzRRVHQidtt+ie"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_3.4.0-next.1598188023.3778f08c94f82bdeb72faae6c77307b623359c22_1598188024724_0.07987138974002228"},"_hasShrinkwrap":false},"3.4.0-next.1598189124.b3597f7b7c569b16eab99b4be83bcde80a9999bb":{"name":"start-of-week","version":"3.4.0-next.1598189124.b3597f7b7c569b16eab99b4be83bcde80a9999bb","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"node.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-esnext","entry":"node.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js with Import for modules","directory":"edition-node-esm","entry":"node.js","tags":["javascript","import"],"engines":{"node":true,"browsers":false}},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"./compiled-types/","type":"module","main":"edition-esnext/node.js","exports":{"node":{"import":"./edition-node-esm/node.js","require":"./edition-esnext/node.js"},"browser":{"import":"./edition-browsers/browser.js"}},"deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","devDependencies":{"@bevry/update-contributors":"^1.15.0","@typescript-eslint/eslint-plugin":"^3.9.1","@typescript-eslint/parser":"^3.9.1","assert-helpers":"^7.0.1","eslint":"^7.7.0","eslint-config-bevry":"^3.19.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.11.0","make-deno-edition":"^1.0.0","prettier":"^2.0.5","projectz":"^2.15.0","surge":"^0.21.6","typedoc":"^0.18.0","typescript":"^3.9.7","valid-directory":"^3.0.0","valid-module":"^1.12.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-esnext && npm run our:compile:edition-node-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-node-esm":"tsc --module ESNext --target ESNext --outDir ./edition-node-esm --project tsconfig.json && ( test ! -d edition-node-esm/source || ( mv edition-node-esm/source edition-temp && rm -Rf edition-node-esm && mv edition-temp edition-node-esm ) ) && echo '{\"type\": \"module\"}' > edition-node-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"b3597f7b7c569b16eab99b4be83bcde80a9999bb","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/start-of-week\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/start-of-week/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nTake a locale and return its start of the week (0 = Sunday, 1 = Monday)\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/globals.html)\n\n```javascript\nimport getSW from 'start-of-week'\nconsole.log(getSW()) // 0 (Sunday) if user is in North American, otherwise 1 (Monday)\nconsole.log(getSW('')) // 1\nconsole.log(getSW('en_AU')) // 1\nconsole.log(getSW('en_US')) // 0\nconsole.log(getSW('en_CA')) // 0\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Import: <code>import pkg from ('start-of-week')</code></li>\n<li>Require: <code>const pkg = require('start-of-week').default</code></li>\n</ul>\n\n<a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n``` typescript\nimport pkg from 'https://unpkg.com/start-of-week@^3.4.0/edition-deno/deno.ts'\n```\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/start-of-week@^3.4.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^3.4.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@3.4.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/node.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-esnext/node.js</code></li>\n<li><code>start-of-week/edition-esnext/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-browsers/browser.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-node-esm/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-deno/deno.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code made to be compatible with <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative to Node.js\">Deno</a></li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","_id":"start-of-week@3.4.0-next.1598189124.b3597f7b7c569b16eab99b4be83bcde80a9999bb","_nodeVersion":"14.8.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-HOUQpY1V26GJTn58ukWf1Vsiv6aYYWOqzD/VPqiiM9dDwAbJ4fWIhJ47nBrFCCBIUYX6jlD5uqSf1gVlt397WA==","shasum":"03325828a9e3f7911c5f0772cffec5e979f746f1","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-3.4.0-next.1598189124.b3597f7b7c569b16eab99b4be83bcde80a9999bb.tgz","fileCount":36,"unpackedSize":36338,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfQm5GCRA9TVsSAnZWagAAu7AQAJITrN9NzHfCYHQsDmbV\nMcji0uaGshEHLUqo6SWfIkWg7284Yyzxzl75PcRgABwmp7OxLNDRBETpmS2k\nDhhsacX11XLGfZ3oUb6sLYEgpxQOTkkKDoWPZoMwloF7I4Uqia7uf94actQ1\nHFODElN6nsr/n0GVvOuTTwmov7JtZYeqK31Gx6PMrFv7RYv3oLyhulYTbGTW\nVELezZ44iAQQtJp81HOxmAts0a4tN4U7bgDlmS+Q2YRyPft4QpxTaw35z8C+\nr1JVUmC5g56JjdIKsLdsZu2/DFLZ8IdNwjf7TDcWTyiEjabYX0gg2VrJN3lt\n+mzRW1btvaUObd7CokqIjlojqqA38uGdCilkcoPgkN6FbNdsu2fm6JmAsKMk\nr9rjAjxaEuCyWR3lWgJYqZQt8gAUKwDns+0co3a+OS+Hl0BuRJJhAd+Mr5Xw\ntIM9Tp6nu+z3LA0EaJ/w+Icw/GxTekJ+6XmdD7d/cZDlHCBBi2jbeL3qBeIQ\nmxYfnTPYOl0bfJ6CUMLQU5WiW0/Ar78cqsiZi+/oSenKkZKhs6EHCgCv6z7F\nZX8zFREiBbPP1YvhwLzzmN8vl+OmpQ/hMpd3DRWgC5c1aJdxHlvwO0+CNdXs\nTyrrL/FyjhllFqDvFpeTVX8kDOD63UU4nDat4qlJVQje0eg7cObQ07/p6HJt\n6ICB\r\n=8ge9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA6FzrurDyMYvuPl7o6X4n910vbG0Z3/Ke03z/afl/RRAiEA8h5r0zFWCYEOMtUMJtZLZiWNEpgl3dv2y1skZYflWRU="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_3.4.0-next.1598189124.b3597f7b7c569b16eab99b4be83bcde80a9999bb_1598189126380_0.37578615014171457"},"_hasShrinkwrap":false},"3.4.0-next.1598779463.67ae4213db8439907f063e1e897ca22789813db3":{"name":"start-of-week","version":"3.4.0-next.1598779463.67ae4213db8439907f063e1e897ca22789813db3","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"node.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-esnext","entry":"node.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js with Import for modules","directory":"edition-node-esm","entry":"node.js","tags":["javascript","import"],"engines":{"node":true,"browsers":false}},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"./compiled-types/","type":"module","main":"edition-esnext/node.js","exports":{"node":{"import":"./edition-node-esm/node.js","require":"./edition-esnext/node.js"},"browser":{"import":"./edition-browsers/browser.js"}},"deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","devDependencies":{"@bevry/update-contributors":"^1.15.0","@typescript-eslint/eslint-plugin":"^3.9.1","@typescript-eslint/parser":"^3.9.1","assert-helpers":"^7.0.1","eslint":"^7.7.0","eslint-config-bevry":"^3.19.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.11.0","make-deno-edition":"^1.0.0","prettier":"^2.0.5","projectz":"^2.15.0","surge":"^0.21.6","typedoc":"^0.18.0","typescript":"^3.9.7","valid-directory":"^3.0.0","valid-module":"^1.12.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-esnext && npm run our:compile:edition-node-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-node-esm":"tsc --module ESNext --target ESNext --outDir ./edition-node-esm --project tsconfig.json && ( test ! -d edition-node-esm/source || ( mv edition-node-esm/source edition-temp && rm -Rf edition-node-esm && mv edition-temp edition-node-esm ) ) && echo '{\"type\": \"module\"}' > edition-node-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"67ae4213db8439907f063e1e897ca22789813db3","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/start-of-week\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/start-of-week/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nTake a locale and return its start of the week (0 = Sunday, 1 = Monday)\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/globals.html)\n\n```javascript\nimport getSW from 'start-of-week'\nconsole.log(getSW()) // 0 (Sunday) if user is in North American, otherwise 1 (Monday)\nconsole.log(getSW('')) // 1\nconsole.log(getSW('en_AU')) // 1\nconsole.log(getSW('en_US')) // 0\nconsole.log(getSW('en_CA')) // 0\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Import: <code>import pkg from ('start-of-week')</code></li>\n<li>Require: <code>const pkg = require('start-of-week').default</code></li>\n</ul>\n\n<a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n``` typescript\nimport pkg from 'https://unpkg.com/start-of-week@^3.4.0/edition-deno/deno.ts'\n```\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/start-of-week@^3.4.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^3.4.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@3.4.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/node.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-esnext/node.js</code></li>\n<li><code>start-of-week/edition-esnext/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-browsers/browser.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-node-esm/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-deno/deno.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code made to be compatible with <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative to Node.js\">Deno</a></li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","_id":"start-of-week@3.4.0-next.1598779463.67ae4213db8439907f063e1e897ca22789813db3","_nodeVersion":"14.9.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-ql24fwtYsnu810svcfh9I+q+B5oesD0e650idxmrHE4D3ulPR6CSFkyI/1dbcTcryzgJ3jeDeX1TAat9S3sgtw==","shasum":"537e399154e8ae70e54c84d85cb695ee83dbc18a","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-3.4.0-next.1598779463.67ae4213db8439907f063e1e897ca22789813db3.tgz","fileCount":36,"unpackedSize":36338,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfS3BICRA9TVsSAnZWagAA2cEP/jr96kgrbSwyitg5msGI\nq406ekLq7Gsfv5jHRDQJ1ytdcTOCLyluKsFBd0cQvwbDZ9SNE67x+/K9OjX2\nr8OGIYM3X/wS0SAoS1ssFuYyo/e/Ok82LfpnYwcIqDlnSLDjbdxw6LIvFOCm\ndoNrA7SOsXpTbEw+47Y+i7QaG11BWg1F5SaQ1aZFKYDils6xpa2oRGuzlLi0\nPoHtBTjMSZ0gchdhcNbZhatEuGGBQ8DttRZNiNwNAgWrdiJKNYslA+xv3Omi\nat90EmBNqsnyZ3A2GYd1EsU9BBTf32lLkAW4noP9rZqZl45Je1jSK3YFpitP\nsJ4s0ROI1p0QaPbV2D6SE/Elh5nKq+jPbNMao4DDn1uPjz2oyzttnIWP9m73\nxVni9WEC09Jv6337Te/hksnNtF87yu+ZV7SnbfAvyIgowq/msZBwEkeC2/Fz\n5OUc+an8typm+7MekrrsMUpPCWMLP6iMnQ/of1Ftzf0j4cElkcwhwToENXWu\n3xk7WASgxgdU7U8bEhu7TcD1P8SDMUn7aj0oJyYEKyA/x3UtzIyFkhoIOrPa\nydW1qkOUOo6FtG3bDkwAmXu3wtaDthbY2sbH1WjpV3tusECAKSuh1KEZSOcK\nopealUIuOxftUod/VjUmsMsOLli8Dg5c/9qH/pXB2MPThNuj/3Uuf/rXTloi\n2hxY\r\n=nupQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCZ6tbBtuNQx4kXSLebpyqT3vweV1rTquWFTpgSIInW+gIgIZ3bNA+uANqf36ccrTbrXoAeKZVUiI64C87rsCtmM2A="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_3.4.0-next.1598779463.67ae4213db8439907f063e1e897ca22789813db3_1598779464514_0.659645370877286"},"_hasShrinkwrap":false},"3.4.0-next.1598780842.3e9c15623485a6fde4500d875161bef249b372cf":{"name":"start-of-week","version":"3.4.0-next.1598780842.3e9c15623485a6fde4500d875161bef249b372cf","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"node.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-esnext","entry":"node.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js with Import for modules","directory":"edition-node-esm","entry":"node.js","tags":["javascript","import"],"engines":{"node":true,"browsers":false}},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"./compiled-types/","type":"module","main":"edition-esnext/node.js","exports":{"node":{"import":"./edition-node-esm/node.js","require":"./edition-esnext/node.js"},"browser":{"import":"./edition-browsers/browser.js"}},"deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","devDependencies":{"@bevry/update-contributors":"^1.15.0","@typescript-eslint/eslint-plugin":"^3.9.1","@typescript-eslint/parser":"^3.9.1","assert-helpers":"^7.0.1","eslint":"^7.7.0","eslint-config-bevry":"^3.19.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.11.0","make-deno-edition":"^1.0.0","prettier":"^2.0.5","projectz":"^2.15.0","surge":"^0.21.6","typedoc":"^0.18.0","typescript":"^3.9.7","valid-directory":"^3.0.0","valid-module":"^1.12.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-esnext && npm run our:compile:edition-node-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-node-esm":"tsc --module ESNext --target ESNext --outDir ./edition-node-esm --project tsconfig.json && ( test ! -d edition-node-esm/source || ( mv edition-node-esm/source edition-temp && rm -Rf edition-node-esm && mv edition-temp edition-node-esm ) ) && echo '{\"type\": \"module\"}' > edition-node-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"3e9c15623485a6fde4500d875161bef249b372cf","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/start-of-week\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/start-of-week/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nTake a locale and return its start of the week (0 = Sunday, 1 = Monday)\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/globals.html)\n\n```javascript\nimport getSW from 'start-of-week'\nconsole.log(getSW()) // 0 (Sunday) if user is in North American, otherwise 1 (Monday)\nconsole.log(getSW('')) // 1\nconsole.log(getSW('en_AU')) // 1\nconsole.log(getSW('en_US')) // 0\nconsole.log(getSW('en_CA')) // 0\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Import: <code>import pkg from ('start-of-week')</code></li>\n<li>Require: <code>const pkg = require('start-of-week').default</code></li>\n</ul>\n\n<a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n``` typescript\nimport pkg from 'https://unpkg.com/start-of-week@^3.4.0/edition-deno/deno.ts'\n```\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/start-of-week@^3.4.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^3.4.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@3.4.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/node.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-esnext/node.js</code></li>\n<li><code>start-of-week/edition-esnext/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-browsers/browser.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-node-esm/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-deno/deno.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code made to be compatible with <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative to Node.js\">Deno</a></li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","_id":"start-of-week@3.4.0-next.1598780842.3e9c15623485a6fde4500d875161bef249b372cf","_nodeVersion":"14.9.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-zrXqlFKAqAuoD/WbZLfPfNaLQoQoUaT/RBWnwr+hvcfWGq+1KLrGqs2KNKJzAGZp/cuRBiCXSufD/aF5yJq5aA==","shasum":"a53600d2faa1a952d05aa75b3697cd2c406b3480","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-3.4.0-next.1598780842.3e9c15623485a6fde4500d875161bef249b372cf.tgz","fileCount":36,"unpackedSize":36338,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfS3WrCRA9TVsSAnZWagAAp2gP/2JnP6ikDjTzSR3W+n09\nnVa+7SPOC/600qJERNmgEWxkp6tluxbq91rkutPUF2TLSWflR3mpMr+rS9Lr\n4YysY/6vJYkVBXyH5Y4QBqgck4j4uFlU5p5TsFZBhjd45qebYKmjtgXXLOHz\n1d5hVFLisrHeM3VvaQc1NOVNWJ64qiirvvjl6/0o9x8yrBhmQkqGkE09Dv3x\nMV5Z/BHTYaCxbYT0aw+4ZASZwFxraSLsih/s0YkDTNjqM6OMwD1/hf7UCkoz\nVvB8eFIlkkjEtr2Sd/YJuTmBbHOnjUzNn2t3PUmBFsJMNMILGrt1H8ZeEmqe\ndF66bR0hRIXJRGv1UZmpb1ouONjdaC/bMsCNXW/Iu42BdIGqqsALQYh5MOj5\nG+Tu4GdAC4xAb0+Ktk1OrOswJ3KzzulFjdlp8yt0wuEQlJ/eIPweWpwKJ0t8\nJxvGF84sPiZ8f9iGf7lm8YqJQVjeH22aKN14czeKOFOUSF5fVQ+w81/ptsOM\n5BkmVxuuCTDFDxFEJ1goBDWkRwAVk18HcO+PmxyWN4I44wlx8kY+wunmQuK5\nGxWjZsyreaXg9IiX3f8SadlBZqBrrhR4/odShN+9Y5kGLSLQIJ23jeUOMTQO\ncrC9R+rcXbK+ZumXLd2uD1Z6z6DfkFztV5JOLRizlKpNLCi6ug+CdmRGIwko\noj8v\r\n=DWPH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDRFC3lf7nXnnJKDN8IrqNplUfCT9D/whp5uOwP/Whc6AIganu5877yV7P2TIXnn0lzeowJCqVLMqhTw22hekKnmgc="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_3.4.0-next.1598780842.3e9c15623485a6fde4500d875161bef249b372cf_1598780843288_0.8920928448599263"},"_hasShrinkwrap":false},"3.4.0-next.1598781651.1b8b4d8cfb0142acbd9bc735ed886a4083f24937":{"name":"start-of-week","version":"3.4.0-next.1598781651.1b8b4d8cfb0142acbd9bc735ed886a4083f24937","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"node.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-esnext","entry":"node.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js with Import for modules","directory":"edition-node-esm","entry":"node.js","tags":["javascript","import"],"engines":{"node":true,"browsers":false}},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"./compiled-types/","type":"module","main":"edition-esnext/node.js","exports":{"node":{"import":"./edition-node-esm/node.js","require":"./edition-esnext/node.js"},"browser":{"import":"./edition-browsers/browser.js"}},"deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","devDependencies":{"@bevry/update-contributors":"^1.15.0","@typescript-eslint/eslint-plugin":"^3.9.1","@typescript-eslint/parser":"^3.9.1","assert-helpers":"^7.0.1","eslint":"^7.7.0","eslint-config-bevry":"^3.19.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.11.0","make-deno-edition":"^1.0.0","prettier":"^2.0.5","projectz":"^2.15.0","surge":"^0.21.6","typedoc":"^0.18.0","typescript":"^3.9.7","valid-directory":"^3.0.0","valid-module":"^1.12.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-esnext && npm run our:compile:edition-node-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-node-esm":"tsc --module ESNext --target ESNext --outDir ./edition-node-esm --project tsconfig.json && ( test ! -d edition-node-esm/source || ( mv edition-node-esm/source edition-temp && rm -Rf edition-node-esm && mv edition-temp edition-node-esm ) ) && echo '{\"type\": \"module\"}' > edition-node-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"1b8b4d8cfb0142acbd9bc735ed886a4083f24937","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/start-of-week\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/start-of-week/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nTake a locale and return its start of the week (0 = Sunday, 1 = Monday)\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/globals.html)\n\n```javascript\nimport getSW from 'start-of-week'\nconsole.log(getSW()) // 0 (Sunday) if user is in North American, otherwise 1 (Monday)\nconsole.log(getSW('')) // 1\nconsole.log(getSW('en_AU')) // 1\nconsole.log(getSW('en_US')) // 0\nconsole.log(getSW('en_CA')) // 0\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Import: <code>import pkg from ('start-of-week')</code></li>\n<li>Require: <code>const pkg = require('start-of-week').default</code></li>\n</ul>\n\n<a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n``` typescript\nimport pkg from 'https://unpkg.com/start-of-week@^3.4.0/edition-deno/deno.ts'\n```\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/start-of-week@^3.4.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^3.4.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@3.4.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/node.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-esnext/node.js</code></li>\n<li><code>start-of-week/edition-esnext/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-browsers/browser.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-node-esm/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-deno/deno.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code made to be compatible with <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative to Node.js\">Deno</a></li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","_id":"start-of-week@3.4.0-next.1598781651.1b8b4d8cfb0142acbd9bc735ed886a4083f24937","_nodeVersion":"14.9.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-AysYSblAIFdBOP0DRZbfXYJ3NTESxmPZHVrBnnBf1pj7LAJZ1SHnULF/x+yuDS7QgQ2JrJDxmKKbWhRjYtznoA==","shasum":"cf3eba61de77d347ea91bdfbbc94041dc703bf20","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-3.4.0-next.1598781651.1b8b4d8cfb0142acbd9bc735ed886a4083f24937.tgz","fileCount":36,"unpackedSize":36338,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfS3jVCRA9TVsSAnZWagAAp4oP/1oFSobhj3tDr/aqwdIn\nTx2YPYW4+bYUHDeHN33jQDCCl4sWnZzPy50D/7DTsMi5WCXmiN3dWw9Ekql9\nEZJPofD+GspfZ1p5ghVSdAUNqYzv14vM7jk+ee9vkycMjISMs0bKoe6BnLo+\nawsX+DmfGNg09n3Yo2uEz+gmAWaIb5sV4+PDPlihWsnX7Jfk89EsZbJXBA0O\n0cDzIYyEOSgJVrJSGTqiWw+6A2c6iW+t6B+pvLvz6+6lnnnfMG8ErXvO94gV\n80OzoQAt44BTMfCxH4vvV0xbuNpXft6XImvzMetyCGzSuDEHDFLK6RZzmhAK\nNZrpjTcHwIcpVnNeOiPzWPy1CnxN0VMOI8gQ5uqwJ+yupNKzr8+8KGXhvyum\nneyx1Si9AV6TNFkzAMuPkb7HOOQTkXsVZbf5rHD08M22QcAglspCIMQaalWB\nirB1sa/P+P1Q+n9oCRGxbDfq5CHb8zFBbrRq+vDkJRMxZAJg/M0uoF9NYhDI\nucj38a1c9n+bcOeudiOTGDWlbjfQriYwAjESOYytWdcCW85XgGuusVjd7wpM\nyIyWNaiTaKbHh5ZvWPzDBkfnAGR2SOeA9lRU5vzQVA8JsK8Br+V8L7qHzE+v\nvoZfAOhWEbbA2BjREpTkVGbIH4PERDDOhDdJA1g89uNb6ZOm5aEEnLtFTW7g\nPzvW\r\n=5uOK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA2Q1b/1FFquJqLQN9yEC3u5OnmiJSFWMiuHRczVJqeqAiEA0bK2559iaM+SfKq9VvX2ZxviMSKrtWRANvvr/JGR5ck="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_3.4.0-next.1598781651.1b8b4d8cfb0142acbd9bc735ed886a4083f24937_1598781653154_0.6567539497938273"},"_hasShrinkwrap":false},"3.4.0-next.1599075419.23c4d0e8e8b093eeb2d17a96e0958d6243ff0909":{"name":"start-of-week","version":"3.4.0-next.1599075419.23c4d0e8e8b093eeb2d17a96e0958d6243ff0909","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"node.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-esnext","entry":"node.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js with Import for modules","directory":"edition-node-esm","entry":"node.js","tags":["javascript","import"],"engines":{"node":true,"browsers":false}},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"./compiled-types/","type":"module","main":"edition-esnext/node.js","exports":{"node":{"import":"./edition-node-esm/node.js","require":"./edition-esnext/node.js"},"browser":{"import":"./edition-browsers/browser.js"}},"deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","devDependencies":{"@bevry/update-contributors":"^1.15.0","@typescript-eslint/eslint-plugin":"^3.9.1","@typescript-eslint/parser":"^3.9.1","assert-helpers":"^7.0.1","eslint":"^7.7.0","eslint-config-bevry":"^3.19.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.11.0","make-deno-edition":"^1.0.0","prettier":"^2.0.5","projectz":"^2.15.0","surge":"^0.21.6","typedoc":"^0.18.0","typescript":"^4.0.2","valid-directory":"^3.0.0","valid-module":"^1.12.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-esnext && npm run our:compile:edition-node-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-node-esm":"tsc --module ESNext --target ESNext --outDir ./edition-node-esm --project tsconfig.json && ( test ! -d edition-node-esm/source || ( mv edition-node-esm/source edition-temp && rm -Rf edition-node-esm && mv edition-temp edition-node-esm ) ) && echo '{\"type\": \"module\"}' > edition-node-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"23c4d0e8e8b093eeb2d17a96e0958d6243ff0909","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/start-of-week\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/start-of-week/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nTake a locale and return its start of the week (0 = Sunday, 1 = Monday)\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/globals.html)\n\n```javascript\nimport getSW from 'start-of-week'\nconsole.log(getSW()) // 0 (Sunday) if user is in North American, otherwise 1 (Monday)\nconsole.log(getSW('')) // 1\nconsole.log(getSW('en_AU')) // 1\nconsole.log(getSW('en_US')) // 0\nconsole.log(getSW('en_CA')) // 0\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Import: <code>import pkg from ('start-of-week')</code></li>\n<li>Require: <code>const pkg = require('start-of-week').default</code></li>\n</ul>\n\n<a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n``` typescript\nimport pkg from 'https://unpkg.com/start-of-week@^3.4.0/edition-deno/deno.ts'\n```\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/start-of-week@^3.4.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^3.4.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@3.4.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/node.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-esnext/node.js</code></li>\n<li><code>start-of-week/edition-esnext/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-browsers/browser.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-node-esm/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-deno/deno.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code made to be compatible with <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative to Node.js\">Deno</a></li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","_id":"start-of-week@3.4.0-next.1599075419.23c4d0e8e8b093eeb2d17a96e0958d6243ff0909","_nodeVersion":"14.9.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-nOYlfBTTVbUvGf3rkMi0WA+Py+V4A8BnDCLJUsCNX6OOzp5ztnwW97prI62sCKbUbksAtYydwA9fhO2iROMfzg==","shasum":"835b2edda1b2fdc76dbe31fb5ea66fd17feb6acb","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-3.4.0-next.1599075419.23c4d0e8e8b093eeb2d17a96e0958d6243ff0909.tgz","fileCount":36,"unpackedSize":36338,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfT/RdCRA9TVsSAnZWagAAYJQQAIxI9my4Rrg7s3SA3nrW\n8IgW9o3O0j05gp6Ymopl6+m/kAYnG6LbM9bq4u3uVZ2+wmyYH4jkom39MWTK\nSIQ8mDi4QJeSMLvyUWPKEGGAI74NsuptPxYqW1/gIEIqZXnZMw67NCnmy9n3\nH0Ba8GwItRTJH1kYVQ68kT4R+zSHuNnfRRZrTyA8JHYLMQC3Cw4fXXgW/dAj\nbc5Ryvime/rdIjN0djobjXGDV9+VKsI0H/4LdpJzC0y4aldQkrG1J2AuQdSe\nCsIvVAnHZ+4zhXHqvrOQj5X0r0JPQXsurzvDrGLsN04/F02GTYLUJXZRE2DP\nz9OCRIk4UupNo4cjFty9W7/4dzPoqyFKe2idWd78jhdvznhZ/ScM5Y5shCNk\ndaVX0PQsPtLzASXT0JJd0UOCkFI+5K01+8xq0EzvMRUIDvtGVF+0VQaY23Nr\n5Ohz6K/C9QKeJr0/hRksq7sJq4MHXi2dQnJMyrCJhh0w5t891Xjrp2BLZVmv\nT0SCkHX/sMhgsOaAPOzywTafwbJFa/iKhhqtKfMa/S2qFiJmw8LK69o6Gn9x\n1UTggc/n6DEwvjaLFUU+X4HBUV6HqiGY4iGVXhhgvuGY4ioZIaaEfay8iNEj\nOEuuRR7B/+obk8nj8QoMsr3BwXQwIIpIYnACs1kwr5xlZBnKC5MI4XcQGlqP\nNp+K\r\n=me5a\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCgJdJ97NDEpY029vR9TcCYyXixTWEFr5IksPbIUt+4yQIhAK79tFzkMbY0sclzZZ5YZbtJlYIwgqWTZhEgft0gaItJ"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_3.4.0-next.1599075419.23c4d0e8e8b093eeb2d17a96e0958d6243ff0909_1599075420812_0.16387450198374065"},"_hasShrinkwrap":false},"3.5.0-next.1599281306.08a0e240bd214d0b3c5f6edbc5a2392fbfe3d16a":{"name":"start-of-week","version":"3.5.0-next.1599281306.08a0e240bd214d0b3c5f6edbc5a2392fbfe3d16a","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","esnext","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"node.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-esnext","entry":"node.js","tags":["compiled","javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ESNext for Node.js 12 || 13 || 14 with Import for modules","directory":"edition-esnext-esm","entry":"node.js","tags":["compiled","javascript","esnext","import"],"engines":{"node":"12 || 13 || 14","browsers":false}},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"./compiled-types/","type":"module","main":"edition-esnext/node.js","exports":{"node":{"import":"./edition-esnext-esm/node.js","require":"./edition-esnext/node.js"},"browser":{"import":"./edition-browsers/browser.js"}},"deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","devDependencies":{"@bevry/update-contributors":"^1.16.0","@typescript-eslint/eslint-plugin":"^4.0.1","@typescript-eslint/parser":"^4.0.1","assert-helpers":"^7.2.0","eslint":"^7.8.1","eslint-config-bevry":"^3.22.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.12.0","make-deno-edition":"^1.1.1","prettier":"^2.1.1","projectz":"^2.16.0","surge":"^0.21.6","typedoc":"^0.19.1","typescript":"^4.0.2","valid-directory":"^3.3.0","valid-module":"^1.13.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-esnext && npm run our:compile:edition-esnext-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-esnext-esm":"tsc --module ESNext --target ESNext --outDir ./edition-esnext-esm --project tsconfig.json && ( test ! -d edition-esnext-esm/source || ( mv edition-esnext-esm/source edition-temp && rm -Rf edition-esnext-esm && mv edition-temp edition-esnext-esm ) ) && echo '{\"type\": \"module\"}' > edition-esnext-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"08a0e240bd214d0b3c5f6edbc5a2392fbfe3d16a","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/start-of-week\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/start-of-week/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nTake a locale and return its start of the week (0 = Sunday, 1 = Monday)\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/globals.html)\n\n```javascript\nimport getSW from 'start-of-week'\nconsole.log(getSW()) // 0 (Sunday) if user is in North American, otherwise 1 (Monday)\nconsole.log(getSW('')) // 1\nconsole.log(getSW('en_AU')) // 1\nconsole.log(getSW('en_US')) // 0\nconsole.log(getSW('en_CA')) // 0\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Import: <code>import pkg from ('start-of-week')</code></li>\n<li>Require: <code>const pkg = require('start-of-week').default</code></li>\n</ul>\n\n<a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n``` typescript\nimport pkg from 'https://unpkg.com/start-of-week@^3.5.0/edition-deno/deno.ts'\n```\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/start-of-week@^3.5.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^3.5.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@3.5.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/node.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-browsers/browser.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-esnext/node.js</code></li>\n<li><code>start-of-week/edition-esnext/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-esnext-esm/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 12 || 13 || 14 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-deno/deno.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code made to be compatible with <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative to Node.js\">Deno</a></li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","_id":"start-of-week@3.5.0-next.1599281306.08a0e240bd214d0b3c5f6edbc5a2392fbfe3d16a","_nodeVersion":"14.9.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-/VeGt3982LmeuMJySfd2QH4gnQziPGXijXaH0iFYgZ35OH1NGWgKWxtu7gDgReydhd1bm/hjLBnFesOGNAfuIQ==","shasum":"a746ec08a5953c398ebce1292350162fc838ae31","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-3.5.0-next.1599281306.08a0e240bd214d0b3c5f6edbc5a2392fbfe3d16a.tgz","fileCount":36,"unpackedSize":36720,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfUxibCRA9TVsSAnZWagAAZIkP/0TK6AOzuHijpLfXDOQ3\nL55VoPZWaGZEQuw++3palWPo6NzHA/4sTlgXVahRi7pbFo6zeym7MGtrRn4c\nIRg9ClU37yq/6w8454i6ZVrEVhYkS+1/OOF1z85/6aB5IoOFj8uXYAgk9qU3\n0M8Fb6wsegs2Cq39VaGo1e0HvZGmwXbUKTYRyWZ/N42/c3905R/2GpgR+fSH\nRGzlyOaJqfkGmsyG+4bANlomfngeMGgqgKkh+6M1vIOXg7iGxA3pfpSFaapy\nkI6DItICtFf8+k70RuDINipsGZYTZYc9WgVLBUPoZvdQaBSUp3mnp7Q/orry\nG4rN+M+dwNTGB/skYWwLFkGCYW4Gt0aKOv+n+25KiiInKCaLM+w3dylJ+iwm\norKb9c1saguyYyqznqsVFTZI90Uq3OxsaK9rVoga76Jb3zR8ROsmvWrI/A5V\ntTUHg1iH+JFZTakTPOUfZ+Qh2rQFlz+HeOKKj0KTU87BA+Iw9mN7szcmuvFw\nNw+bzr9cFsF/iGdKa1glQDa61Xy+ljq9wCpJrTGJWTJsg6P8yXNxScFpJUes\nrwDR5K9I+VzYX1fGG4e0g0mPkpfTuMPhujv3nFhacZrJjMhj7iRhIBVsAMa1\nES+jFGdnwoZ3BSiGpCmMwexukyL/CNxli0qXI9TMOTWRCUWVbvu7xZI3Xw33\nm7Fn\r\n=1RNc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFYfK0D8EaOZB30wEn6LWN0IhRriFhTt5p3iwZ6OmC4TAiAxIk9+TbyL9aRvXiRUTIvwTFGhFkMTf7Uy4R4bT6HXaQ=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_3.5.0-next.1599281306.08a0e240bd214d0b3c5f6edbc5a2392fbfe3d16a_1599281307467_0.70050176617073"},"_hasShrinkwrap":false},"3.5.0":{"name":"start-of-week","version":"3.5.0","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","esnext","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"node.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-esnext","entry":"node.js","tags":["compiled","javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ESNext for Node.js 12 || 13 || 14 with Import for modules","directory":"edition-esnext-esm","entry":"node.js","tags":["compiled","javascript","esnext","import"],"engines":{"node":"12 || 13 || 14","browsers":false}},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"./compiled-types/","type":"module","main":"edition-esnext/node.js","exports":{"node":{"import":"./edition-esnext-esm/node.js","require":"./edition-esnext/node.js"},"browser":{"import":"./edition-browsers/browser.js"}},"deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","devDependencies":{"@bevry/update-contributors":"^1.16.0","@typescript-eslint/eslint-plugin":"^4.0.1","@typescript-eslint/parser":"^4.0.1","assert-helpers":"^7.2.0","eslint":"^7.8.1","eslint-config-bevry":"^3.22.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.12.0","make-deno-edition":"^1.1.1","prettier":"^2.1.1","projectz":"^2.16.0","surge":"^0.21.6","typedoc":"^0.19.1","typescript":"^4.0.2","valid-directory":"^3.3.0","valid-module":"^1.13.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-esnext && npm run our:compile:edition-esnext-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-esnext-esm":"tsc --module ESNext --target ESNext --outDir ./edition-esnext-esm --project tsconfig.json && ( test ! -d edition-esnext-esm/source || ( mv edition-esnext-esm/source edition-temp && rm -Rf edition-esnext-esm && mv edition-temp edition-esnext-esm ) ) && echo '{\"type\": \"module\"}' > edition-esnext-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"08a0e240bd214d0b3c5f6edbc5a2392fbfe3d16a","_id":"start-of-week@3.5.0","_nodeVersion":"14.9.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-ej52QIRKlyXZ1PdK76IQ9RkNiFfrzV+UCOk+K07KVv703Rkx0GFhTu7eXjFZxAITgLy+J1Z7YIqLi5bWrIVFJw==","shasum":"f52ab93913f2925392f21558822238d1fc174d8d","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-3.5.0.tgz","fileCount":36,"unpackedSize":36663,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfUxjuCRA9TVsSAnZWagAA3f0QAKODmqFWBO508yq56WiE\nHuFHrnLYYVfx1qkuzPnlVmm+jQZvSO/I0WwrwCqUCInf9zSM1hzIYh0i7Ocp\ncMDxhraqtPXxXmHPsSmDFLLPwRYkRlJvijRh1RkWlFTdwLGQtB3byYYdAWPl\nV9sSrw39uIm11lpyFe+Vv9J6qBJDHW+cSizG6LScgH/VEIgVGqM2k5muTq+q\nc5K9iUGfYIqeWc7L32+Ne43HRP/1c9ypUgnie995SDpGw8s0/xJM55+ox7Oy\nZf8TfaCASMt17NRfwi4tSCTG93qbkoacKjW5mdoIZfSVQJzHWjxSR/Ux6orR\nyrzXxJcNhQVz8dqxf3RMiDHJqbUe9/RLKfCSGqmlOowZEseIO01tlY98ORL2\nd0viNs3WKPS3MjyxIxZKZocIjSZ0nffHfPI5n2c9gPHbGrYdRtVFPLDF6b8F\nEHKQ/AIQ61ODHxOdTo+wdLykO0Z+QmN6EkiTHIeM1wFdCZGQ9J+8bwR68Erw\n5ISUvm9MJeGYKZXOtDkFSC/wiajJ3G4ZHZcWY+fptiIefrCUd5ZTTIokDaY8\nL1OrW8HeqWMYHA6UlBvpStokQ2DfBcynIvg5jgwezurGMjNffAP4zVxstHyv\n/cCyb2GNovx1NpCWmPP2lT3gGFdXnM3hYOWPGGj9Y8Fq/VEfQJazO5VlCz63\nrjtQ\r\n=uEFx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBOE1yrC8YnPo8+9Vmaxp3h/gLR8KArOLL/xIoWUDyNUAiBDYTuDyuyI1ee6dHNBWYJYMW5uommdhdXVKJ0NIh79ZQ=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_3.5.0_1599281390413_0.2295938572463665"},"_hasShrinkwrap":false},"3.5.0-next.1599392962.5afca68cd5085d20079af863922e0b49b4f40c47":{"name":"start-of-week","version":"3.5.0-next.1599392962.5afca68cd5085d20079af863922e0b49b4f40c47","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","esnext","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"node.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-esnext","entry":"node.js","tags":["compiled","javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ESNext for Node.js 12 || 13 || 14 with Import for modules","directory":"edition-esnext-esm","entry":"node.js","tags":["compiled","javascript","esnext","import"],"engines":{"node":"12 || 13 || 14","browsers":false}},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"./compiled-types/","type":"module","main":"edition-esnext/node.js","exports":{"node":{"import":"./edition-esnext-esm/node.js","require":"./edition-esnext/node.js"},"browser":{"import":"./edition-browsers/browser.js"}},"deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","devDependencies":{"@bevry/update-contributors":"^1.16.0","@typescript-eslint/eslint-plugin":"^4.0.1","@typescript-eslint/parser":"^4.0.1","assert-helpers":"^7.2.0","eslint":"^7.8.1","eslint-config-bevry":"^3.22.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.12.0","make-deno-edition":"^1.1.1","prettier":"^2.1.1","projectz":"^2.16.0","surge":"^0.21.6","typedoc":"^0.19.1","typescript":"^4.0.2","valid-directory":"^3.3.0","valid-module":"^1.13.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-esnext && npm run our:compile:edition-esnext-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-esnext-esm":"tsc --module ESNext --target ESNext --outDir ./edition-esnext-esm --project tsconfig.json && ( test ! -d edition-esnext-esm/source || ( mv edition-esnext-esm/source edition-temp && rm -Rf edition-esnext-esm && mv edition-temp edition-esnext-esm ) ) && echo '{\"type\": \"module\"}' > edition-esnext-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"5afca68cd5085d20079af863922e0b49b4f40c47","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/start-of-week\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/start-of-week/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nTake a locale and return its start of the week (0 = Sunday, 1 = Monday)\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/globals.html)\n\n```javascript\nimport getSW from 'start-of-week'\nconsole.log(getSW()) // 0 (Sunday) if user is in North American, otherwise 1 (Monday)\nconsole.log(getSW('')) // 1\nconsole.log(getSW('en_AU')) // 1\nconsole.log(getSW('en_US')) // 0\nconsole.log(getSW('en_CA')) // 0\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Import: <code>import pkg from ('start-of-week')</code></li>\n<li>Require: <code>const pkg = require('start-of-week').default</code></li>\n</ul>\n\n<a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n``` typescript\nimport pkg from 'https://unpkg.com/start-of-week@^3.5.0/edition-deno/deno.ts'\n```\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/start-of-week@^3.5.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^3.5.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@3.5.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/node.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-browsers/browser.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-esnext/node.js</code></li>\n<li><code>start-of-week/edition-esnext/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-esnext-esm/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 12 || 13 || 14 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-deno/deno.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code made to be compatible with <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative to Node.js\">Deno</a></li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","_id":"start-of-week@3.5.0-next.1599392962.5afca68cd5085d20079af863922e0b49b4f40c47","_nodeVersion":"14.9.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-eA1dWqImXMioQyr1fQCvLaaKZ4q7529x+yHQsPzbJv/X1EK5D2rPxrn8p3VKuGmFNJI25GHbE5pLc+R5WPkODw==","shasum":"1a2770e60ed940e78def1d46cda5a7b8103e7aa5","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-3.5.0-next.1599392962.5afca68cd5085d20079af863922e0b49b4f40c47.tgz","fileCount":36,"unpackedSize":36720,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfVMzECRA9TVsSAnZWagAAAYwQAJfLqH7fCStiZJnrp8Hw\nW2nb/u2aiXy6XSSheQGq0qNIEXZJ7+DKXAtdGl+nGpP4VRJ+DXoV0K5kZCFu\nhzCc7ktZ4zmRVS6O+hIe9lafAKeluopse1dcXbf5xvHRQ8RqgpjeH7DA0hxS\nQjvjQw5vLrPsmqa1bcLvTyxVminfXPtYJTAHdRpyvhQiHqTR5rjoGVSvvZ6q\nT0WEbXkpJSZrYGwayLFrDbuCuDBxk1LjiURYDE7eCx5amfF6AAAUItS/5vhX\niZkl1xq4mmKhlpy17d+Zsa8VhOvHsXBoAZq7Fv+tUtAmr0O9XyfUZlR+5GR0\ngYgKXq+dSZ3rHCr6fm5xbvSupzysJJgUchPp/s345lprTEJt9fjbLlN/SM8o\n1f7PLfMlpjWuSfpXMwOYsC8PHyJn+TXjBF5T6xi4TV3mkby13Jwsi7wyG1CO\nQyH6iex9gq6nl2lUFuI0eXrMZSHE0mzQxMK3Q2ujZ6pnzLs01Jxq0q1rdkcg\nPN3uIJDT3u807kWB/H1goZXPOnIWgM0kFTgAHvVHDks7t6wuTo/rwt7HjJKE\nKQGsvJGAzVM74n/jqyowaLl28FM8zbQZSYee1xSamjs2FyNHjKf4oMQpR4HL\nXqq48HNad264Qt8Q/zcKRVKKZzva4/r56zNhPzCJn5VcpDIHSdfFGur8/l8K\nnh6x\r\n=TTaP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDt6CdIB/zNZHZ9t7c2VanzGR/fzRpH67tCd7CArxf4hQIhANAcu+xNtOOxYKIiqhWPgc+2QD25Our9zQjr36jpjdsM"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_3.5.0-next.1599392962.5afca68cd5085d20079af863922e0b49b4f40c47_1599392964095_0.4124001920730609"},"_hasShrinkwrap":false},"3.5.0-next.1599393504.2b4b4462883c153b1a1e80e80ceeae62ce05660d":{"name":"start-of-week","version":"3.5.0-next.1599393504.2b4b4462883c153b1a1e80e80ceeae62ce05660d","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","esnext","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"node.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-esnext","entry":"node.js","tags":["compiled","javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ESNext for Node.js 12 || 13 || 14 with Import for modules","directory":"edition-esnext-esm","entry":"node.js","tags":["compiled","javascript","esnext","import"],"engines":{"node":"12 || 13 || 14","browsers":false}},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"./compiled-types/","type":"module","main":"edition-esnext/node.js","exports":{"node":{"import":"./edition-esnext-esm/node.js","require":"./edition-esnext/node.js"},"browser":{"import":"./edition-browsers/browser.js"}},"deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","devDependencies":{"@bevry/update-contributors":"^1.16.0","@typescript-eslint/eslint-plugin":"^4.0.1","@typescript-eslint/parser":"^4.0.1","assert-helpers":"^7.2.0","eslint":"^7.8.1","eslint-config-bevry":"^3.22.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.12.0","make-deno-edition":"^1.1.1","prettier":"^2.1.1","projectz":"^2.16.0","surge":"^0.21.6","typedoc":"^0.19.1","typescript":"^4.0.2","valid-directory":"^3.3.0","valid-module":"^1.13.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-esnext && npm run our:compile:edition-esnext-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-esnext-esm":"tsc --module ESNext --target ESNext --outDir ./edition-esnext-esm --project tsconfig.json && ( test ! -d edition-esnext-esm/source || ( mv edition-esnext-esm/source edition-temp && rm -Rf edition-esnext-esm && mv edition-temp edition-esnext-esm ) ) && echo '{\"type\": \"module\"}' > edition-esnext-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"2b4b4462883c153b1a1e80e80ceeae62ce05660d","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/start-of-week\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/start-of-week/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nTake a locale and return its start of the week (0 = Sunday, 1 = Monday)\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/globals.html)\n\n```javascript\nimport getSW from 'start-of-week'\nconsole.log(getSW()) // 0 (Sunday) if user is in North American, otherwise 1 (Monday)\nconsole.log(getSW('')) // 1\nconsole.log(getSW('en_AU')) // 1\nconsole.log(getSW('en_US')) // 0\nconsole.log(getSW('en_CA')) // 0\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Import: <code>import pkg from ('start-of-week')</code></li>\n<li>Require: <code>const pkg = require('start-of-week').default</code></li>\n</ul>\n\n<a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n``` typescript\nimport pkg from 'https://unpkg.com/start-of-week@^3.5.0/edition-deno/deno.ts'\n```\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/start-of-week@^3.5.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^3.5.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@3.5.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/node.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-browsers/browser.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-esnext/node.js</code></li>\n<li><code>start-of-week/edition-esnext/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-esnext-esm/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 12 || 13 || 14 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-deno/deno.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code made to be compatible with <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative to Node.js\">Deno</a></li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","_id":"start-of-week@3.5.0-next.1599393504.2b4b4462883c153b1a1e80e80ceeae62ce05660d","_nodeVersion":"14.9.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-hkIKo3HKHRdT9I387Bidq8PIiNXrji5oNTTABgV68f3gMBXn0qiGyj2EUeRfZ05aZx3zqY9kiFc7y8Ve84BQEA==","shasum":"2b8d1ccd5eae2c98c471eb6b2a88705b3ec907d7","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-3.5.0-next.1599393504.2b4b4462883c153b1a1e80e80ceeae62ce05660d.tgz","fileCount":36,"unpackedSize":36720,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfVM7iCRA9TVsSAnZWagAAC5UP/ijWhXb90YJJj4KZc02Y\nLyc1c8zNyjTs9MP46po7ENLklCDNz7uVuY0vp2cLGO9ApeuFdOOFwZx7sYN7\ndhBQG1I7RIM2tMxtAplm9MKlDki0IDVhDrB9sAy+HM2NNn7KTtPNYZbJaguC\n/o+yGmGlhL7TS0KMheqTVf4RgIf3NBArO79MZ/xm9vnZluyjd8qLIXoLgmTU\ncPN470YfhDaE+wBaTIqACZFfBvDUsTpxQjT4j4pMyyA57jLPlWldNkyv3t9i\nYxqo8jF5QqRy0+w/Q+xV2mJNhxHxsyYHnqLrhbbjv0E0GGpjlIrmc2pkLZHQ\nXesUie0gvmukKu9Jr5kp2wZiejTpjExXVLym9rbwvWz1y2adqf8Hrihw3hZD\nNrZ6zlEOBLkmyFSDANNjHphAERM3Zjxz9CNtkNbQ1A4UqJTRI8veN6tDzym7\nwqJ0IGQbdj7NsKIk5MAf3DYC6NlmBgxT4TMyLG6GI9RdgxBCBNfyQFy8M1R4\n6w0vJO98Y3GsKnh/yl/GEr7r2mTZMGMZKh8aviu5ybB3NZyUZMdsEmV5Y36k\n/YI8gg+sF5TveHkduKmHVksWAMAqK48jVtCXzXkrDUdDXAo9L4bSPaYs/NbU\nFt5uMsrY+uEJtHkgJ74jTF0D9ThuUabKywG4E79NY76uI6RWD1wuwA8zkGAU\n1fKo\r\n=xIMP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCvsFOozwTtUSwsd7AKggIcYCn9nTSVXeHkzg6SxLIp5AIhANesBaeSqqXo79xLeLbsBZ6ExiEoASHyKIwrkZHE4O0+"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_3.5.0-next.1599393504.2b4b4462883c153b1a1e80e80ceeae62ce05660d_1599393505579_0.8840831151038606"},"_hasShrinkwrap":false},"3.5.0-next.1599394702.0d68eebb1af7ef381017c9eed3963365c3eb7209":{"name":"start-of-week","version":"3.5.0-next.1599394702.0d68eebb1af7ef381017c9eed3963365c3eb7209","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","esnext","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"node.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-esnext","entry":"node.js","tags":["compiled","javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ESNext for Node.js 12 || 13 || 14 with Import for modules","directory":"edition-esnext-esm","entry":"node.js","tags":["compiled","javascript","esnext","import"],"engines":{"node":"12 || 13 || 14","browsers":false}},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"./compiled-types/","type":"module","main":"edition-esnext/node.js","exports":{"node":{"import":"./edition-esnext-esm/node.js","require":"./edition-esnext/node.js"},"browser":{"import":"./edition-browsers/browser.js"}},"deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","devDependencies":{"@bevry/update-contributors":"^1.16.0","@typescript-eslint/eslint-plugin":"^4.0.1","@typescript-eslint/parser":"^4.0.1","assert-helpers":"^7.2.0","eslint":"^7.8.1","eslint-config-bevry":"^3.22.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.12.0","make-deno-edition":"^1.1.1","prettier":"^2.1.1","projectz":"^2.16.0","surge":"^0.21.6","typedoc":"^0.19.1","typescript":"^4.0.2","valid-directory":"^3.3.0","valid-module":"^1.13.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-esnext && npm run our:compile:edition-esnext-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-esnext-esm":"tsc --module ESNext --target ESNext --outDir ./edition-esnext-esm --project tsconfig.json && ( test ! -d edition-esnext-esm/source || ( mv edition-esnext-esm/source edition-temp && rm -Rf edition-esnext-esm && mv edition-temp edition-esnext-esm ) ) && echo '{\"type\": \"module\"}' > edition-esnext-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"0d68eebb1af7ef381017c9eed3963365c3eb7209","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/start-of-week\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/start-of-week/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nTake a locale and return its start of the week (0 = Sunday, 1 = Monday)\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/globals.html)\n\n```javascript\nimport getSW from 'start-of-week'\nconsole.log(getSW()) // 0 (Sunday) if user is in North American, otherwise 1 (Monday)\nconsole.log(getSW('')) // 1\nconsole.log(getSW('en_AU')) // 1\nconsole.log(getSW('en_US')) // 0\nconsole.log(getSW('en_CA')) // 0\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Import: <code>import pkg from ('start-of-week')</code></li>\n<li>Require: <code>const pkg = require('start-of-week').default</code></li>\n</ul>\n\n<a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n``` typescript\nimport pkg from 'https://unpkg.com/start-of-week@^3.5.0/edition-deno/deno.ts'\n```\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/start-of-week@^3.5.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^3.5.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@3.5.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/node.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-browsers/browser.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-esnext/node.js</code></li>\n<li><code>start-of-week/edition-esnext/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-esnext-esm/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 12 || 13 || 14 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-deno/deno.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code made to be compatible with <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative to Node.js\">Deno</a></li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","_id":"start-of-week@3.5.0-next.1599394702.0d68eebb1af7ef381017c9eed3963365c3eb7209","_nodeVersion":"14.9.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-HpMviAOcpmYMM1oF4tFjkrHgJgbOBKnhFvepNb6+sHpGcdwqsxrWtvucELyUJ3aKDJxwRZbPfW+PkVHGNGTqrA==","shasum":"657b7eba10911cfacd322a2dedc136937ca2fa92","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-3.5.0-next.1599394702.0d68eebb1af7ef381017c9eed3963365c3eb7209.tgz","fileCount":36,"unpackedSize":36720,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfVNOPCRA9TVsSAnZWagAAd/sQAJGvRjfY79dc3U4+I5y+\nP3XwdvL9osbDFwR0gHr08YSMRVWsnGWfN9uOQA/d7mkzFkmznninbvHRmMDp\nuf1KwJJGbcl31xf/3rVkEZYHIwFyvIz6T8qzjpzKBkTMIPVOalkZdP+4c44v\ntRO/w1g0kMdSyaA8ka9pjNnPjx/tjXZtou7Foo1l87B8+sEYK9/eKLDOPQTE\nzF8SyJ54FVi/IEbp6FVWkjglx4BARksHNvPq5paKpNiLyFHfjMmWKbtDc5WL\nvDpx8M8Rg1Z0iGPrjtnoJxU4ZQdWvh++/JTOSySn/lKIzl5rYNDTSE98lqqz\nFv/0v3DJVH6+nqDLdbLGW1DAdbjYSEwTcRQn99H2ifaQ2sU0Thx/sR4YF5FE\njswbU0XC8dT+qKPJnhaJt2YmNCiIG8cnkEeuLSvXyWsww+5pkMaeJWTaNtR9\ngtBGgf2LFN0CcjYLSpbaRzbyG6kjlR3TiNzgz02rzFZD5BkczNVp3lAnH4Vr\ntJQzy+Bxhfp8yIsNE8zwIl2qD2sA2iaybRYqj3HxjwCsjR9bUamepI4qrYUR\nvqYcXpmwrXA1QLtpEqJENCrmg49h+YsH/ieNcbqNhCsQePj1mGcNuK0G6pFQ\nbHdUIKMgL82DuXgwKxxJnIzrAQ8ZpyvvHy2bt+uxTcTUp6MKY8hxsdScgEKu\nOIz7\r\n=xrsu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCyx/ADeP+H5ViNyyCLIBjAsDuQ6VpmZQtnxD1+nv6iFwIhAI2XxAanK9BPJILHfhEpi7s6q2VBe30/11DuJyTzFdzZ"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_3.5.0-next.1599394702.0d68eebb1af7ef381017c9eed3963365c3eb7209_1599394703508_0.9700177020424907"},"_hasShrinkwrap":false},"3.5.0-next.1599989953.c800f1ddb0fa9051b3164bb94c2be545112d2f61":{"name":"start-of-week","version":"3.5.0-next.1599989953.c800f1ddb0fa9051b3164bb94c2be545112d2f61","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","esnext","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"node.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-esnext","entry":"node.js","tags":["compiled","javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ESNext for Node.js 12 || 13 || 14 with Import for modules","directory":"edition-esnext-esm","entry":"node.js","tags":["compiled","javascript","esnext","import"],"engines":{"node":"12 || 13 || 14","browsers":false}},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"./compiled-types/","type":"module","main":"edition-esnext/node.js","exports":{"node":{"import":"./edition-esnext-esm/node.js","require":"./edition-esnext/node.js"},"browser":{"import":"./edition-browsers/browser.js"}},"deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","devDependencies":{"@bevry/update-contributors":"^1.16.0","@typescript-eslint/eslint-plugin":"^4.0.1","@typescript-eslint/parser":"^4.0.1","assert-helpers":"^7.2.0","eslint":"^7.8.1","eslint-config-bevry":"^3.22.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.12.0","make-deno-edition":"^1.1.1","prettier":"^2.1.1","projectz":"^2.16.0","surge":"^0.21.6","typedoc":"^0.19.1","typescript":"^4.0.2","valid-directory":"^3.3.0","valid-module":"^1.13.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-esnext && npm run our:compile:edition-esnext-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-esnext-esm":"tsc --module ESNext --target ESNext --outDir ./edition-esnext-esm --project tsconfig.json && ( test ! -d edition-esnext-esm/source || ( mv edition-esnext-esm/source edition-temp && rm -Rf edition-esnext-esm && mv edition-temp edition-esnext-esm ) ) && echo '{\"type\": \"module\"}' > edition-esnext-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"c800f1ddb0fa9051b3164bb94c2be545112d2f61","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/start-of-week\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/start-of-week/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nTake a locale and return its start of the week (0 = Sunday, 1 = Monday)\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/globals.html)\n\n```javascript\nimport getSW from 'start-of-week'\nconsole.log(getSW()) // 0 (Sunday) if user is in North American, otherwise 1 (Monday)\nconsole.log(getSW('')) // 1\nconsole.log(getSW('en_AU')) // 1\nconsole.log(getSW('en_US')) // 0\nconsole.log(getSW('en_CA')) // 0\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Import: <code>import pkg from ('start-of-week')</code></li>\n<li>Require: <code>const pkg = require('start-of-week').default</code></li>\n</ul>\n\n<a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n``` typescript\nimport pkg from 'https://unpkg.com/start-of-week@^3.5.0/edition-deno/deno.ts'\n```\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/start-of-week@^3.5.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^3.5.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@3.5.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/node.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-browsers/browser.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-esnext/node.js</code></li>\n<li><code>start-of-week/edition-esnext/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-esnext-esm/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 12 || 13 || 14 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-deno/deno.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code made to be compatible with <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative to Node.js\">Deno</a></li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","_id":"start-of-week@3.5.0-next.1599989953.c800f1ddb0fa9051b3164bb94c2be545112d2f61","_nodeVersion":"14.10.1","_npmVersion":"6.14.8","dist":{"integrity":"sha512-wrOAiHFn7nU+Y9znP3MADCNo3Kl+pqmM6rpzcL5SKW4TE77U9IkDQAaiIKWiN57SlL9h9OnAlgSPZd2xCM+L9Q==","shasum":"503b70c87ed46038ed9d5438017b581e39a179cb","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-3.5.0-next.1599989953.c800f1ddb0fa9051b3164bb94c2be545112d2f61.tgz","fileCount":36,"unpackedSize":36720,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfXejDCRA9TVsSAnZWagAAhScP/1fNaWajRiTfGplltK1c\nwCVkZxKy0LxEaZZrKdWoL7GWwwE/BUKviYS4OKcIsq5RwOKml1Ncbytlu8Wj\nDDuUJe8Tzek4QODfRZcO9TQKMC06qM8tR1Qcy314thKC0k79GS3NAzjqi+2G\nWpZ+rv/yr2JATUf1EWOXFxGCUiTdc461vxZu05jEUxFZ5ZowM99PEbT6VCP4\n3rMDNeS+AEhAzvPDIBR4KUTJepVdyr6iaZcEUwjoK3Q6M7pqxjRRnRoS2nj4\nXc5tWcXBwl8/NUj82CtuK0ghnDFo6HzRonU8Oqy4tdR2Ql6X45+1A4BzvBby\n729QsdvB9Uia6lFC8UYtXa9ULudJs67uP/GIpsuAB40GRZ8L9hKhJnv9lgfL\nZlqebVtCF9uUGtYOv3LAXgxH91TEyXRp0zL0tLLJAbWa87H44Ap8x0CHKfVl\nLO7GSmj123AFqbnaYHn2L4NQPA8/M48nRQfQwjK+lf8b/ElJsRF4CTXa9wrB\nXuw10+E9EjDvt70UqJpRC+xrX/mYlwObtJMiN4c/imqFGdJAx2VpBl30FOaY\nV7ps+Yvisn1u4Ub6Itxw3jACgFMZtymauu5nKIJGEMR52UUI9wO/2IVMh28C\nl7RRxnrRSJKDwWoc74sbkYc05XQni3AGzrv+bqq+yBKF8OnCcsIbUkvD6Do9\nbO6B\r\n=lrZm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICnt2piS/4rnyt/osL8/gekxiXdXhigUdo0YfGNO8YxoAiEA+nyz9PHPsVBG4Z5qRSc913uNpd5VNrTExTRvGn4+qQ8="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_3.5.0-next.1599989953.c800f1ddb0fa9051b3164bb94c2be545112d2f61_1599989954713_0.42358934737615295"},"_hasShrinkwrap":false},"3.5.0-next.1599992430.e477d8988feae14afecbe7d649fe67d29371aae0":{"name":"start-of-week","version":"3.5.0-next.1599992430.e477d8988feae14afecbe7d649fe67d29371aae0","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","esnext","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"node.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-esnext","entry":"node.js","tags":["compiled","javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ESNext for Node.js 12 || 13 || 14 with Import for modules","directory":"edition-esnext-esm","entry":"node.js","tags":["compiled","javascript","esnext","import"],"engines":{"node":"12 || 13 || 14","browsers":false}},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"./compiled-types/","type":"module","main":"edition-esnext/node.js","exports":{"node":{"import":"./edition-esnext-esm/node.js","require":"./edition-esnext/node.js"},"browser":{"import":"./edition-browsers/browser.js"}},"deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","devDependencies":{"@bevry/update-contributors":"^1.16.0","@typescript-eslint/eslint-plugin":"^4.0.1","@typescript-eslint/parser":"^4.0.1","assert-helpers":"^7.2.0","eslint":"^7.8.1","eslint-config-bevry":"^3.22.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.12.0","make-deno-edition":"^1.1.1","prettier":"^2.1.1","projectz":"^2.16.0","surge":"^0.21.6","typedoc":"^0.19.1","typescript":"^4.0.2","valid-directory":"^3.3.0","valid-module":"^1.13.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-esnext && npm run our:compile:edition-esnext-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-esnext-esm":"tsc --module ESNext --target ESNext --outDir ./edition-esnext-esm --project tsconfig.json && ( test ! -d edition-esnext-esm/source || ( mv edition-esnext-esm/source edition-temp && rm -Rf edition-esnext-esm && mv edition-temp edition-esnext-esm ) ) && echo '{\"type\": \"module\"}' > edition-esnext-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"e477d8988feae14afecbe7d649fe67d29371aae0","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/start-of-week\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/start-of-week/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nTake a locale and return its start of the week (0 = Sunday, 1 = Monday)\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/globals.html)\n\n```javascript\nimport getSW from 'start-of-week'\nconsole.log(getSW()) // 0 (Sunday) if user is in North American, otherwise 1 (Monday)\nconsole.log(getSW('')) // 1\nconsole.log(getSW('en_AU')) // 1\nconsole.log(getSW('en_US')) // 0\nconsole.log(getSW('en_CA')) // 0\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Import: <code>import pkg from ('start-of-week')</code></li>\n<li>Require: <code>const pkg = require('start-of-week').default</code></li>\n</ul>\n\n<a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n``` typescript\nimport pkg from 'https://unpkg.com/start-of-week@^3.5.0/edition-deno/deno.ts'\n```\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/start-of-week@^3.5.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^3.5.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@3.5.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/node.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-browsers/browser.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-esnext/node.js</code></li>\n<li><code>start-of-week/edition-esnext/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-esnext-esm/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 12 || 13 || 14 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-deno/deno.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code made to be compatible with <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative to Node.js\">Deno</a></li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","_id":"start-of-week@3.5.0-next.1599992430.e477d8988feae14afecbe7d649fe67d29371aae0","_nodeVersion":"14.10.1","_npmVersion":"6.14.8","dist":{"integrity":"sha512-4F+P8j7xPQh2gY+MN/IJbtCAlqRdTxUGk3UAj+RpFXry4Of49/UF+J5tYQUMTX+VPw5Si0vu3Dhip7JlJcpiHQ==","shasum":"bb05717ca5c3e212d9ae2bb584e0de86b819124f","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-3.5.0-next.1599992430.e477d8988feae14afecbe7d649fe67d29371aae0.tgz","fileCount":36,"unpackedSize":36720,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfXfJxCRA9TVsSAnZWagAAOfgP/jmkCMbQ4mfdtCOlkYt1\nXBiddHeLfEfFYPQCPKYSrhdXRtsePT6nMw/z3z8qClKH5g+jgpfKW1pmVAnG\nB633zhXAm2rm41giEqKhmWLcbl9+kYUyxoolD68WM9KP536GF1DzV7w9CUjj\nq7pGmyUO9XxZSrwnGVjjnKyZmaz9ksnKVyTZ/wKrPJaS/PA9uDNxtKVIJWUf\nSoGPplXwIp5V/68B+kLQLTpkuRsX0IVupI+I9jIB9+K7QQmdV/kcrNYuLv4q\nLExl2haCenn6+AVoK5Mzc9zpZkjQLYP0ZAJobNljpj9HPlt1sDQg7RGt0/dd\nK/42l++EdeWAg7CtC6pYwRhuNn3fM5VfqA8/AtXrRgcu7Sew654KQyaRpt00\njGnQCzYxjyY0PB74YprKZ7i58jSzhR6TT1QjgVV9IO/5SRlDDtV94PmqrtGg\nEMI5lvGlmXW30+0MDI3OXDVqtcOP1gnlHmIf8mHqLnj8EeI/6yIxt3FPeVZx\nH4VyD9sa+KK8OMXBifuLgAI/0Yif7E88s4l+pBTAhDUEzqMFc75NS79hRXK9\nObukYyFhkf/v9JqDQ9EEelfxtLT/t0UJ/pEnRL1V8hHtBtbs9EtkSsvvJhFl\nVL7ecNAONiqsRxd5ODBeju/UFrKadjTESMsXDokf923JXkZDnlnMft078M2W\nIFLW\r\n=qfAG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDgpBraZtNqwWuMl/B3MA1ivqTf69IwTjwWP0h4XfLJdgIgGurcryxRljWByIhnknyM13uYjvZHStXeevAVL7qlU6U="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_3.5.0-next.1599992430.e477d8988feae14afecbe7d649fe67d29371aae0_1599992432539_0.6975965236154833"},"_hasShrinkwrap":false},"3.5.0-next.1599995383.12c864efbc2bf9af2b96d0434e38417162dea3bb":{"name":"start-of-week","version":"3.5.0-next.1599995383.12c864efbc2bf9af2b96d0434e38417162dea3bb","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","esnext","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"node.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-esnext","entry":"node.js","tags":["compiled","javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ESNext for Node.js 12 || 13 || 14 with Import for modules","directory":"edition-esnext-esm","entry":"node.js","tags":["compiled","javascript","esnext","import"],"engines":{"node":"12 || 13 || 14","browsers":false}},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"./compiled-types/","type":"module","main":"edition-esnext/node.js","exports":{"node":{"import":"./edition-esnext-esm/node.js","require":"./edition-esnext/node.js"},"browser":{"import":"./edition-browsers/browser.js"}},"deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","devDependencies":{"@bevry/update-contributors":"^1.16.0","@typescript-eslint/eslint-plugin":"^4.0.1","@typescript-eslint/parser":"^4.0.1","assert-helpers":"^7.2.0","eslint":"^7.8.1","eslint-config-bevry":"^3.22.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.12.0","make-deno-edition":"^1.1.1","prettier":"^2.1.1","projectz":"^2.16.0","surge":"^0.21.6","typedoc":"^0.19.1","typescript":"^4.0.2","valid-directory":"^3.3.0","valid-module":"^1.13.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-esnext && npm run our:compile:edition-esnext-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-esnext-esm":"tsc --module ESNext --target ESNext --outDir ./edition-esnext-esm --project tsconfig.json && ( test ! -d edition-esnext-esm/source || ( mv edition-esnext-esm/source edition-temp && rm -Rf edition-esnext-esm && mv edition-temp edition-esnext-esm ) ) && echo '{\"type\": \"module\"}' > edition-esnext-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"12c864efbc2bf9af2b96d0434e38417162dea3bb","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/start-of-week\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/start-of-week/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nTake a locale and return its start of the week (0 = Sunday, 1 = Monday)\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/globals.html)\n\n```javascript\nimport getSW from 'start-of-week'\nconsole.log(getSW()) // 0 (Sunday) if user is in North American, otherwise 1 (Monday)\nconsole.log(getSW('')) // 1\nconsole.log(getSW('en_AU')) // 1\nconsole.log(getSW('en_US')) // 0\nconsole.log(getSW('en_CA')) // 0\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Import: <code>import pkg from ('start-of-week')</code></li>\n<li>Require: <code>const pkg = require('start-of-week').default</code></li>\n</ul>\n\n<a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n``` typescript\nimport pkg from 'https://unpkg.com/start-of-week@^3.5.0/edition-deno/deno.ts'\n```\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/start-of-week@^3.5.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^3.5.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@3.5.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/node.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-browsers/browser.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-esnext/node.js</code></li>\n<li><code>start-of-week/edition-esnext/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-esnext-esm/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 12 || 13 || 14 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-deno/deno.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code made to be compatible with <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative to Node.js\">Deno</a></li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","_id":"start-of-week@3.5.0-next.1599995383.12c864efbc2bf9af2b96d0434e38417162dea3bb","_nodeVersion":"14.10.1","_npmVersion":"6.14.8","dist":{"integrity":"sha512-iJ/Uw606SHHwi3AWx8D8VqXeeHoQy7R/6Wy62fepWi5zO9dcKKOLMKmCR2Wi3z/Wzh7CFyYZC05C5aej5Qgk2g==","shasum":"cff801bec9933ea4bfc7c31298ef020e2b304c0e","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-3.5.0-next.1599995383.12c864efbc2bf9af2b96d0434e38417162dea3bb.tgz","fileCount":36,"unpackedSize":36720,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfXf34CRA9TVsSAnZWagAAktQP/3962SYy/1NUMmBfl/2E\nV6ljwcyh7jOJdeTT+40hGVIiHNdzuWEPof5xGeRAYvNY9iGPM7wpELp83BLG\n+bLPqRn9T/RjKys8Cqt0tzP9KJS0YKMz2rBUl6f6euuUuij+zRbUp8klPnzd\n2I5NOd0S1xiFROQQPnwTzrHrv43tulQ3hW3OvkWqIzEMvR0Ww2iGuTEDFOUe\nX4BZLOtezEpoHkMNiA0HZmQnEY/EvJJBqkbMm5f0bPmj2KVOVsWPDC8icn+W\n9sNyqs0/U9ZzkNVUcRvZdUeM15cf+PCGxZer7XWFWhdRHv3nlfc1QbfbecSF\nlpKs/fWlQ9EpIRDXSxu8FLhmLgo+yzEhz6kAAQYBmNJWh+r7D4eW/1n1o2aM\nvcGjdP+X/fyC7jdaJ+0trEpYfEHJ+t5/mKLWRdccKmi7xfJEHjEWRlmBDVHA\nHS32XzsybSCpACHKERxYGvk9ZMI2L7y/Qi1/DfJe/kGEI0iRCDUGwJ4rGBmo\nt3iNOjFyA7x0bw5osQuQTGImXIQuNDlLE+BH99B6iZ/eQ4YsnkJShd6ouIlX\neUrpbxRewPVz0/vaFvEUB7c36i+nMqTG/gMwzEFtsGQHwPJsFUgJCRIPq9HP\nKBLX3juHuFLx6tkJYUlN1ujbh4bB2mBu6PsaPQ30+S95NYI/2q5YcfHJNF1+\nXKQz\r\n=/AMz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD9nTWVn/YtQQiK93JFw8TaMJwzkvX6EOzclhQoFFlrCQIgZONuY6ktOPdvcDf5IAbjmDw3ucxqrqZrbxQGT3PhK4E="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_3.5.0-next.1599995383.12c864efbc2bf9af2b96d0434e38417162dea3bb_1599995384331_0.2038665490403475"},"_hasShrinkwrap":false},"3.5.0-next.1600598216.1e867f50b7dec84610958cbd2d2b70a06d42ffca":{"name":"start-of-week","version":"3.5.0-next.1600598216.1e867f50b7dec84610958cbd2d2b70a06d42ffca","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","esnext","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"node.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-esnext","entry":"node.js","tags":["compiled","javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ESNext for Node.js 12 || 13 || 14 with Import for modules","directory":"edition-esnext-esm","entry":"node.js","tags":["compiled","javascript","esnext","import"],"engines":{"node":"12 || 13 || 14","browsers":false}},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"./compiled-types/","type":"module","main":"edition-esnext/node.js","exports":{"node":{"import":"./edition-esnext-esm/node.js","require":"./edition-esnext/node.js"},"browser":{"import":"./edition-browsers/browser.js"}},"deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","devDependencies":{"@bevry/update-contributors":"^1.16.0","@typescript-eslint/eslint-plugin":"^4.0.1","@typescript-eslint/parser":"^4.0.1","assert-helpers":"^7.2.0","eslint":"^7.8.1","eslint-config-bevry":"^3.22.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.12.0","make-deno-edition":"^1.1.1","prettier":"^2.1.1","projectz":"^2.16.0","surge":"^0.21.6","typedoc":"^0.19.1","typescript":"^4.0.2","valid-directory":"^3.3.0","valid-module":"^1.13.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-esnext && npm run our:compile:edition-esnext-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-esnext-esm":"tsc --module ESNext --target ESNext --outDir ./edition-esnext-esm --project tsconfig.json && ( test ! -d edition-esnext-esm/source || ( mv edition-esnext-esm/source edition-temp && rm -Rf edition-esnext-esm && mv edition-temp edition-esnext-esm ) ) && echo '{\"type\": \"module\"}' > edition-esnext-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"1e867f50b7dec84610958cbd2d2b70a06d42ffca","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/start-of-week\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/start-of-week/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nTake a locale and return its start of the week (0 = Sunday, 1 = Monday)\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/globals.html)\n\n```javascript\nimport getSW from 'start-of-week'\nconsole.log(getSW()) // 0 (Sunday) if user is in North American, otherwise 1 (Monday)\nconsole.log(getSW('')) // 1\nconsole.log(getSW('en_AU')) // 1\nconsole.log(getSW('en_US')) // 0\nconsole.log(getSW('en_CA')) // 0\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Import: <code>import pkg from ('start-of-week')</code></li>\n<li>Require: <code>const pkg = require('start-of-week').default</code></li>\n</ul>\n\n<a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n``` typescript\nimport pkg from 'https://unpkg.com/start-of-week@^3.5.0/edition-deno/deno.ts'\n```\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/start-of-week@^3.5.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^3.5.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@3.5.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/node.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-browsers/browser.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-esnext/node.js</code></li>\n<li><code>start-of-week/edition-esnext/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-esnext-esm/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 12 || 13 || 14 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-deno/deno.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code made to be compatible with <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative to Node.js\">Deno</a></li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","_id":"start-of-week@3.5.0-next.1600598216.1e867f50b7dec84610958cbd2d2b70a06d42ffca","_nodeVersion":"14.11.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-9eL4SvUJjxkgszpBMB1EHQ1XzYXDrY7UxH9ug0RYoEmYen1liUeLHhq1vKWjCn15k7ve/vQSi3d5yxKzCT9Zmw==","shasum":"6e35de46f7373e15bff42456dd3d0f7e6691f2f9","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-3.5.0-next.1600598216.1e867f50b7dec84610958cbd2d2b70a06d42ffca.tgz","fileCount":36,"unpackedSize":36720,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfZzDKCRA9TVsSAnZWagAAtzIQAKRVQbFW/+Vnw3NggseA\niY5I4waIZLPgVqwI26SG3jJnbBIYntistgM1/2lRBwwlv8Ag20aRCW+WJru+\nSaZdQNuGJWbK5PxL/FJ/dxPiB845UCzJ3G4gkkTUnFGG62Y2whNS6OsnP4bM\njOelSslyJPn5IGmwvz5czZDqY/vWxNVg7jqXIxEl4ZL7wsAzVplx7X8KqmOL\nd+lRebYws5JrGfV8cNcPq7EacizyfsMcax/UFPNZJFuYY6rYeZ4Mp7oZcsE8\nDXZhg5q1c77hqJM6LvTFK+reFXwIX7U0FVI158VkXstJTej/Pvm+OTM1txY5\nJDSOx72m16nMtJm8kSDndl2YWUn8euTDsRnbTg58ImBNqj0bq58iVAWpMMkf\nTt/3Uzry/OelRSiwwELTNQbuupWwajKNEa+BASFoErEgbv7+ME5ejluSM7K4\nGA7lVwd5wWTVL6Lf0KdoRjIB/pMw4/i5Nbs1HFhre8WmcCGcXEPNbfFUzl7j\nuvRd3aGSxvGVv2eRbI8wOUYL+IHJSjH9bsGPUIjV1UfxNtCVb5F6GsjxKYGo\nq02B/f9KUloeaIUXKl2BVpMnxB7atEb0SQfGcezR8/OcTadcWF2U1yXtjtZC\nlm/DvT0XW3Yv+vPF0QX5rl5AKmzHqSa6i5nKAd+ss62JxtS9gDnDLbuKpyoC\nVK2U\r\n=2NM3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCdcE1Oj2mEyDgOEbzh0zuH11ehUTSbmYCj0AWznS70bAIgGs1Buu3wCojTpwuDmm9zdaBzWsjbYJu806/eNWxX7DE="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_3.5.0-next.1600598216.1e867f50b7dec84610958cbd2d2b70a06d42ffca_1600598217796_0.7794505407433125"},"_hasShrinkwrap":false},"3.5.0-next.1600598853.d78ebcd2fb67bdeb3510cf331c3708738415d81d":{"name":"start-of-week","version":"3.5.0-next.1600598853.d78ebcd2fb67bdeb3510cf331c3708738415d81d","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","esnext","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"node.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-esnext","entry":"node.js","tags":["compiled","javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ESNext for Node.js 12 || 13 || 14 with Import for modules","directory":"edition-esnext-esm","entry":"node.js","tags":["compiled","javascript","esnext","import"],"engines":{"node":"12 || 13 || 14","browsers":false}},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"./compiled-types/","type":"module","main":"edition-esnext/node.js","exports":{"node":{"import":"./edition-esnext-esm/node.js","require":"./edition-esnext/node.js"},"browser":{"import":"./edition-browsers/browser.js"}},"deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","devDependencies":{"@bevry/update-contributors":"^1.16.0","@typescript-eslint/eslint-plugin":"^4.0.1","@typescript-eslint/parser":"^4.0.1","assert-helpers":"^7.2.0","eslint":"^7.8.1","eslint-config-bevry":"^3.22.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.12.0","make-deno-edition":"^1.1.1","prettier":"^2.1.1","projectz":"^2.16.0","surge":"^0.21.6","typedoc":"^0.19.1","typescript":"^4.0.2","valid-directory":"^3.3.0","valid-module":"^1.13.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-esnext && npm run our:compile:edition-esnext-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-esnext-esm":"tsc --module ESNext --target ESNext --outDir ./edition-esnext-esm --project tsconfig.json && ( test ! -d edition-esnext-esm/source || ( mv edition-esnext-esm/source edition-temp && rm -Rf edition-esnext-esm && mv edition-temp edition-esnext-esm ) ) && echo '{\"type\": \"module\"}' > edition-esnext-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"d78ebcd2fb67bdeb3510cf331c3708738415d81d","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/start-of-week\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/start-of-week/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nTake a locale and return its start of the week (0 = Sunday, 1 = Monday)\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/globals.html)\n\n```javascript\nimport getSW from 'start-of-week'\nconsole.log(getSW()) // 0 (Sunday) if user is in North American, otherwise 1 (Monday)\nconsole.log(getSW('')) // 1\nconsole.log(getSW('en_AU')) // 1\nconsole.log(getSW('en_US')) // 0\nconsole.log(getSW('en_CA')) // 0\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Import: <code>import pkg from ('start-of-week')</code></li>\n<li>Require: <code>const pkg = require('start-of-week').default</code></li>\n</ul>\n\n<a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n``` typescript\nimport pkg from 'https://unpkg.com/start-of-week@^3.5.0/edition-deno/deno.ts'\n```\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/start-of-week@^3.5.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^3.5.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@3.5.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/node.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-browsers/browser.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-esnext/node.js</code></li>\n<li><code>start-of-week/edition-esnext/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-esnext-esm/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 12 || 13 || 14 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-deno/deno.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code made to be compatible with <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative to Node.js\">Deno</a></li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","_id":"start-of-week@3.5.0-next.1600598853.d78ebcd2fb67bdeb3510cf331c3708738415d81d","_nodeVersion":"14.11.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-KaxdeqapZP/bKdkSkB8N+YN40DfRZUXA0P9PncUXXN5QRNbUMWJKUaScO/KBew7xwW36wisDPFZr5qqpdMxvfg==","shasum":"c5be6da4828079b59f115d8ae372905a2ffb3899","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-3.5.0-next.1600598853.d78ebcd2fb67bdeb3510cf331c3708738415d81d.tgz","fileCount":36,"unpackedSize":36720,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfZzNHCRA9TVsSAnZWagAAec0QAJlFG0rgzuH/NrizVOHl\nj3MgcipRWt6MF4MqL33EwhZDzNTRWSiaejsroYxuFLtmiMoJmhk7F9AQJh9B\nDAH4EqBjyp1IAFt00M6uAXdK6tc/JqukzShXfPNAhAtzk1jBBjqwwb3M2KSM\n2m0GgiO/0t+gF+xDb4WhtTdLq56dCZucAaSpy3/HVQLuRney3U+C3z6lOs9e\nLCReJgBBVrQBRYwkvil0t2CDLzPxM4Y59ZgdHEyn5LX+d4+W64ej5bN9+o/2\n57JnLiNDjHvMSe1AcTjqGpTLsrwsDBPKfClE6OS+uREV6HtOcRujcajoqgwZ\n5Yz3EiIfYw8dPHkEu+A1st9+su/sGtuN1Gn+8U/MQwAtknUeVT+ds+snW+Md\nExfCDcjoGm6H6zi6kmYyJOvq41G1pc5vjjRbOcrTFWSmAimyFQYrRkFC6yTq\nFk39RWbX1sZU1ksVMcsISNYnJSo8wSrNwi4YaSyQ/ZhhbLCwq70tZZnKI2ja\nl6oFZHLeXD86pkM8i9map+LY1oWAFBof3+At4jgx+Tzc27DEiZYvhAGQPEF4\n23OcB4wf100ij4EbhQQQnan+7b33b9ZmA9cEI/o3wq+kmkBEviU8IDl34h07\nVNP4Wv6rHasN8r63Yi8gl9sA9hb9EJm4xYDbns91YhZmCjiPorS0FbrkIN5R\nF6bT\r\n=VQBV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCarbeeFZaRanOI41okni8Ite8td2T7b7jqr2ctANmFSgIhAMFjs762tmWChnawK/ZtOFuvdWgdC7n/HKREdqfHp3Ho"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_3.5.0-next.1600598853.d78ebcd2fb67bdeb3510cf331c3708738415d81d_1600598854867_0.7711964659554869"},"_hasShrinkwrap":false},"3.5.0-next.1600605912.e749faf5cba4f1eddae5cdc33e71e7758c6982cd":{"name":"start-of-week","version":"3.5.0-next.1600605912.e749faf5cba4f1eddae5cdc33e71e7758c6982cd","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","esnext","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"node.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-esnext","entry":"node.js","tags":["compiled","javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ESNext for Node.js 12 || 13 || 14 with Import for modules","directory":"edition-esnext-esm","entry":"node.js","tags":["compiled","javascript","esnext","import"],"engines":{"node":"12 || 13 || 14","browsers":false}},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"./compiled-types/","type":"module","main":"edition-esnext/node.js","exports":{"node":{"import":"./edition-esnext-esm/node.js","require":"./edition-esnext/node.js"},"browser":{"import":"./edition-browsers/browser.js"}},"deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","devDependencies":{"@bevry/update-contributors":"^1.16.0","@typescript-eslint/eslint-plugin":"^4.0.1","@typescript-eslint/parser":"^4.0.1","assert-helpers":"^7.2.0","eslint":"^7.8.1","eslint-config-bevry":"^3.22.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.12.0","make-deno-edition":"^1.1.1","prettier":"^2.1.1","projectz":"^2.16.0","surge":"^0.21.6","typedoc":"^0.19.1","typescript":"^4.0.2","valid-directory":"^3.3.0","valid-module":"^1.13.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-esnext && npm run our:compile:edition-esnext-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-esnext-esm":"tsc --module ESNext --target ESNext --outDir ./edition-esnext-esm --project tsconfig.json && ( test ! -d edition-esnext-esm/source || ( mv edition-esnext-esm/source edition-temp && rm -Rf edition-esnext-esm && mv edition-temp edition-esnext-esm ) ) && echo '{\"type\": \"module\"}' > edition-esnext-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"e749faf5cba4f1eddae5cdc33e71e7758c6982cd","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/start-of-week\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/start-of-week/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nTake a locale and return its start of the week (0 = Sunday, 1 = Monday)\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/globals.html)\n\n```javascript\nimport getSW from 'start-of-week'\nconsole.log(getSW()) // 0 (Sunday) if user is in North American, otherwise 1 (Monday)\nconsole.log(getSW('')) // 1\nconsole.log(getSW('en_AU')) // 1\nconsole.log(getSW('en_US')) // 0\nconsole.log(getSW('en_CA')) // 0\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Import: <code>import pkg from ('start-of-week')</code></li>\n<li>Require: <code>const pkg = require('start-of-week').default</code></li>\n</ul>\n\n<a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n``` typescript\nimport pkg from 'https://unpkg.com/start-of-week@^3.5.0/edition-deno/deno.ts'\n```\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/start-of-week@^3.5.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^3.5.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@3.5.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/node.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-browsers/browser.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-esnext/node.js</code></li>\n<li><code>start-of-week/edition-esnext/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-esnext-esm/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 12 || 13 || 14 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-deno/deno.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code made to be compatible with <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative to Node.js\">Deno</a></li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","_id":"start-of-week@3.5.0-next.1600605912.e749faf5cba4f1eddae5cdc33e71e7758c6982cd","_nodeVersion":"14.11.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-jhDnEX/V6seXxpENvZEsMuoTz5emPUb5wu2YlfRjLd0OD86wnOnq6vdRzae2kljTiMdFdWhaCqGYXoUVzeIA/Q==","shasum":"dac1f8a1438b06e7c65ca9fac9a9c28262870f11","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-3.5.0-next.1600605912.e749faf5cba4f1eddae5cdc33e71e7758c6982cd.tgz","fileCount":36,"unpackedSize":36720,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfZ07aCRA9TVsSAnZWagAAXzkQAIXdWYYzc3II6JDaNOdF\nmcwDaWCmRDkCLmqL8Rm0ThDYX/F2czBEYRmpyHg0Qq8Hkvi42LVD6S4wjsPy\n074GpeEeeeRxq/0BNjgp7fYgIr3ceyceCEhrXcw5TDaJXgQaE1rJX5mdfEhv\n+WcaZqOmnOrtRFyDgp7WOmAv8VcHoA3Zi4gaistbM5f3q3EtbNim9OQ/MiAu\niryZpyA8v5KHj+izSfQiyRHdqGKmI7U7Pd2bjRFazXEyiqPmD0bwuRiixjHX\nHv9OI96mwIaw9BqdI/bsHH1QDC2aP9lvBQ1VybQxVrVEpMx4XeZmapg1/OZF\nUHGNdWyzvExWPrmLTTxH2I5XCdSG3DQhJiAYnSkHoeLzKNXGQ9yrPSWxPZsh\nRtyRi9MPLTCmU+9m2VNHJ84hJaXkX5WQvNk40EZGO5XCSuZHrlZFisjjDIbY\n1Rh7J+wIAUwhy0P58S0FB0a2WtWNnybcT8UE4IGOuk9cH+5xGkgSjSv0CGl+\n2HEZdOhKUMIlOq9ZHpK3FUdXK04Lg+eRSMwgCFP7TfAM2YL1EiXwJCFeh5Fq\nb9ULId/8qC9t9SfiGIQPz7k/fH5GV8juIKxKygmi43/+i5EsVUKucv3Co9xH\n3DuxxPjovePPuPqzIoP0xnKSrSwNPs2ygjzGqmIAjqnDI0WeHxbnhA1un6GH\nFIcX\r\n=sAre\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBuNWAbrqSUga6VYA3JIUYKxR4unnW2bCCieafdifNrKAiEA+a74t2k9vySgzWYhP8xGxZiDOwEVJgd5UUw13EyfoWs="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_3.5.0-next.1600605912.e749faf5cba4f1eddae5cdc33e71e7758c6982cd_1600605913622_0.4241968239236291"},"_hasShrinkwrap":false},"3.5.0-next.1601204747.4aa4533765bd40f9ef3ef2474b670202b19be19e":{"name":"start-of-week","version":"3.5.0-next.1601204747.4aa4533765bd40f9ef3ef2474b670202b19be19e","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","esnext","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"node.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-esnext","entry":"node.js","tags":["compiled","javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ESNext for Node.js 12 || 13 || 14 with Import for modules","directory":"edition-esnext-esm","entry":"node.js","tags":["compiled","javascript","esnext","import"],"engines":{"node":"12 || 13 || 14","browsers":false}},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"./compiled-types/","type":"module","main":"edition-esnext/node.js","exports":{"node":{"import":"./edition-esnext-esm/node.js","require":"./edition-esnext/node.js"},"browser":{"import":"./edition-browsers/browser.js"}},"deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","devDependencies":{"@bevry/update-contributors":"^1.16.0","@typescript-eslint/eslint-plugin":"^4.0.1","@typescript-eslint/parser":"^4.0.1","assert-helpers":"^7.2.0","eslint":"^7.8.1","eslint-config-bevry":"^3.22.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.12.0","make-deno-edition":"^1.1.1","prettier":"^2.1.1","projectz":"^2.16.0","surge":"^0.21.6","typedoc":"^0.19.1","typescript":"^4.0.2","valid-directory":"^3.3.0","valid-module":"^1.13.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-esnext && npm run our:compile:edition-esnext-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-esnext-esm":"tsc --module ESNext --target ESNext --outDir ./edition-esnext-esm --project tsconfig.json && ( test ! -d edition-esnext-esm/source || ( mv edition-esnext-esm/source edition-temp && rm -Rf edition-esnext-esm && mv edition-temp edition-esnext-esm ) ) && echo '{\"type\": \"module\"}' > edition-esnext-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"4aa4533765bd40f9ef3ef2474b670202b19be19e","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/start-of-week\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/start-of-week/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nTake a locale and return its start of the week (0 = Sunday, 1 = Monday)\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/globals.html)\n\n```javascript\nimport getSW from 'start-of-week'\nconsole.log(getSW()) // 0 (Sunday) if user is in North American, otherwise 1 (Monday)\nconsole.log(getSW('')) // 1\nconsole.log(getSW('en_AU')) // 1\nconsole.log(getSW('en_US')) // 0\nconsole.log(getSW('en_CA')) // 0\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Import: <code>import pkg from ('start-of-week')</code></li>\n<li>Require: <code>const pkg = require('start-of-week').default</code></li>\n</ul>\n\n<a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n``` typescript\nimport pkg from 'https://unpkg.com/start-of-week@^3.5.0/edition-deno/deno.ts'\n```\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/start-of-week@^3.5.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^3.5.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@3.5.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/node.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-browsers/browser.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-esnext/node.js</code></li>\n<li><code>start-of-week/edition-esnext/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-esnext-esm/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 12 || 13 || 14 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-deno/deno.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code made to be compatible with <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative to Node.js\">Deno</a></li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","_id":"start-of-week@3.5.0-next.1601204747.4aa4533765bd40f9ef3ef2474b670202b19be19e","_nodeVersion":"14.12.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-NDSP5YXVruCYmnE+eL4Kor118BHlkovZJ/A3bUyM38122TIj+3KT3rzIhmGQQgDp1mAZaWod9W36TL4KvN1L0Q==","shasum":"370a21133f5053cc8d9e35cce7b15d8ab515b012","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-3.5.0-next.1601204747.4aa4533765bd40f9ef3ef2474b670202b19be19e.tgz","fileCount":36,"unpackedSize":36720,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfcHINCRA9TVsSAnZWagAAE+YQAJKQkq2Ig9azyQSvZjmy\ndpxTWsFV7Qq9aNBAivKP0aKOFJOfENVWkYK642K4Uui0/Ffy5ur1XGsMment\nJFFqNgBGWpxMq9DK/CIsAsPW5SJ+/yNto9C4SpzQGxI6AKfKgsAFjzYR+8wN\nQHK+1nA6QptdYL9P1gcoPEnjCVB34cTGaWY1M8QmGdoojVJfWppUYJV/mXR8\n2h+nL5gW040oBGaPFiN80x8EJF7QhGzvU3NOtZFfK5lEvBFLw1Z00I81ONrL\nFmFTtrR2XC9svtB6X/ETcluETw8EPZFjpjFAMeIYwPqBBEz0JhFPeNQcGwxv\nE3Ys7ELMqg1APtkRTjdkoYwBQ5It7/sRGjm7/AyMcg4egOt7bFK2SpPt7fYb\nztnywYlTMrVjdj3DCg9EKvfueFCHKbqW7ltyStFKUNUSDVWueF4nqsclgk1D\nFI3qFFS+kgsmiNm2YcjhX9pIVwbbVJtE7OlqhEAQEN43YQ3znaxDWK0ZHMGa\nJmVB13uVT6+4IIntwzN2FarGTLF0xs9IS84o+1ncwROAXmZbPu2hXjy8QLV4\nw8YiA0MdvZmGf/PlHbS3yA48eSvEpnhP3eGsoQ9tJOFZWyqsZ/L+Ue6rSlz2\nb/CUpU2lQbcLFR0QxKvUt2dGJl14/3k0zarOnvO5LQe5KGW6K/8W4rBtsUdB\npL+8\r\n=DJwN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCk8+YCWEuLhcnhM6dVB6p5bDOic03e/OcFQ3lsodiOeAIhAPmgkoHdObfURDXhXt+D2dpY4too9lCQaNrUpfjTkoRT"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_3.5.0-next.1601204747.4aa4533765bd40f9ef3ef2474b670202b19be19e_1601204748749_0.8705371530049197"},"_hasShrinkwrap":false},"3.5.0-next.1601206325.8cea5be5e6e9c7b54bf602d721d1d47edd5ad0af":{"name":"start-of-week","version":"3.5.0-next.1601206325.8cea5be5e6e9c7b54bf602d721d1d47edd5ad0af","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","esnext","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"node.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-esnext","entry":"node.js","tags":["compiled","javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ESNext for Node.js 12 || 13 || 14 with Import for modules","directory":"edition-esnext-esm","entry":"node.js","tags":["compiled","javascript","esnext","import"],"engines":{"node":"12 || 13 || 14","browsers":false}},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"./compiled-types/","type":"module","main":"edition-esnext/node.js","exports":{"node":{"import":"./edition-esnext-esm/node.js","require":"./edition-esnext/node.js"},"browser":{"import":"./edition-browsers/browser.js"}},"deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","devDependencies":{"@bevry/update-contributors":"^1.16.0","@typescript-eslint/eslint-plugin":"^4.0.1","@typescript-eslint/parser":"^4.0.1","assert-helpers":"^7.2.0","eslint":"^7.8.1","eslint-config-bevry":"^3.22.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.12.0","make-deno-edition":"^1.1.1","prettier":"^2.1.1","projectz":"^2.16.0","surge":"^0.21.6","typedoc":"^0.19.1","typescript":"^4.0.2","valid-directory":"^3.3.0","valid-module":"^1.13.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-esnext && npm run our:compile:edition-esnext-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-esnext-esm":"tsc --module ESNext --target ESNext --outDir ./edition-esnext-esm --project tsconfig.json && ( test ! -d edition-esnext-esm/source || ( mv edition-esnext-esm/source edition-temp && rm -Rf edition-esnext-esm && mv edition-temp edition-esnext-esm ) ) && echo '{\"type\": \"module\"}' > edition-esnext-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"8cea5be5e6e9c7b54bf602d721d1d47edd5ad0af","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/start-of-week\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/start-of-week/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nTake a locale and return its start of the week (0 = Sunday, 1 = Monday)\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/globals.html)\n\n```javascript\nimport getSW from 'start-of-week'\nconsole.log(getSW()) // 0 (Sunday) if user is in North American, otherwise 1 (Monday)\nconsole.log(getSW('')) // 1\nconsole.log(getSW('en_AU')) // 1\nconsole.log(getSW('en_US')) // 0\nconsole.log(getSW('en_CA')) // 0\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Import: <code>import pkg from ('start-of-week')</code></li>\n<li>Require: <code>const pkg = require('start-of-week').default</code></li>\n</ul>\n\n<a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n``` typescript\nimport pkg from 'https://unpkg.com/start-of-week@^3.5.0/edition-deno/deno.ts'\n```\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/start-of-week@^3.5.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^3.5.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@3.5.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/node.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-browsers/browser.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-esnext/node.js</code></li>\n<li><code>start-of-week/edition-esnext/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-esnext-esm/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 12 || 13 || 14 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-deno/deno.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code made to be compatible with <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative to Node.js\">Deno</a></li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","_id":"start-of-week@3.5.0-next.1601206325.8cea5be5e6e9c7b54bf602d721d1d47edd5ad0af","_nodeVersion":"14.12.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-EozEXJ+usLX2cfJp70a0qTIeOuNihB5jP1YaQdac5JW0rWcQ2JgtXsNEi+tGUJsKJKBaE0q0KC1dIQE1xAH2sw==","shasum":"dbd4b323abeda39f1c812ea45c0d660d80ed2c71","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-3.5.0-next.1601206325.8cea5be5e6e9c7b54bf602d721d1d47edd5ad0af.tgz","fileCount":36,"unpackedSize":36720,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfcHg3CRA9TVsSAnZWagAAPp4QAI3KhzpZljtl+tulUi2w\ni9sCkjINKM3B7MUkPtKTDYbCCcF+Weg8e3QfB0EMhhICK7IniRRMWqg27fmd\nTQ5uh6GaPF5T6HwVROHkd78yx+CnK48jTK6s3+zBYFbnN9ZK3A/mqHzUH0FA\nvNeoum+0s9XNARzuE8ERMwVnRtq8S82R6Fr0z1yKkZQSqb30EaGf6J3y4KnQ\nAVk0rjQPMDwksri27drH0BV05gkZJHmm2GFg9bg3OPY+C0XIT6R5hJCa2YdU\nvtOkNTZI117j+xPqA31kmANoJIQjurK/8ub6bI2dTdvOpGXGHp1o57XyVofS\naUmw8eehBx+yBVelr0N27CLl3Rp74W/qgES6jMRvQBNfsE9V+QI8KkiHLl64\naijghcAZF0u+JAorkQVXgwzM3M+UtYWLrqFpROJC0998csM1TS+r2GX+PvrD\nEPQlX7FWq1LeSOgCPIJ8bJKunZ8wyq4/r2tC6Z9ArGeBqDtzOkl4RX+2aRpK\nzqGM58GCMILk3CDrEd8+t9o/EqhIAv3vOsGrR3fhSDspuhnvbvcKz+W0uRuo\ntQnmD/13Bss+48XZaSLI5cEUhdjK/GzaHJXL/y4h/tUkaAkRJFqpQRIWX8Li\nD78czkIx8owkph7DIRSGtzfG0bKnnFzb8QHvuusIZe3XxkL8hyEbMaSKijQa\n1RCS\r\n=1xev\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHs4HJKZj6Y4bC8tqNIMf5ZOc2Rv37DvsZLSVwGtfTO+AiBAxaUSC95AzTWudDSbWCKQruwqvDG8tyiMt2R4SXZ42Q=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_3.5.0-next.1601206325.8cea5be5e6e9c7b54bf602d721d1d47edd5ad0af_1601206326937_0.6051302077882668"},"_hasShrinkwrap":false},"3.5.0-next.1601207982.b6a0887af7c7032efb8bde3b9f44530c449ac45d":{"name":"start-of-week","version":"3.5.0-next.1601207982.b6a0887af7c7032efb8bde3b9f44530c449ac45d","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","esnext","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"node.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-esnext","entry":"node.js","tags":["compiled","javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ESNext for Node.js 12 || 13 || 14 with Import for modules","directory":"edition-esnext-esm","entry":"node.js","tags":["compiled","javascript","esnext","import"],"engines":{"node":"12 || 13 || 14","browsers":false}},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"./compiled-types/","type":"module","main":"edition-esnext/node.js","exports":{"node":{"import":"./edition-esnext-esm/node.js","require":"./edition-esnext/node.js"},"browser":{"import":"./edition-browsers/browser.js"}},"deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","devDependencies":{"@bevry/update-contributors":"^1.16.0","@typescript-eslint/eslint-plugin":"^4.0.1","@typescript-eslint/parser":"^4.0.1","assert-helpers":"^7.2.0","eslint":"^7.8.1","eslint-config-bevry":"^3.22.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.12.0","make-deno-edition":"^1.1.1","prettier":"^2.1.1","projectz":"^2.16.0","surge":"^0.21.6","typedoc":"^0.19.1","typescript":"^4.0.2","valid-directory":"^3.3.0","valid-module":"^1.13.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-esnext && npm run our:compile:edition-esnext-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-esnext-esm":"tsc --module ESNext --target ESNext --outDir ./edition-esnext-esm --project tsconfig.json && ( test ! -d edition-esnext-esm/source || ( mv edition-esnext-esm/source edition-temp && rm -Rf edition-esnext-esm && mv edition-temp edition-esnext-esm ) ) && echo '{\"type\": \"module\"}' > edition-esnext-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"b6a0887af7c7032efb8bde3b9f44530c449ac45d","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/start-of-week\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/start-of-week/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nTake a locale and return its start of the week (0 = Sunday, 1 = Monday)\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/globals.html)\n\n```javascript\nimport getSW from 'start-of-week'\nconsole.log(getSW()) // 0 (Sunday) if user is in North American, otherwise 1 (Monday)\nconsole.log(getSW('')) // 1\nconsole.log(getSW('en_AU')) // 1\nconsole.log(getSW('en_US')) // 0\nconsole.log(getSW('en_CA')) // 0\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Import: <code>import pkg from ('start-of-week')</code></li>\n<li>Require: <code>const pkg = require('start-of-week').default</code></li>\n</ul>\n\n<a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n``` typescript\nimport pkg from 'https://unpkg.com/start-of-week@^3.5.0/edition-deno/deno.ts'\n```\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/start-of-week@^3.5.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^3.5.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@3.5.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/node.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-browsers/browser.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-esnext/node.js</code></li>\n<li><code>start-of-week/edition-esnext/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-esnext-esm/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 12 || 13 || 14 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-deno/deno.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code made to be compatible with <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative to Node.js\">Deno</a></li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","_id":"start-of-week@3.5.0-next.1601207982.b6a0887af7c7032efb8bde3b9f44530c449ac45d","_nodeVersion":"14.12.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-43EjuzqIkFXv9JKa4R+c+IWDTEeSM9xxbnA91DGmayi7YIlr6RygeV8aVvj8vKV8TI5h8jqWGPACUFJyMqgFtA==","shasum":"11cf29d4a8a2f19ea03fcd738825a064271df556","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-3.5.0-next.1601207982.b6a0887af7c7032efb8bde3b9f44530c449ac45d.tgz","fileCount":36,"unpackedSize":36720,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfcH6wCRA9TVsSAnZWagAAJZYP/iT1rTXhv08HDq8qly2I\nh1LnyUKI/keKouUIaO8Hb1NC/vIjUpiBkao5kg+3AHA2uZQ89k9kVxQstX41\nq8JfHGaa3Jqn06YeOoToiOo5C58zQBm7hpJBQe/emJCcGfM79sJhDBLTDM0V\nrNNIf9rMN0U0fAtKVhf+iOmwwx0qTN/DhUz1FCoLM8SXJ8aJi6Qr2Ntj/DeA\nrQZj5SEWN6pARESqWiI+mt0NWnu5bbPe+PJdoOgsXffS6ZbAN3Cftl29Ai9o\nhScU7HbmHIVGEwSllGD4J1OrTdhIBbA3CqYjScCp8ztRzoqaDe+iDLM9Y80b\nhZOMZjC+Hhy6b5b/1P346vi0g8fuuI6axHmNYN2nUz7ufdTWuAwA+V0S1ekQ\n7NxmyBgsAc9gWmfS793jXFvBUTexjOcrEchwEdzhKX//Kvfj1SsmpsF0DMND\nKNLa8c6TGBTxbQ+6MThVgIg9pt2xcd0oRlcBoLoIianBC/7ZxM9nTXd4mG8K\nX4hMn3Ee+MxCHZLKpfEb6UzXi2+cmyFgw/XnrZ8/Qbiy9brQXYEgzRxro3AD\nHhxbZpdP2FYJDKuOtqRUrx+Q8YSEuHIcDOyi8GA0HOWMbicgQqQ1hRMc6hYR\nOyMXoph185iWLu4dUji5XHgPwIgu4R9jokG1NeaBCmAdZ3HC8cwbeKyS+Wck\nmPcm\r\n=S7iJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCTJQmTB148yNnzcAtjTKzD1XZQTjp2DE8h5jI7WVQ9AwIhAK0dLLAia3nUnEnBcLi7ms1/W45jsUJeR0bHJKx+cjsI"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_3.5.0-next.1601207982.b6a0887af7c7032efb8bde3b9f44530c449ac45d_1601207983852_0.7603672846263323"},"_hasShrinkwrap":false},"3.5.0-next.1601213816.23edbd22e1ab6777d0497499579eb9f5d23f17b8":{"name":"start-of-week","version":"3.5.0-next.1601213816.23edbd22e1ab6777d0497499579eb9f5d23f17b8","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","esnext","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"node.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-esnext","entry":"node.js","tags":["compiled","javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ESNext for Node.js 12 || 13 || 14 with Import for modules","directory":"edition-esnext-esm","entry":"node.js","tags":["compiled","javascript","esnext","import"],"engines":{"node":"12 || 13 || 14","browsers":false}},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"./compiled-types/","type":"module","main":"edition-esnext/node.js","exports":{"node":{"import":"./edition-esnext-esm/node.js","require":"./edition-esnext/node.js"},"browser":{"import":"./edition-browsers/browser.js"}},"deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","devDependencies":{"@bevry/update-contributors":"^1.16.0","@typescript-eslint/eslint-plugin":"^4.0.1","@typescript-eslint/parser":"^4.0.1","assert-helpers":"^7.2.0","eslint":"^7.8.1","eslint-config-bevry":"^3.22.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.12.0","make-deno-edition":"^1.1.1","prettier":"^2.1.1","projectz":"^2.16.0","surge":"^0.21.6","typedoc":"^0.19.1","typescript":"^4.0.2","valid-directory":"^3.3.0","valid-module":"^1.13.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-esnext && npm run our:compile:edition-esnext-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-esnext-esm":"tsc --module ESNext --target ESNext --outDir ./edition-esnext-esm --project tsconfig.json && ( test ! -d edition-esnext-esm/source || ( mv edition-esnext-esm/source edition-temp && rm -Rf edition-esnext-esm && mv edition-temp edition-esnext-esm ) ) && echo '{\"type\": \"module\"}' > edition-esnext-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"23edbd22e1ab6777d0497499579eb9f5d23f17b8","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/start-of-week\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/start-of-week/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nTake a locale and return its start of the week (0 = Sunday, 1 = Monday)\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/globals.html)\n\n```javascript\nimport getSW from 'start-of-week'\nconsole.log(getSW()) // 0 (Sunday) if user is in North American, otherwise 1 (Monday)\nconsole.log(getSW('')) // 1\nconsole.log(getSW('en_AU')) // 1\nconsole.log(getSW('en_US')) // 0\nconsole.log(getSW('en_CA')) // 0\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Import: <code>import pkg from ('start-of-week')</code></li>\n<li>Require: <code>const pkg = require('start-of-week').default</code></li>\n</ul>\n\n<a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n``` typescript\nimport pkg from 'https://unpkg.com/start-of-week@^3.5.0/edition-deno/deno.ts'\n```\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/start-of-week@^3.5.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^3.5.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@3.5.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/node.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-browsers/browser.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-esnext/node.js</code></li>\n<li><code>start-of-week/edition-esnext/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-esnext-esm/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 12 || 13 || 14 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-deno/deno.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code made to be compatible with <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative to Node.js\">Deno</a></li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","_id":"start-of-week@3.5.0-next.1601213816.23edbd22e1ab6777d0497499579eb9f5d23f17b8","_nodeVersion":"14.12.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-RdYonGd+DOU9qRYOBpP0cVGZBO46SqwqF88QkjVq07HuXkerbMzHyGna3WJ1oaX9ZxQWS7gGotW6xFVqyzN/WQ==","shasum":"b931112eff6b0d8a2a83839824d8e8a318c78708","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-3.5.0-next.1601213816.23edbd22e1ab6777d0497499579eb9f5d23f17b8.tgz","fileCount":36,"unpackedSize":36720,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfcJV6CRA9TVsSAnZWagAA9woP/jqBAHBsPcCg6w/6fFj0\nAzwBDW1PXKRUk5qhBkA1Sh3jMUuJUvnIvMSr4rogh+zLshVuI00hFUN/Tfoa\nqtSMNXSuZHdtN43SvAXR6vIAZ6UgIQAS4w6GgeS7lI+EYlgIuTRtfe9edHyg\nFW1MyT9+0XM07xMF5ojXDGt2dB5r7XzodNgHoUV7rTmyHzfymSzmyV0lxBJ7\n3nYEVxda1eYJSe0Qi59AMzPFvgU2/pVmn62JBMBWE6MzDpVAa4yY68XEbiIx\nGEIirHYtjHe6GSfOeGDGDVbvcodzJa3Y9lsf9dvXYsbLdq95VqUGokWV3aVd\nY/uNN8e+rqeCM+ugJ803TatnDpwA8azPv17/gJ+Ix91Q/ulWLdb0rScsn4Na\nYGQGV9rgbAKwZJMCW90oLtsZ33+X/dSuy8iZELFY3q+l14e6Msm3fhfuCwhL\n2UYmx8SiiC/+oIFDXuhp8rYlIwZ5wFHo49cog/Ks4TYC9Sej9Pks5ffVqhIk\n83/0MrK2iYpX85Ww+gyqlAwMh2CEE6e00eibGT1xRQSD48XXQoTECwlXrrfX\nXLq4F/3qrPi1Rkj0eSF+fQf26YPDJEbSX9+Q4ZxhGK8cW/faAOW1cePoR6xH\n3lsq9JggKuj6xtz7zlq/cr0vzv659pe0rmzkUjoCSkm0Mb0F6TU0lDz0zkBX\nmalm\r\n=QLZi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA1/p3IeiRkCahz93G4J1IVgph6J8/6zk44q/Tsb8txfAiEA+J8XfX43tYc/vAhkuNOQFlPxk6+gpQDYZAUh97PYTOg="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_3.5.0-next.1601213816.23edbd22e1ab6777d0497499579eb9f5d23f17b8_1601213818227_0.6347900814909682"},"_hasShrinkwrap":false},"3.5.0-next.1601216256.93aeb9c357bad6c8b7e1e8cfd7a0d3709a934638":{"name":"start-of-week","version":"3.5.0-next.1601216256.93aeb9c357bad6c8b7e1e8cfd7a0d3709a934638","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","esnext","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"node.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-esnext","entry":"node.js","tags":["compiled","javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ESNext for Node.js 12 || 13 || 14 with Import for modules","directory":"edition-esnext-esm","entry":"node.js","tags":["compiled","javascript","esnext","import"],"engines":{"node":"12 || 13 || 14","browsers":false}},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"./compiled-types/","type":"module","main":"edition-esnext/node.js","exports":{"node":{"import":"./edition-esnext-esm/node.js","require":"./edition-esnext/node.js"},"browser":{"import":"./edition-browsers/browser.js"}},"deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","devDependencies":{"@bevry/update-contributors":"^1.16.0","@typescript-eslint/eslint-plugin":"^4.0.1","@typescript-eslint/parser":"^4.0.1","assert-helpers":"^7.2.0","eslint":"^7.8.1","eslint-config-bevry":"^3.22.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.12.0","make-deno-edition":"^1.1.1","prettier":"^2.1.1","projectz":"^2.16.0","surge":"^0.21.6","typedoc":"^0.19.1","typescript":"^4.0.2","valid-directory":"^3.3.0","valid-module":"^1.13.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-esnext && npm run our:compile:edition-esnext-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-esnext-esm":"tsc --module ESNext --target ESNext --outDir ./edition-esnext-esm --project tsconfig.json && ( test ! -d edition-esnext-esm/source || ( mv edition-esnext-esm/source edition-temp && rm -Rf edition-esnext-esm && mv edition-temp edition-esnext-esm ) ) && echo '{\"type\": \"module\"}' > edition-esnext-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"93aeb9c357bad6c8b7e1e8cfd7a0d3709a934638","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/start-of-week\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/start-of-week/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nTake a locale and return its start of the week (0 = Sunday, 1 = Monday)\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/globals.html)\n\n```javascript\nimport getSW from 'start-of-week'\nconsole.log(getSW()) // 0 (Sunday) if user is in North American, otherwise 1 (Monday)\nconsole.log(getSW('')) // 1\nconsole.log(getSW('en_AU')) // 1\nconsole.log(getSW('en_US')) // 0\nconsole.log(getSW('en_CA')) // 0\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Import: <code>import pkg from ('start-of-week')</code></li>\n<li>Require: <code>const pkg = require('start-of-week').default</code></li>\n</ul>\n\n<a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n``` typescript\nimport pkg from 'https://unpkg.com/start-of-week@^3.5.0/edition-deno/deno.ts'\n```\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/start-of-week@^3.5.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^3.5.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@3.5.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/node.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-browsers/browser.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-esnext/node.js</code></li>\n<li><code>start-of-week/edition-esnext/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-esnext-esm/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 12 || 13 || 14 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-deno/deno.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code made to be compatible with <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative to Node.js\">Deno</a></li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","_id":"start-of-week@3.5.0-next.1601216256.93aeb9c357bad6c8b7e1e8cfd7a0d3709a934638","_nodeVersion":"14.12.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-2AQ5ZkAusJLtD9hFQbeck2ZsZcNd2+eRXvR6rZmsw5yuwr5+bCxm8P2NEZeasapbQeaoyhJEUOvXWkw13uvvdA==","shasum":"567e41d87d10f9766ac74e524295b2adaa989b9b","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-3.5.0-next.1601216256.93aeb9c357bad6c8b7e1e8cfd7a0d3709a934638.tgz","fileCount":36,"unpackedSize":36720,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfcJ8CCRA9TVsSAnZWagAAbo4P/AmV2OCe/Y2cU4LxZJj/\nZPMRD1Dwuh/WzG9l0e6kmCso1xw3iUlmBhqDE8Kkkk1yMriXmeO+3UwJdqw+\nOCu8lmqZHeEKgb/Ye1JxyDcOUyrwT51kzApKsK9MuWgbUn8ciFBETeVtMEe0\nDbAKOxmPnWCvKZJbG7T8RW5PRU7CxreJwdPmYFsFUjifVlNomrFPU4gaCdvj\n1M7aSuFJLS+be1937ikYrCHh0jiyeiBUlvpmLbgFnpqjArZ1A9IxE60oyisZ\nYi5uPoPfGj3bpqm/d/KlgMkQlVc8sRqp4HWiS7LXMzBM8epVDhuRSTl/fYq8\n+Z6Lp0rneOxS+a3XcQF8ydOoBxi9yzIwWxZBEt8EHnNH8xK0wDPv5tVM6Lv0\nPRu6/eKps+v9TgyXW0qHiG3G6s52U0RAFjCVUsa7Jy9gEMjB7Mi/FQ8P84T1\nR8GTnYv/I0HGU8FZ3zl8a48ga7cZRvCAY7W6Uq4ZkOeQsR3u++fZ45eA0u7C\nh4n0gFLqV70KJTRHTqUnJJ6+TvVw7eNqleKZKfHfjQZJMCQ24q+jXs2/Qfg9\nltFHGBRC6jsv9Yry86fHUhXTUDAoj++XHxhvp+6Rbe+g3MiynRTSfh3MTdWM\nQakdJps9YgtkbU5MX6zGYyeoA2juz/Bqz0FE+H4wYizriFM5DlMOZHCa8Yx7\nmVZ4\r\n=AlSC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCefTM3f6xMzO6Oh62qQjvy/kKYwjYnGjuMmxnbIDc+iQIhAKxTFAQXa57XpKQmIl5xWUvgrfwq2irFKnTZYQ3bE6Hv"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_3.5.0-next.1601216256.93aeb9c357bad6c8b7e1e8cfd7a0d3709a934638_1601216257492_0.8424245389932017"},"_hasShrinkwrap":false},"3.5.0-next.1601797068.6c50a361fa2333d456ca23f062bf9716b76b0150":{"name":"start-of-week","version":"3.5.0-next.1601797068.6c50a361fa2333d456ca23f062bf9716b76b0150","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","esnext","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"node.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-esnext","entry":"node.js","tags":["compiled","javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ESNext for Node.js 12 || 13 || 14 with Import for modules","directory":"edition-esnext-esm","entry":"node.js","tags":["compiled","javascript","esnext","import"],"engines":{"node":"12 || 13 || 14","browsers":false}},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"./compiled-types/","type":"module","main":"edition-esnext/node.js","exports":{"node":{"import":"./edition-esnext-esm/node.js","require":"./edition-esnext/node.js"},"browser":{"import":"./edition-browsers/browser.js"}},"deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","devDependencies":{"@bevry/update-contributors":"^1.16.0","@typescript-eslint/eslint-plugin":"^4.0.1","@typescript-eslint/parser":"^4.0.1","assert-helpers":"^7.2.0","eslint":"^7.8.1","eslint-config-bevry":"^3.22.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.12.0","make-deno-edition":"^1.1.1","prettier":"^2.1.1","projectz":"^2.16.0","surge":"^0.21.6","typedoc":"^0.19.1","typescript":"^4.0.2","valid-directory":"^3.3.0","valid-module":"^1.13.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-esnext && npm run our:compile:edition-esnext-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-esnext-esm":"tsc --module ESNext --target ESNext --outDir ./edition-esnext-esm --project tsconfig.json && ( test ! -d edition-esnext-esm/source || ( mv edition-esnext-esm/source edition-temp && rm -Rf edition-esnext-esm && mv edition-temp edition-esnext-esm ) ) && echo '{\"type\": \"module\"}' > edition-esnext-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"6c50a361fa2333d456ca23f062bf9716b76b0150","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/start-of-week\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/start-of-week/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nTake a locale and return its start of the week (0 = Sunday, 1 = Monday)\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/globals.html)\n\n```javascript\nimport getSW from 'start-of-week'\nconsole.log(getSW()) // 0 (Sunday) if user is in North American, otherwise 1 (Monday)\nconsole.log(getSW('')) // 1\nconsole.log(getSW('en_AU')) // 1\nconsole.log(getSW('en_US')) // 0\nconsole.log(getSW('en_CA')) // 0\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Import: <code>import pkg from ('start-of-week')</code></li>\n<li>Require: <code>const pkg = require('start-of-week').default</code></li>\n</ul>\n\n<a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n``` typescript\nimport pkg from 'https://unpkg.com/start-of-week@^3.5.0/edition-deno/deno.ts'\n```\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/start-of-week@^3.5.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^3.5.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@3.5.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/node.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-browsers/browser.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-esnext/node.js</code></li>\n<li><code>start-of-week/edition-esnext/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-esnext-esm/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 12 || 13 || 14 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-deno/deno.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code made to be compatible with <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative to Node.js\">Deno</a></li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","_id":"start-of-week@3.5.0-next.1601797068.6c50a361fa2333d456ca23f062bf9716b76b0150","_nodeVersion":"14.13.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-n9ORvKCc6QkjnHU3+a6WkFsinrnSa/uF4S1TOcLvb0rpVzaf67hXvwaUQlMWMvk5hGV12hvoy4McPfyKGge3xg==","shasum":"11879ef8224d832e5f992d260a901ca3bff63c93","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-3.5.0-next.1601797068.6c50a361fa2333d456ca23f062bf9716b76b0150.tgz","fileCount":36,"unpackedSize":36720,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfeXvOCRA9TVsSAnZWagAATSUP/j/cZsWgqzROsoEUc2rV\njzMr3V8ZDiqxMO+BVye6fQHldWGUM588JQklPn/sICznEYO+AG0Hrs6TdPnC\nmOxRpzEt66yue558m6B4eo1NgYEfJwWw38UZrculTPbKrvxc/V5yzI9nJYMW\nSy2PqNQW3DthNtEoR9PXiT/GCGSOY3APLdvRR9lTqiL7oqTcemEsQRTZlMIQ\nn1oJlTh1STweQU/nngfYQeQokuzC4vHZtXeAu/LB8axjhah60pSrrJ0alkRK\n/YtZAydey4RkhqsND6iwEWcbJhbw05oSApYUibNTd9QqvstwyOa5SizpjUYY\nmkzFuizOVhYZOJgmRJsergi6V7uCWqhTRFo/qdHk+u1z+Xv46Bo6flKUVsB7\neSkcduuiLCxGKVBkdDKl/ZZFM3Kp3juagZyHeNesIml4NlvkRzGrcWXW/ZFc\nhXAfk5IBEdkWTIrg16nfuWE87v5ojKk9pDCH9EUq5gqvllN1nRBqoKk73MUq\nXDD+c7rS3YSuwaU/YkDbfJtKu8hC0tDbBu9S/uG4M5QnoP5M+sNajFd9cAH6\nIFxKRY2UeB02a24tpS3NElS/RvaRr5dfYIuCT0bhAg5BX1jBOkReLJy/upO/\nNSzeKAcKG4FljNSU5PitBI97BkAFxzoeByZxYVzSunxj+K3smLbMDpHybDil\ny6M3\r\n=NQ61\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGmP/2XKn+QGgxhWM/AixB3k/AEMzf9vimKp0nB+T3iGAiEA9an6ikjQfamKrSOLd5JuJZuMOY9hUYn0Mm/82R79mYY="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_3.5.0-next.1601797068.6c50a361fa2333d456ca23f062bf9716b76b0150_1601797070175_0.22120018179836887"},"_hasShrinkwrap":false},"3.5.0-next.1601798119.1fd8724e04e2d58ebfb50fd1a62a592fd7509cd0":{"name":"start-of-week","version":"3.5.0-next.1601798119.1fd8724e04e2d58ebfb50fd1a62a592fd7509cd0","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","esnext","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"node.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-esnext","entry":"node.js","tags":["compiled","javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ESNext for Node.js 12 || 13 || 14 with Import for modules","directory":"edition-esnext-esm","entry":"node.js","tags":["compiled","javascript","esnext","import"],"engines":{"node":"12 || 13 || 14","browsers":false}},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"./compiled-types/","type":"module","main":"edition-esnext/node.js","exports":{"node":{"import":"./edition-esnext-esm/node.js","require":"./edition-esnext/node.js"},"browser":{"import":"./edition-browsers/browser.js"}},"deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","devDependencies":{"@bevry/update-contributors":"^1.16.0","@typescript-eslint/eslint-plugin":"^4.0.1","@typescript-eslint/parser":"^4.0.1","assert-helpers":"^7.2.0","eslint":"^7.8.1","eslint-config-bevry":"^3.22.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.12.0","make-deno-edition":"^1.1.1","prettier":"^2.1.1","projectz":"^2.16.0","surge":"^0.21.6","typedoc":"^0.19.1","typescript":"^4.0.2","valid-directory":"^3.3.0","valid-module":"^1.13.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-esnext && npm run our:compile:edition-esnext-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-esnext-esm":"tsc --module ESNext --target ESNext --outDir ./edition-esnext-esm --project tsconfig.json && ( test ! -d edition-esnext-esm/source || ( mv edition-esnext-esm/source edition-temp && rm -Rf edition-esnext-esm && mv edition-temp edition-esnext-esm ) ) && echo '{\"type\": \"module\"}' > edition-esnext-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"1fd8724e04e2d58ebfb50fd1a62a592fd7509cd0","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/start-of-week\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/start-of-week/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nTake a locale and return its start of the week (0 = Sunday, 1 = Monday)\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/globals.html)\n\n```javascript\nimport getSW from 'start-of-week'\nconsole.log(getSW()) // 0 (Sunday) if user is in North American, otherwise 1 (Monday)\nconsole.log(getSW('')) // 1\nconsole.log(getSW('en_AU')) // 1\nconsole.log(getSW('en_US')) // 0\nconsole.log(getSW('en_CA')) // 0\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Import: <code>import pkg from ('start-of-week')</code></li>\n<li>Require: <code>const pkg = require('start-of-week').default</code></li>\n</ul>\n\n<a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n``` typescript\nimport pkg from 'https://unpkg.com/start-of-week@^3.5.0/edition-deno/deno.ts'\n```\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/start-of-week@^3.5.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^3.5.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@3.5.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/node.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-browsers/browser.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-esnext/node.js</code></li>\n<li><code>start-of-week/edition-esnext/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-esnext-esm/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 12 || 13 || 14 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-deno/deno.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code made to be compatible with <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative to Node.js\">Deno</a></li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","_id":"start-of-week@3.5.0-next.1601798119.1fd8724e04e2d58ebfb50fd1a62a592fd7509cd0","_nodeVersion":"14.13.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-QFlUwqJMs+dVFakCUJkrft1Gh9CrZqmXwlcPeLPCSoUxpbd9dgNPwQZsg9LCuzWl9JfhZcabwlgQ9zbnxMrsHQ==","shasum":"8225fe6e39578676b17cba961cf145ff9d796cc1","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-3.5.0-next.1601798119.1fd8724e04e2d58ebfb50fd1a62a592fd7509cd0.tgz","fileCount":36,"unpackedSize":36720,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfeX/oCRA9TVsSAnZWagAASnEP/332NReG4lTj1r7sAOgs\nOjDyqn5yAxLcho62bJuC6jSiJtEvm8JqrK0F/HoOWTiWws33pphOcDE+E/7N\nfKK9Mq+2FrmyxbDo/fWdGIBLoRPPjujQciIfp/Y5eWinHAPRnEG8+wivj25G\nVRBdqV2nLF+r879gP8Or+Xf4cl4AZTaRmieoVN6rD47GsZCk2DyJ8IYNvMGR\ntQybLN5p3ngxH1eGgZjjBCX81DBPYaF+PtsbKT3DuMWYYNz8ZJy2d7RhtEx+\nwT4ZIsLzPwkAeZs64n1fP5uod9ovDlpxhJiins4HkxROzoPSiBH5WOEqr1yT\nKu7V9AeknNBcCCLir4vXbez+Ca7b9+5R7eSpDL7/ulfPULGJ3d/bOZ0AtU41\nHm1VXpmw0r4VONv0q9RU4XLklggI5zqpweSvf7QJneW/+33ukRmAyCr30Ay2\nCfTTneN7qQvIAbVdb9US29EgA4FHRK/PreDL/c0Tp2vajhGF8+4ZTIIjWYh6\nc8PmwH74/xyBFTIuPQW1ZySePjmTgpva7+21YWsXDEWqxLocYTqdN64xQCtR\n7hrumvGFQNo18o2F/X7x9uBhZVyqUL6vZTXVhL+4VcX5wFMz0lyhI+AubQ77\nG6d+iVob1GKKMHkRJUD5ktXX+Kyf8e9Le9zsPsgM67J7gysdVxjIr0Qdd7C4\nUGdP\r\n=rjVM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDoxVgcH669asR2neiR1ilZZbm7shmoX2Z5zh4oFJEDOgIhAJAlJ3yKF0iNqAJ7f6drSqKlE6MDXTHZBDXc4qmoWfM0"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_3.5.0-next.1601798119.1fd8724e04e2d58ebfb50fd1a62a592fd7509cd0_1601798120508_0.35006950598532005"},"_hasShrinkwrap":false},"3.5.0-next.1602405186.d9669b9d1197a15ea63eef34fe821f08559d7df3":{"name":"start-of-week","version":"3.5.0-next.1602405186.d9669b9d1197a15ea63eef34fe821f08559d7df3","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","esnext","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"node.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-esnext","entry":"node.js","tags":["compiled","javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ESNext for Node.js 12 || 13 || 14 with Import for modules","directory":"edition-esnext-esm","entry":"node.js","tags":["compiled","javascript","esnext","import"],"engines":{"node":"12 || 13 || 14","browsers":false}},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"./compiled-types/","type":"module","main":"edition-esnext/node.js","exports":{"node":{"import":"./edition-esnext-esm/node.js","require":"./edition-esnext/node.js"},"browser":{"import":"./edition-browsers/browser.js"}},"deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","devDependencies":{"@bevry/update-contributors":"^1.16.0","@typescript-eslint/eslint-plugin":"^4.0.1","@typescript-eslint/parser":"^4.0.1","assert-helpers":"^7.2.0","eslint":"^7.8.1","eslint-config-bevry":"^3.22.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.12.0","make-deno-edition":"^1.1.1","prettier":"^2.1.1","projectz":"^2.16.0","surge":"^0.21.6","typedoc":"^0.19.1","typescript":"^4.0.2","valid-directory":"^3.3.0","valid-module":"^1.13.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-esnext && npm run our:compile:edition-esnext-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-esnext-esm":"tsc --module ESNext --target ESNext --outDir ./edition-esnext-esm --project tsconfig.json && ( test ! -d edition-esnext-esm/source || ( mv edition-esnext-esm/source edition-temp && rm -Rf edition-esnext-esm && mv edition-temp edition-esnext-esm ) ) && echo '{\"type\": \"module\"}' > edition-esnext-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"d9669b9d1197a15ea63eef34fe821f08559d7df3","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/start-of-week\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/start-of-week/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nTake a locale and return its start of the week (0 = Sunday, 1 = Monday)\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/globals.html)\n\n```javascript\nimport getSW from 'start-of-week'\nconsole.log(getSW()) // 0 (Sunday) if user is in North American, otherwise 1 (Monday)\nconsole.log(getSW('')) // 1\nconsole.log(getSW('en_AU')) // 1\nconsole.log(getSW('en_US')) // 0\nconsole.log(getSW('en_CA')) // 0\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Import: <code>import pkg from ('start-of-week')</code></li>\n<li>Require: <code>const pkg = require('start-of-week').default</code></li>\n</ul>\n\n<a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n``` typescript\nimport pkg from 'https://unpkg.com/start-of-week@^3.5.0/edition-deno/deno.ts'\n```\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/start-of-week@^3.5.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^3.5.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@3.5.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/node.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-browsers/browser.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-esnext/node.js</code></li>\n<li><code>start-of-week/edition-esnext/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-esnext-esm/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 12 || 13 || 14 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-deno/deno.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code made to be compatible with <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative to Node.js\">Deno</a></li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","_id":"start-of-week@3.5.0-next.1602405186.d9669b9d1197a15ea63eef34fe821f08559d7df3","_nodeVersion":"14.13.1","_npmVersion":"6.14.8","dist":{"integrity":"sha512-kvps6HDtKpFkVK1DVUnoRPcxq0mu5klDqsASj3cuoN2mpuQaeffxeis61bPxejd52rS6jPEqbz/3MM43jzD5dw==","shasum":"8153f0ead2ba95014fba7b2c0d268fc5d7ecb27b","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-3.5.0-next.1602405186.d9669b9d1197a15ea63eef34fe821f08559d7df3.tgz","fileCount":36,"unpackedSize":36720,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfgsNECRA9TVsSAnZWagAAX8oP/09U7ciPWDfFN0ycX7OM\n3ktCcQeUxJI0NHZCc3wChffaLicftCE2ryai8e0cfVvX4KSPrgd18KYo4Wj1\ni10J3IdR+A+ndTC4wY/2p04rte2dbVhPQo5M0a/vucR2hk+nidcwOq1/lkvy\nl7xA9tyi2UfsyAwVFt81tlABeaxhYw67530n2SMuSEdGgMvJ0YPEtiMW24F0\n0Vm74/kdgdG+6KSeTg2JDfl1aDNc6VJifGV82LqynduQx+eyGl7ZzYCmIDI+\nKhBqDa4nLzosS8jscBMG4q7lRJGdlJ2RAvCe8caNPNJBPUIGQlD5KAhKj544\nZ+fl4qHvWQU2t/T2a816Xja6W5ePzc9ZdGRihYDA+05YZ9p483zid0kNS9VG\nbwrpUIV1U+wS2TF+hzO/4CIUz7ZNvy/U3aqcNvkffaiu/ltbt7RsHd9UscG4\naeaBsil/TX7UMdqjHNOdJyQwKI6a8kS/OgeGxOyKdd0iiSbWhBidank2bt4p\nRc45be72Ka+NnlD/zsKAeF7wdGkTgZi0EpEdDPldrNVp0mj18aoj13cM6TlI\ns9Qx3g9W0dnlSCMtMCJd0sS5vkZ9mr/YdgBdcIepLdvsf3Mp0Z05Dr7X5/aQ\ndVdbm738t2rHIv5XFPcDhmmGzaNI5XBU6zxhmA9DCeMyPcjO2JbkVpfI1j3x\nEvQg\r\n=KOv7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA12CWldv5wB5IlB7C3q07mpAOsSwmZxfHEtoeCm4I/JAiEA8jmdTq/v6nPLPtd1fGlPGqeIecXQcYupIfMcGska19k="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_3.5.0-next.1602405186.d9669b9d1197a15ea63eef34fe821f08559d7df3_1602405187611_0.6527022499628232"},"_hasShrinkwrap":false},"3.5.0-next.1602406350.49b56215b2cfeee9f1e81a320ac68f418852f97d":{"name":"start-of-week","version":"3.5.0-next.1602406350.49b56215b2cfeee9f1e81a320ac68f418852f97d","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","esnext","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"node.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-esnext","entry":"node.js","tags":["compiled","javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ESNext for Node.js 12 || 13 || 14 with Import for modules","directory":"edition-esnext-esm","entry":"node.js","tags":["compiled","javascript","esnext","import"],"engines":{"node":"12 || 13 || 14","browsers":false}},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"./compiled-types/","type":"module","main":"edition-esnext/node.js","exports":{"node":{"import":"./edition-esnext-esm/node.js","require":"./edition-esnext/node.js"},"browser":{"import":"./edition-browsers/browser.js"}},"deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","devDependencies":{"@bevry/update-contributors":"^1.16.0","@typescript-eslint/eslint-plugin":"^4.0.1","@typescript-eslint/parser":"^4.0.1","assert-helpers":"^7.2.0","eslint":"^7.8.1","eslint-config-bevry":"^3.22.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.12.0","make-deno-edition":"^1.1.1","prettier":"^2.1.1","projectz":"^2.16.0","surge":"^0.21.6","typedoc":"^0.19.1","typescript":"^4.0.2","valid-directory":"^3.3.0","valid-module":"^1.13.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-esnext && npm run our:compile:edition-esnext-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-esnext-esm":"tsc --module ESNext --target ESNext --outDir ./edition-esnext-esm --project tsconfig.json && ( test ! -d edition-esnext-esm/source || ( mv edition-esnext-esm/source edition-temp && rm -Rf edition-esnext-esm && mv edition-temp edition-esnext-esm ) ) && echo '{\"type\": \"module\"}' > edition-esnext-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"49b56215b2cfeee9f1e81a320ac68f418852f97d","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/start-of-week\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/start-of-week/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nTake a locale and return its start of the week (0 = Sunday, 1 = Monday)\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/globals.html)\n\n```javascript\nimport getSW from 'start-of-week'\nconsole.log(getSW()) // 0 (Sunday) if user is in North American, otherwise 1 (Monday)\nconsole.log(getSW('')) // 1\nconsole.log(getSW('en_AU')) // 1\nconsole.log(getSW('en_US')) // 0\nconsole.log(getSW('en_CA')) // 0\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Import: <code>import pkg from ('start-of-week')</code></li>\n<li>Require: <code>const pkg = require('start-of-week').default</code></li>\n</ul>\n\n<a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n``` typescript\nimport pkg from 'https://unpkg.com/start-of-week@^3.5.0/edition-deno/deno.ts'\n```\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/start-of-week@^3.5.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^3.5.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@3.5.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/node.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-browsers/browser.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-esnext/node.js</code></li>\n<li><code>start-of-week/edition-esnext/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-esnext-esm/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 12 || 13 || 14 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-deno/deno.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code made to be compatible with <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative to Node.js\">Deno</a></li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","_id":"start-of-week@3.5.0-next.1602406350.49b56215b2cfeee9f1e81a320ac68f418852f97d","_nodeVersion":"14.13.1","_npmVersion":"6.14.8","dist":{"integrity":"sha512-IFrfTk/T/Fs23ld6WSMt0ZqEo/LwDVRPN8LscKE/YLRvkhY6Wh2eGhI4lv52KjachkncZbt+/osKKmvw3hbC7w==","shasum":"d31059682b7062c44eb76ae0fd7149b10aca3e38","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-3.5.0-next.1602406350.49b56215b2cfeee9f1e81a320ac68f418852f97d.tgz","fileCount":36,"unpackedSize":36720,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfgsfPCRA9TVsSAnZWagAAhpwP/j7zOQuWaNLYC+UJyGYf\nau5z7K2gkty+lfWiH4r0BJNatdEWHWEsLygS/4O+WZxDG2riM3S6w79fjCCz\nTb7vBGNd+6OQhoB3pH4q5h3oFb36HhALzeDYb7b6R4rcImL/nQ0X52EnON/D\nWbzyoCc+gqxGFExat/rCel9S1P/4JyhbHATNzEdK4BTXZALnFYwjr/xFSkhF\nmPdb9IY8mMnAtb4+MLDPpyyUkRdlYG+0REf1nv4vExPg4oz9QHki8aa54Uv5\ny7nVet1QgIf2JvD8lJcWSk1nHmnd543vE07OLD9/WtinhQyLEqqgDQXQ3wH0\ngBrOfiLL7XFrW1oqrdNCfrWwhc7Kls6b13TPse6iT1vVcNXCk+vgdI5s9MNs\nXlzuIx1ZJjpm/OhWWBIiH9BDyI+RFg3445lNAn3ubmRS9d7kgJv8Xcw4yGZ1\nzZOxizyvpVkmQffq2m/cdpB2ydt1qgOZFIRLObVfsbmM70fG2jSOul7dWJsR\nf4Xs7QTH+1FDs2ccapRkaveAR77xYii9iXhYv9WnAVpRYvxRYYTdk+eK//VK\nOV+1jpTIFMVz0+9/X3Ur1dxKjO5BA/yH4G/CKdtRNEivcYBngeAfPIhlPomz\nsC2CthpE3wkRdgds6hyZU3S3kST0ec/QcLkQcp7YsNUDDqGTNv3I5oqTTan5\npMG4\r\n=8ABX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDRxeA1Ue5yFkx+w0k2DttPlAs32EhfhaMmTmtLOCwg1AiAIQbC1sSw+tujb3TM8wzTONUg6Jn7Qnv9ti9vcQPJnXA=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_3.5.0-next.1602406350.49b56215b2cfeee9f1e81a320ac68f418852f97d_1602406351469_0.9744952094637087"},"_hasShrinkwrap":false},"3.5.0-next.1602407621.35af51367df7c827c7714c4f5fc6735fc46a6e7a":{"name":"start-of-week","version":"3.5.0-next.1602407621.35af51367df7c827c7714c4f5fc6735fc46a6e7a","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","esnext","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"node.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-esnext","entry":"node.js","tags":["compiled","javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ESNext for Node.js 12 || 13 || 14 with Import for modules","directory":"edition-esnext-esm","entry":"node.js","tags":["compiled","javascript","esnext","import"],"engines":{"node":"12 || 13 || 14","browsers":false}},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"./compiled-types/","type":"module","main":"edition-esnext/node.js","exports":{"node":{"import":"./edition-esnext-esm/node.js","require":"./edition-esnext/node.js"},"browser":{"import":"./edition-browsers/browser.js"}},"deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","devDependencies":{"@bevry/update-contributors":"^1.16.0","@typescript-eslint/eslint-plugin":"^4.0.1","@typescript-eslint/parser":"^4.0.1","assert-helpers":"^7.2.0","eslint":"^7.8.1","eslint-config-bevry":"^3.22.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.12.0","make-deno-edition":"^1.1.1","prettier":"^2.1.1","projectz":"^2.16.0","surge":"^0.21.6","typedoc":"^0.19.1","typescript":"^4.0.2","valid-directory":"^3.3.0","valid-module":"^1.13.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-esnext && npm run our:compile:edition-esnext-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-esnext-esm":"tsc --module ESNext --target ESNext --outDir ./edition-esnext-esm --project tsconfig.json && ( test ! -d edition-esnext-esm/source || ( mv edition-esnext-esm/source edition-temp && rm -Rf edition-esnext-esm && mv edition-temp edition-esnext-esm ) ) && echo '{\"type\": \"module\"}' > edition-esnext-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"35af51367df7c827c7714c4f5fc6735fc46a6e7a","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/start-of-week\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/start-of-week/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nTake a locale and return its start of the week (0 = Sunday, 1 = Monday)\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/globals.html)\n\n```javascript\nimport getSW from 'start-of-week'\nconsole.log(getSW()) // 0 (Sunday) if user is in North American, otherwise 1 (Monday)\nconsole.log(getSW('')) // 1\nconsole.log(getSW('en_AU')) // 1\nconsole.log(getSW('en_US')) // 0\nconsole.log(getSW('en_CA')) // 0\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Import: <code>import pkg from ('start-of-week')</code></li>\n<li>Require: <code>const pkg = require('start-of-week').default</code></li>\n</ul>\n\n<a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n``` typescript\nimport pkg from 'https://unpkg.com/start-of-week@^3.5.0/edition-deno/deno.ts'\n```\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/start-of-week@^3.5.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^3.5.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@3.5.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/node.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-browsers/browser.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-esnext/node.js</code></li>\n<li><code>start-of-week/edition-esnext/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-esnext-esm/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 12 || 13 || 14 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-deno/deno.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code made to be compatible with <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative to Node.js\">Deno</a></li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","_id":"start-of-week@3.5.0-next.1602407621.35af51367df7c827c7714c4f5fc6735fc46a6e7a","_nodeVersion":"14.13.1","_npmVersion":"6.14.8","dist":{"integrity":"sha512-V4f7lpT4Je1aM3176vXuwBUOzxfPk2s3v92PDomGd3viMmk+FBKBlZZIUOkCRQyXyBCSux1kFE/EB+2jU0E58A==","shasum":"51909974e86265aa6dbb19bfca686a1d99478877","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-3.5.0-next.1602407621.35af51367df7c827c7714c4f5fc6735fc46a6e7a.tgz","fileCount":36,"unpackedSize":36720,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfgszHCRA9TVsSAnZWagAAoBoP/1Q5hxD4llq/4HUqCgz1\ndU/7VJefURH0C7aPCRUq1Vq68WsJ8AQCRIRO5VOXrNMEVpoPXcAi3OLh6KuS\nMq4xFbh6jrmFOUEx+JCPX3mpGEfBUVQs69bB7ylcoSQRZlqJty4rm2Uot8Ok\nQPe1fOOoyqIpbSP3OJiSVi52DB3nOZ9gez3xMl0AfoZZtoHjlkl13iSpDsU0\nwoVX0Ubz13PRkvuywcqy6c2Hf6hSlFZu5X/CunDqzIrbfFLWCqlqb+76Fk4g\nzOH+DjgV/m9mijcav3AH2poko5sm4odZfCjaQTxIp0tDPI7SB/6bSEik9p1b\nVsSZd4KdsjLGrrWb8y+LUcJCG19itTglEP7Zg8YXmim8NHXFz073YuWugi8n\nT16rvqVrdMgC4rQZ7Rml22hpndZOMmPX5H4oLukW0BxTDCB1s17hOMmLzpS5\n9knV3KQTRflhLgnPLrrXMsEyfS8lpIEZDq60oBZbAEHQAkb/z/ggvCn6FS14\nKlfsAvFtBxuwaRGdYtpor2xW05qMMMwKpmWkFryT0CWMU6CPI9Vu/RPdvHjI\n519CNorqgITh2qMMHYakQXfa9OBskD6/H7rFWRvx6vhdFYsKifNH0FXaUx4m\nLEKk/5W1u79oYid7fV7H7/RUI2nZrFAIX4YR2AVhu/WjUP6O3URDl7b+H9Bf\n27l5\r\n=wcMs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCAM3O7Osj6SBwdsxvsMwnCDz80YgVEiPflBO96Qlc0eAIhAIUw7yXo4ffW5blGC1e1KtgeTsSFPJTxiBO8aSyrrlQT"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_3.5.0-next.1602407621.35af51367df7c827c7714c4f5fc6735fc46a6e7a_1602407622664_0.3684737545425565"},"_hasShrinkwrap":false},"3.5.0-next.1603014488.9a5af8fad4b16c5c432999984247585138a7ba6f":{"name":"start-of-week","version":"3.5.0-next.1603014488.9a5af8fad4b16c5c432999984247585138a7ba6f","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","esnext","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"node.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-esnext","entry":"node.js","tags":["compiled","javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ESNext for Node.js 12 || 13 || 14 with Import for modules","directory":"edition-esnext-esm","entry":"node.js","tags":["compiled","javascript","esnext","import"],"engines":{"node":"12 || 13 || 14","browsers":false}},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"./compiled-types/","type":"module","main":"edition-esnext/node.js","exports":{"node":{"import":"./edition-esnext-esm/node.js","require":"./edition-esnext/node.js"},"browser":{"import":"./edition-browsers/browser.js"}},"deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","devDependencies":{"@bevry/update-contributors":"^1.16.0","@typescript-eslint/eslint-plugin":"^4.0.1","@typescript-eslint/parser":"^4.0.1","assert-helpers":"^7.2.0","eslint":"^7.8.1","eslint-config-bevry":"^3.22.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.12.0","make-deno-edition":"^1.1.1","prettier":"^2.1.1","projectz":"^2.16.0","surge":"^0.21.6","typedoc":"^0.19.1","typescript":"^4.0.2","valid-directory":"^3.3.0","valid-module":"^1.13.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-esnext && npm run our:compile:edition-esnext-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-esnext-esm":"tsc --module ESNext --target ESNext --outDir ./edition-esnext-esm --project tsconfig.json && ( test ! -d edition-esnext-esm/source || ( mv edition-esnext-esm/source edition-temp && rm -Rf edition-esnext-esm && mv edition-temp edition-esnext-esm ) ) && echo '{\"type\": \"module\"}' > edition-esnext-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"9a5af8fad4b16c5c432999984247585138a7ba6f","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/start-of-week\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/start-of-week/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nTake a locale and return its start of the week (0 = Sunday, 1 = Monday)\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/globals.html)\n\n```javascript\nimport getSW from 'start-of-week'\nconsole.log(getSW()) // 0 (Sunday) if user is in North American, otherwise 1 (Monday)\nconsole.log(getSW('')) // 1\nconsole.log(getSW('en_AU')) // 1\nconsole.log(getSW('en_US')) // 0\nconsole.log(getSW('en_CA')) // 0\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Import: <code>import pkg from ('start-of-week')</code></li>\n<li>Require: <code>const pkg = require('start-of-week').default</code></li>\n</ul>\n\n<a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n``` typescript\nimport pkg from 'https://unpkg.com/start-of-week@^3.5.0/edition-deno/deno.ts'\n```\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/start-of-week@^3.5.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^3.5.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@3.5.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/node.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-browsers/browser.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-esnext/node.js</code></li>\n<li><code>start-of-week/edition-esnext/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-esnext-esm/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 12 || 13 || 14 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-deno/deno.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code made to be compatible with <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative to Node.js\">Deno</a></li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","_id":"start-of-week@3.5.0-next.1603014488.9a5af8fad4b16c5c432999984247585138a7ba6f","_nodeVersion":"14.14.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-i/wibAIce9szIw3I8ftRPa1ytzAd8UmBcxIKrhyjtjN+W1RGc3dAisPsIVqAO3CScEPgrHHII6XevXs154E2kw==","shasum":"037555c37e2e75cba9f3077e14fe62f6bd27e4e6","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-3.5.0-next.1603014488.9a5af8fad4b16c5c432999984247585138a7ba6f.tgz","fileCount":36,"unpackedSize":36720,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfjA9aCRA9TVsSAnZWagAAmCkQAKSa0VB1gDqSRf7UKXES\ndedNNpdMRJ4feUbe39eM8rFjIBxsJFftQmVLc7StMnsfVwF1acZqcFwtodxH\n3r6dl03ccpC33RY96yDQ/F/x2RayBpvGYCVT7DJnWOkDKRB/YU6HDUtiUKDW\nLDqSl7MY37d6vjEmxxNjs0ADCUqqhJqv13wxzBLhoiZarTWv6F4OqjZQKJh/\nkm7C/iwdPV+xa3Jsy5DKxRLDHcJMAizAlJgxX+NbQIFdlYH1/39fhnj/0Del\n6SdjKWhXIVCZkFHRcZFQpQt9pq0mQJ2gF+tUKyZoGxWRYO1IXpOiF3D/5uVL\nSYfAbFOdMwrD8oIA7LBmFtGzBiD1B4i2gv0i1qxsltu0Vr1VW5Yt2vBwRD9J\nNW1IDUBuKiSjzXVSBJ6H8rafnnEXWtzWOij/rUcnVkxtOH3O+EwOEX/NBKtU\nrvitZYxV4Hw5OL1NvGnPUc2pDehHv5APE3TyF9fhM4Ig2GhBo/+4clab3nsY\nxdM3MDRCfrXE017O2R+zgcWIq5uW9Hc3a87yxAgU6KwRuyNGMNzftJDrPfHk\n9ns3glcZxOf5M4B4g7U6s9PlBFwGER93uzzFb3GZAFYgNZejxu3IB1pXcA6K\nOzqF/egrLSrMJBUoBvIFuSA7jJT1Z44iHCsztWyQKJGZvqWv4WPrh+tm4xEp\nzdzO\r\n=ITAG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGG9ZA5ELa+ymR+X2YELJBEzUjA/iI9lFMdXKkujPgvvAiEArxCFTWTK18PuJmBjDxBW47e8MFYb0i6mjS1qRVgjKzw="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_3.5.0-next.1603014488.9a5af8fad4b16c5c432999984247585138a7ba6f_1603014489961_0.3710117257914336"},"_hasShrinkwrap":false},"3.5.0-next.1603014906.8b0dd7aa8c0f644f56b617cf61d7e127e95924b3":{"name":"start-of-week","version":"3.5.0-next.1603014906.8b0dd7aa8c0f644f56b617cf61d7e127e95924b3","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","esnext","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"node.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-esnext","entry":"node.js","tags":["compiled","javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ESNext for Node.js 12 || 13 || 14 with Import for modules","directory":"edition-esnext-esm","entry":"node.js","tags":["compiled","javascript","esnext","import"],"engines":{"node":"12 || 13 || 14","browsers":false}},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"./compiled-types/","type":"module","main":"edition-esnext/node.js","exports":{"node":{"import":"./edition-esnext-esm/node.js","require":"./edition-esnext/node.js"},"browser":{"import":"./edition-browsers/browser.js"}},"deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","devDependencies":{"@bevry/update-contributors":"^1.16.0","@typescript-eslint/eslint-plugin":"^4.0.1","@typescript-eslint/parser":"^4.0.1","assert-helpers":"^7.2.0","eslint":"^7.8.1","eslint-config-bevry":"^3.22.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.12.0","make-deno-edition":"^1.1.1","prettier":"^2.1.1","projectz":"^2.16.0","surge":"^0.21.6","typedoc":"^0.19.1","typescript":"^4.0.2","valid-directory":"^3.3.0","valid-module":"^1.13.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-esnext && npm run our:compile:edition-esnext-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-esnext-esm":"tsc --module ESNext --target ESNext --outDir ./edition-esnext-esm --project tsconfig.json && ( test ! -d edition-esnext-esm/source || ( mv edition-esnext-esm/source edition-temp && rm -Rf edition-esnext-esm && mv edition-temp edition-esnext-esm ) ) && echo '{\"type\": \"module\"}' > edition-esnext-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"8b0dd7aa8c0f644f56b617cf61d7e127e95924b3","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/start-of-week\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/start-of-week/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nTake a locale and return its start of the week (0 = Sunday, 1 = Monday)\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/globals.html)\n\n```javascript\nimport getSW from 'start-of-week'\nconsole.log(getSW()) // 0 (Sunday) if user is in North American, otherwise 1 (Monday)\nconsole.log(getSW('')) // 1\nconsole.log(getSW('en_AU')) // 1\nconsole.log(getSW('en_US')) // 0\nconsole.log(getSW('en_CA')) // 0\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Import: <code>import pkg from ('start-of-week')</code></li>\n<li>Require: <code>const pkg = require('start-of-week').default</code></li>\n</ul>\n\n<a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n``` typescript\nimport pkg from 'https://unpkg.com/start-of-week@^3.5.0/edition-deno/deno.ts'\n```\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/start-of-week@^3.5.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^3.5.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@3.5.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/node.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-browsers/browser.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-esnext/node.js</code></li>\n<li><code>start-of-week/edition-esnext/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-esnext-esm/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 12 || 13 || 14 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-deno/deno.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code made to be compatible with <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative to Node.js\">Deno</a></li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","_id":"start-of-week@3.5.0-next.1603014906.8b0dd7aa8c0f644f56b617cf61d7e127e95924b3","_nodeVersion":"14.14.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-Vd74OCaq+RPAzeKqfGLTGTDAE6sSjpkMPqMcq1DC5NpKA7FONIEnXUr2X7InxigATirLh1EY7E+pAV68WF2BQg==","shasum":"61585b18a172b9e7fa3515d3d6959cd33ae5fce3","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-3.5.0-next.1603014906.8b0dd7aa8c0f644f56b617cf61d7e127e95924b3.tgz","fileCount":36,"unpackedSize":36720,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfjBD8CRA9TVsSAnZWagAAgkAQAJppoIquXkzMUSzNqGJh\nuUsUrLO4QpuIXP1auDHXOvbuwbfafPQO/YvS6W7MigSQ5mHs37IKwMMf73LF\npWUujHNe4gk1I0581w4vIo40ZPg49ONFlQhPPTZGDWetUER1DLdIGFmKlPgN\nCjD2iAKrhqwvVJ/Fr8IXu7xCi3/xcg0LK0nkjlCvNKgJJbcUJ/47i7r1EP5V\n4mB8FQKl1XpYLNTpQ8NphRAKuAA6zcBaU1OAZU8A9as9TlYbQGKyCiqqENK4\nXGCmIFbvS8k0+FFwYh/B5JA4f/w185eu8Vk715+kpnwXvHbpGaqOoiVCdUnm\nRImDD5xQbPrZ+AyMj04LMT608++gATSFqrKKjVBRRbOZui+oYdHCsZ1nWHmE\nLVmGdFfjoADSCl5fd3MN9ZAfSCSMCsPhYrwNDgT1zd0jpDA4vYlmIERUSq7m\nzbivoxLKKvCVS1VrADfSEeS6I0aAgSJKdBuPuUqklYOaUdDopT+ZeithK2Xh\nehCZdtHBRKQP8jqIrBOfU5rPixBu3/sZ5cs4lrsbFI/rh3iR4ACvMah3q/ww\n25OSAhJgS6kNS5WyfC9cx8ugHbKuhicmbev8hI1dtW78sM61BTsI32+9Svw0\n0aM144ax8PzrQWXoA4t01fz4Pw00pBF+8zQBnXULAvRr9U+y7m3xMuGpu71+\ntDFC\r\n=SOHP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBjRdWPq4zJ9Wto+FZbsLDA8zaJYHkJ42skm0gNtgCNLAiBZI3E+qtWd4P2BQx23ncjIuZ28dKVp+rwk4RQOIvhj6g=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_3.5.0-next.1603014906.8b0dd7aa8c0f644f56b617cf61d7e127e95924b3_1603014908135_0.7046365617748731"},"_hasShrinkwrap":false},"3.5.0-next.1603018997.0e72c5f6a282df1e7634abc18801852230b1cbb7":{"name":"start-of-week","version":"3.5.0-next.1603018997.0e72c5f6a282df1e7634abc18801852230b1cbb7","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","esnext","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"node.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-esnext","entry":"node.js","tags":["compiled","javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ESNext for Node.js 12 || 13 || 14 with Import for modules","directory":"edition-esnext-esm","entry":"node.js","tags":["compiled","javascript","esnext","import"],"engines":{"node":"12 || 13 || 14","browsers":false}},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"./compiled-types/","type":"module","main":"edition-esnext/node.js","exports":{"node":{"import":"./edition-esnext-esm/node.js","require":"./edition-esnext/node.js"},"browser":{"import":"./edition-browsers/browser.js"}},"deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","devDependencies":{"@bevry/update-contributors":"^1.16.0","@typescript-eslint/eslint-plugin":"^4.0.1","@typescript-eslint/parser":"^4.0.1","assert-helpers":"^7.2.0","eslint":"^7.8.1","eslint-config-bevry":"^3.22.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.12.0","make-deno-edition":"^1.1.1","prettier":"^2.1.1","projectz":"^2.16.0","surge":"^0.21.6","typedoc":"^0.19.1","typescript":"^4.0.2","valid-directory":"^3.3.0","valid-module":"^1.13.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-esnext && npm run our:compile:edition-esnext-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-esnext-esm":"tsc --module ESNext --target ESNext --outDir ./edition-esnext-esm --project tsconfig.json && ( test ! -d edition-esnext-esm/source || ( mv edition-esnext-esm/source edition-temp && rm -Rf edition-esnext-esm && mv edition-temp edition-esnext-esm ) ) && echo '{\"type\": \"module\"}' > edition-esnext-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"0e72c5f6a282df1e7634abc18801852230b1cbb7","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/start-of-week\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/start-of-week/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nTake a locale and return its start of the week (0 = Sunday, 1 = Monday)\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/globals.html)\n\n```javascript\nimport getSW from 'start-of-week'\nconsole.log(getSW()) // 0 (Sunday) if user is in North American, otherwise 1 (Monday)\nconsole.log(getSW('')) // 1\nconsole.log(getSW('en_AU')) // 1\nconsole.log(getSW('en_US')) // 0\nconsole.log(getSW('en_CA')) // 0\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Import: <code>import pkg from ('start-of-week')</code></li>\n<li>Require: <code>const pkg = require('start-of-week').default</code></li>\n</ul>\n\n<a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n``` typescript\nimport pkg from 'https://unpkg.com/start-of-week@^3.5.0/edition-deno/deno.ts'\n```\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/start-of-week@^3.5.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^3.5.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@3.5.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/node.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-browsers/browser.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-esnext/node.js</code></li>\n<li><code>start-of-week/edition-esnext/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-esnext-esm/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 12 || 13 || 14 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-deno/deno.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code made to be compatible with <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative to Node.js\">Deno</a></li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","_id":"start-of-week@3.5.0-next.1603018997.0e72c5f6a282df1e7634abc18801852230b1cbb7","_nodeVersion":"14.14.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-vcLk2VC7VxPuGarnKPS7bWe41WOQme0XwO2xkd6UNk62lNreYA0tLVaRyxhUiOkbJcdOQrshQqcDD6je4ZbFGA==","shasum":"87fc77a8c5220b11eae6daae865f40e336fe43f6","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-3.5.0-next.1603018997.0e72c5f6a282df1e7634abc18801852230b1cbb7.tgz","fileCount":36,"unpackedSize":36720,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfjCD2CRA9TVsSAnZWagAAs9UQAIwwBRVh0A8A38NlN0Hd\nv0zwhVMnoLfqYAi9mt9iz9v6AW8ATakBi81yzelTbv657YJFhi/sqg0EA1Zi\nwiXH5JzWTJfHppLq6LqQ+dWAJDKliaZvmAW59klBrlX/ez14v9P32QnydXer\nNUweXZTU67J4nRavdVs59IMB3kuToGce1wOHbwF2gJiHW344mqSHHq/UKl1X\nqZaUecYVw6JUzZ3RfPafcF13vc2rhkjN0isOlKx/qsMB8ev/Et5ux1QMgzj3\nCuUepHmguZM4K1mDwmAp3WcnKEFE1Fw7CJIofU1FFMhv73MQhJ6KQ5OfOruY\nzuKJNnFTMBl+hXth0mKlyiG5xzUVsHzQU82WaCpYbuUoX+FLO/VBFGYxepi6\nWo67QF7HNMz9BrXx64AFAX3bO8lWS3f3i0TdkkquQ3LtEO0jIIxcmnZRWHgu\n9eKAFh8OUcoT0V8mQuCqVc/WFQrBZAuRrXOghqWUrAERdN1/dqlUEBBDq0C0\n3kCLjnM6p+Il9T0wH1+s6AlWF3D2+fTT80FjQAHhNrwiio48DtRhgopI5Tg/\noQEesH1iRsrcT4bd6MnWdRSh9svzyIE3M+aKaYnlb7d0yC76L8DaCiy4UdzA\nCf+AJ6UBmFkgyL5O/hoSM+XVNvgXLxpE936JhGJWoqDS2m9C2c4qT6aEQAXE\nYP+C\r\n=2Vej\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICf/uQlFmJBvR0+mfw/Cc7xQamcPFpwkYCY0n6Fc1GTiAiEAyv01dmJphpZ6KBVLj1wwaG91P1VitMNGFB1w8JUUwAY="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_3.5.0-next.1603018997.0e72c5f6a282df1e7634abc18801852230b1cbb7_1603018998278_0.24078957849263394"},"_hasShrinkwrap":false},"3.5.0-next.1603620603.14763abb28dee798ec66a624eac7be58e7ddb953":{"name":"start-of-week","version":"3.5.0-next.1603620603.14763abb28dee798ec66a624eac7be58e7ddb953","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","esnext","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"node.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-esnext","entry":"node.js","tags":["compiled","javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ESNext for Node.js 12 || 13 || 14 with Import for modules","directory":"edition-esnext-esm","entry":"node.js","tags":["compiled","javascript","esnext","import"],"engines":{"node":"12 || 13 || 14","browsers":false}},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"./compiled-types/","type":"module","main":"edition-esnext/node.js","exports":{"node":{"import":"./edition-esnext-esm/node.js","require":"./edition-esnext/node.js"},"browser":{"import":"./edition-browsers/browser.js"}},"deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","devDependencies":{"@bevry/update-contributors":"^1.16.0","@typescript-eslint/eslint-plugin":"^4.0.1","@typescript-eslint/parser":"^4.0.1","assert-helpers":"^7.2.0","eslint":"^7.8.1","eslint-config-bevry":"^3.22.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.12.0","make-deno-edition":"^1.1.1","prettier":"^2.1.1","projectz":"^2.16.0","surge":"^0.21.6","typedoc":"^0.19.1","typescript":"^4.0.2","valid-directory":"^3.3.0","valid-module":"^1.13.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-esnext && npm run our:compile:edition-esnext-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-esnext-esm":"tsc --module ESNext --target ESNext --outDir ./edition-esnext-esm --project tsconfig.json && ( test ! -d edition-esnext-esm/source || ( mv edition-esnext-esm/source edition-temp && rm -Rf edition-esnext-esm && mv edition-temp edition-esnext-esm ) ) && echo '{\"type\": \"module\"}' > edition-esnext-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"14763abb28dee798ec66a624eac7be58e7ddb953","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/start-of-week\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/start-of-week/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nTake a locale and return its start of the week (0 = Sunday, 1 = Monday)\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/globals.html)\n\n```javascript\nimport getSW from 'start-of-week'\nconsole.log(getSW()) // 0 (Sunday) if user is in North American, otherwise 1 (Monday)\nconsole.log(getSW('')) // 1\nconsole.log(getSW('en_AU')) // 1\nconsole.log(getSW('en_US')) // 0\nconsole.log(getSW('en_CA')) // 0\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Import: <code>import pkg from ('start-of-week')</code></li>\n<li>Require: <code>const pkg = require('start-of-week').default</code></li>\n</ul>\n\n<a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n``` typescript\nimport pkg from 'https://unpkg.com/start-of-week@^3.5.0/edition-deno/deno.ts'\n```\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/start-of-week@^3.5.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^3.5.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@3.5.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/node.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-browsers/browser.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-esnext/node.js</code></li>\n<li><code>start-of-week/edition-esnext/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-esnext-esm/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 12 || 13 || 14 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-deno/deno.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code made to be compatible with <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative to Node.js\">Deno</a></li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","_id":"start-of-week@3.5.0-next.1603620603.14763abb28dee798ec66a624eac7be58e7ddb953","_nodeVersion":"14.14.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-+r0oBwsIf/rMPxtW9UsE/c/0NCZxmVk9wJSiHqx5gF26oyYeewJGHuKKuTunNnOE/DgGNMaZbAFiXF+6EpgjNQ==","shasum":"f6c4f184997b6f7f921fa6b9a307261d41ba7053","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-3.5.0-next.1603620603.14763abb28dee798ec66a624eac7be58e7ddb953.tgz","fileCount":36,"unpackedSize":36720,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJflU79CRA9TVsSAnZWagAApIkP/jI5JBOiwKPxaXVVfQgq\nsptMIE13TLOyF8vmn1yJtW6o9VSyUUaMZ1+DNkuDHxejeTZKKNbaLi3H1k4B\nfL2ugXVE2IThy0lRmkujgMNkwUGNL602nC+ztBoWiBusqR+4YEytB+QUpwXU\nYWKOUrm4EOSy4JbSdfLKwCLXZJfeDTPfrUG1g5RNMgUYY43C74vfxS5Vi2UB\nbwJ8N8unZ1nlIoqQUEcS8lP5JGDw8IeQcJbmhparrBPljYGoSrOMV0gvZAoR\nHSiP18ufBVk7LfL25nzIfo5s8hIzkaMH4daA2M5vJNYcPJgt0eQOSNwhK++n\nhZ+hFadKVh0dfvyxwV5+8KZxbXzVsV79vs8IqsFnNcqC01x/R5T6lmXHZAQ7\nEvAxU9UVfQnTnsopyZpjF6EqMaUuwDcgaIJvECrGh5XhgRyx0FxrZgT8J1rc\nE8xvyBM6oCEWNin+SlXbumvidl/4VK7ewJs5dtUOV8b5DNFu/bBKAQxfeWF1\ndDhCXP2yFOEVGp0hU5S9DC58oxczZgRrts3KQab9m9oKbBxlebujZ4SAfClo\ndBGdyceP1D9jWB2YDzreB1SYEqWP3FyjmCo5XV29S041Wr54BPVlO7UKDibC\nufs0VLziYHnAzz8twvPOJYnr42ldjEyqTX/DqpfSSIS9Q69bkfTsYNmubPlq\nUclU\r\n=c2ef\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFu0PVDP/F1yyGT7Jl4qeZYK+exRnOivAIdKNg3MpX+GAiBM8El54cY7MUQuiux7vKe7UZbtoD75NL+8kZGNNtDYqw=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_3.5.0-next.1603620603.14763abb28dee798ec66a624eac7be58e7ddb953_1603620604948_0.06487487339463716"},"_hasShrinkwrap":false},"3.5.0-next.1603621650.169fa4584531318a45d733e881f3a1bce5ab3fc1":{"name":"start-of-week","version":"3.5.0-next.1603621650.169fa4584531318a45d733e881f3a1bce5ab3fc1","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","esnext","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"node.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-esnext","entry":"node.js","tags":["compiled","javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ESNext for Node.js 12 || 13 || 14 with Import for modules","directory":"edition-esnext-esm","entry":"node.js","tags":["compiled","javascript","esnext","import"],"engines":{"node":"12 || 13 || 14","browsers":false}},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"./compiled-types/","type":"module","main":"edition-esnext/node.js","exports":{"node":{"import":"./edition-esnext-esm/node.js","require":"./edition-esnext/node.js"},"browser":{"import":"./edition-browsers/browser.js"}},"deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","devDependencies":{"@bevry/update-contributors":"^1.16.0","@typescript-eslint/eslint-plugin":"^4.0.1","@typescript-eslint/parser":"^4.0.1","assert-helpers":"^7.2.0","eslint":"^7.8.1","eslint-config-bevry":"^3.22.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.12.0","make-deno-edition":"^1.1.1","prettier":"^2.1.1","projectz":"^2.16.0","surge":"^0.21.6","typedoc":"^0.19.1","typescript":"^4.0.2","valid-directory":"^3.3.0","valid-module":"^1.13.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-esnext && npm run our:compile:edition-esnext-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-esnext-esm":"tsc --module ESNext --target ESNext --outDir ./edition-esnext-esm --project tsconfig.json && ( test ! -d edition-esnext-esm/source || ( mv edition-esnext-esm/source edition-temp && rm -Rf edition-esnext-esm && mv edition-temp edition-esnext-esm ) ) && echo '{\"type\": \"module\"}' > edition-esnext-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"169fa4584531318a45d733e881f3a1bce5ab3fc1","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/start-of-week\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/start-of-week/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nTake a locale and return its start of the week (0 = Sunday, 1 = Monday)\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/globals.html)\n\n```javascript\nimport getSW from 'start-of-week'\nconsole.log(getSW()) // 0 (Sunday) if user is in North American, otherwise 1 (Monday)\nconsole.log(getSW('')) // 1\nconsole.log(getSW('en_AU')) // 1\nconsole.log(getSW('en_US')) // 0\nconsole.log(getSW('en_CA')) // 0\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Import: <code>import pkg from ('start-of-week')</code></li>\n<li>Require: <code>const pkg = require('start-of-week').default</code></li>\n</ul>\n\n<a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n``` typescript\nimport pkg from 'https://unpkg.com/start-of-week@^3.5.0/edition-deno/deno.ts'\n```\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/start-of-week@^3.5.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^3.5.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@3.5.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/node.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-browsers/browser.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-esnext/node.js</code></li>\n<li><code>start-of-week/edition-esnext/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-esnext-esm/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 12 || 13 || 14 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-deno/deno.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code made to be compatible with <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative to Node.js\">Deno</a></li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","_id":"start-of-week@3.5.0-next.1603621650.169fa4584531318a45d733e881f3a1bce5ab3fc1","_nodeVersion":"14.14.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-oJjsCgwHgEa3sPxaYHl16RCTUj8tjfkme47O1JLA0Bu2FidJB5iuYu0S5YeV9QSTE885kpSS+NOlSTsaCbLPsg==","shasum":"c047e608ea8d8af1d2a335536794131e4ad59282","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-3.5.0-next.1603621650.169fa4584531318a45d733e881f3a1bce5ab3fc1.tgz","fileCount":36,"unpackedSize":36720,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJflVMUCRA9TVsSAnZWagAAbB8P/jIcHzJA64K11ZICUXX7\nyYHl1PBOFiyvUOclXxb2MA+dkjIKAqSKQzKJD5ELK/X4ts8cOJkmzG02uOr1\nCzJiHcBmRywphSOTGlOFcwfTlhL4QGEMtAjwNduV64K3zV2OJR5t0jUTGooJ\ndTUdssKk6LSWCEENTiee6XLLgDGuo0UbSnyG833ApwdcJBDyCxGGhRcNDkG3\n4/XvuMEKfkffhqZMreBJqfos036sUYVRmGtHs2NRkVbwKbQCFwxlfJgzNuHc\nhq2qDLNk0vuKmg5hwysXl78Wq5RJidnFHarjzDljB3efv9ApOAiLvhQ3f7dK\n58z/aebpUAofeFTpkDLnoHPuMUnQLfVeVR36kZSSqxo/WBlG+kyPsIij1nWD\n6F8Lhp0RhCEsT/nR7+K4V0BYBQ3XREFE/3rhsY5fwucwD7sgtIVdNw1GvVv+\nXOdO/f/T9t6UCjeD1KRJJiiv7vqvjqT0nc7OBLB5nbYPr3h/zzNPFudqJKwo\n9T0wxREq6K+rxrXqX5MtTmU64zEsGVRHjf43HGb+AmSWqEhoHkKjq20iZIH6\nQC2Yak5sNoQ6pu3auYlkPOd7ty/MbcvKJdTKueS/VhaaSayV2xFT8uUadXou\nzRVOPJ9ExYftKj9Ao+1MzKCy1wRY0kziuGIuWuE9xRp6PsauWl+B8ZnK7pQI\neOzf\r\n=zrf+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHbyDxLJVm/f8Evjz904Zvxw60uX/ig8P6GwhaZ0H5MTAiEApW1HtlUCnJHxsGa0QRPP9aX+UDefh6SgTailUZkeHEI="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_3.5.0-next.1603621650.169fa4584531318a45d733e881f3a1bce5ab3fc1_1603621651650_0.7805432652751756"},"_hasShrinkwrap":false},"3.5.0-next.1603629939.e5347dd2ae67f9bf4622b7dea37180c23da049f5":{"name":"start-of-week","version":"3.5.0-next.1603629939.e5347dd2ae67f9bf4622b7dea37180c23da049f5","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","esnext","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"node.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-esnext","entry":"node.js","tags":["compiled","javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ESNext for Node.js 12 || 13 || 14 with Import for modules","directory":"edition-esnext-esm","entry":"node.js","tags":["compiled","javascript","esnext","import"],"engines":{"node":"12 || 13 || 14","browsers":false}},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"./compiled-types/","type":"module","main":"edition-esnext/node.js","exports":{"node":{"import":"./edition-esnext-esm/node.js","require":"./edition-esnext/node.js"},"browser":{"import":"./edition-browsers/browser.js"}},"deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","devDependencies":{"@bevry/update-contributors":"^1.16.0","@typescript-eslint/eslint-plugin":"^4.0.1","@typescript-eslint/parser":"^4.0.1","assert-helpers":"^7.2.0","eslint":"^7.8.1","eslint-config-bevry":"^3.22.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.12.0","make-deno-edition":"^1.1.1","prettier":"^2.1.1","projectz":"^2.16.0","surge":"^0.21.6","typedoc":"^0.19.1","typescript":"^4.0.2","valid-directory":"^3.3.0","valid-module":"^1.13.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-esnext && npm run our:compile:edition-esnext-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-esnext-esm":"tsc --module ESNext --target ESNext --outDir ./edition-esnext-esm --project tsconfig.json && ( test ! -d edition-esnext-esm/source || ( mv edition-esnext-esm/source edition-temp && rm -Rf edition-esnext-esm && mv edition-temp edition-esnext-esm ) ) && echo '{\"type\": \"module\"}' > edition-esnext-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"e5347dd2ae67f9bf4622b7dea37180c23da049f5","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/start-of-week\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/start-of-week/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nTake a locale and return its start of the week (0 = Sunday, 1 = Monday)\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/globals.html)\n\n```javascript\nimport getSW from 'start-of-week'\nconsole.log(getSW()) // 0 (Sunday) if user is in North American, otherwise 1 (Monday)\nconsole.log(getSW('')) // 1\nconsole.log(getSW('en_AU')) // 1\nconsole.log(getSW('en_US')) // 0\nconsole.log(getSW('en_CA')) // 0\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Import: <code>import pkg from ('start-of-week')</code></li>\n<li>Require: <code>const pkg = require('start-of-week').default</code></li>\n</ul>\n\n<a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n``` typescript\nimport pkg from 'https://unpkg.com/start-of-week@^3.5.0/edition-deno/deno.ts'\n```\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/start-of-week@^3.5.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^3.5.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@3.5.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/node.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-browsers/browser.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-esnext/node.js</code></li>\n<li><code>start-of-week/edition-esnext/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-esnext-esm/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 12 || 13 || 14 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-deno/deno.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code made to be compatible with <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative to Node.js\">Deno</a></li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","_id":"start-of-week@3.5.0-next.1603629939.e5347dd2ae67f9bf4622b7dea37180c23da049f5","_nodeVersion":"14.14.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-CXg6WL7o2pci5FZpr0ShAeEo5mThHsEtevH0iZel8mj5k7jWCerHmlUvh3x816mEDJGaocgasRWl4tw46sVqQg==","shasum":"32630bd0b8976d20d8200e88a1d10080201a5557","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-3.5.0-next.1603629939.e5347dd2ae67f9bf4622b7dea37180c23da049f5.tgz","fileCount":36,"unpackedSize":36720,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJflXN1CRA9TVsSAnZWagAAK5EP/0UUW22d37gsoGDXakJR\nNiSkJFis01Man4xlHpOe1PBkXRSbzyr/WLl1QChblukV/sygGCm+eB3hw2R1\nCSkZ7sgQLhqrJOHc9Go6CkCPCtb+uugFH/3vxGfiC/X69JIRo88IfngVOYsz\n0WWoqIworvqJTp/jJlDc2zkVCEzJrwCh6zoGas/fZzmzRt2OX6vOtbx9z/cZ\ndGJ53eH0F9KgcTuteC2eNHghGkNU5N6otajlfT5jik4oG9PpdqxBZ/MbklSk\nMh16u3B4jW+UwsUe+rGIKsjaX7TM4/rN2YzmUf4uVfIxM6tLXdFo4a9HQ8V7\n+IIywEAjDJ0npmW0IqvOVVn6HmlxQOt8GeNsmA9nDh8e1GohN73RleWFJtO5\nGJloBrRsJVLWP7yZPzz6PZtumQNiAlIxu4iuYivZIO1xF3YzRYQNe8CvlG5L\n7tTUQTa4seAheJz7SsES0x5pKLPAdJ3kL/7ZBV3z/8vfilm+Egw3RbbC9RFW\nOALJCYW37XeD252xzVCMMfBrRZg4njcvyA/o/b83X9CPwMLpvTDsORTP2IDB\n3Vh7sRRWI1t5Uq/r0WIr06HTl2dymeLyuysp0EtpPunyioOeGDGELc/8r+f1\nxNTOKm6gOoEMHWXGVMlEhYGF92Og5OlyyT/8oZ36zne+FGkMvnw1h9zUR+Lm\nZg6G\r\n=wYNR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDOBKzvxtX2xhLu0FMPIpVGNg4t26CXsD+GLloMlfzbWAIgeDMR8VgfFdreaYYwXoAkJFLs6pXSitDefwyMVtDGChA="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_3.5.0-next.1603629939.e5347dd2ae67f9bf4622b7dea37180c23da049f5_1603629940954_0.15999297231933363"},"_hasShrinkwrap":false},"3.5.0-next.1603631843.3694b5595783c8d9c4156349b4db7ef9ec133605":{"name":"start-of-week","version":"3.5.0-next.1603631843.3694b5595783c8d9c4156349b4db7ef9ec133605","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","esnext","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"node.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-esnext","entry":"node.js","tags":["compiled","javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ESNext for Node.js 12 || 13 || 14 with Import for modules","directory":"edition-esnext-esm","entry":"node.js","tags":["compiled","javascript","esnext","import"],"engines":{"node":"12 || 13 || 14","browsers":false}},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"./compiled-types/","type":"module","main":"edition-esnext/node.js","exports":{"node":{"import":"./edition-esnext-esm/node.js","require":"./edition-esnext/node.js"},"browser":{"import":"./edition-browsers/browser.js"}},"deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","devDependencies":{"@bevry/update-contributors":"^1.16.0","@typescript-eslint/eslint-plugin":"^4.0.1","@typescript-eslint/parser":"^4.0.1","assert-helpers":"^7.2.0","eslint":"^7.8.1","eslint-config-bevry":"^3.22.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.12.0","make-deno-edition":"^1.1.1","prettier":"^2.1.1","projectz":"^2.16.0","surge":"^0.21.6","typedoc":"^0.19.1","typescript":"^4.0.2","valid-directory":"^3.3.0","valid-module":"^1.13.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-esnext && npm run our:compile:edition-esnext-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-esnext-esm":"tsc --module ESNext --target ESNext --outDir ./edition-esnext-esm --project tsconfig.json && ( test ! -d edition-esnext-esm/source || ( mv edition-esnext-esm/source edition-temp && rm -Rf edition-esnext-esm && mv edition-temp edition-esnext-esm ) ) && echo '{\"type\": \"module\"}' > edition-esnext-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"3694b5595783c8d9c4156349b4db7ef9ec133605","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/start-of-week\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/start-of-week/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nTake a locale and return its start of the week (0 = Sunday, 1 = Monday)\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/globals.html)\n\n```javascript\nimport getSW from 'start-of-week'\nconsole.log(getSW()) // 0 (Sunday) if user is in North American, otherwise 1 (Monday)\nconsole.log(getSW('')) // 1\nconsole.log(getSW('en_AU')) // 1\nconsole.log(getSW('en_US')) // 0\nconsole.log(getSW('en_CA')) // 0\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Import: <code>import pkg from ('start-of-week')</code></li>\n<li>Require: <code>const pkg = require('start-of-week').default</code></li>\n</ul>\n\n<a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n``` typescript\nimport pkg from 'https://unpkg.com/start-of-week@^3.5.0/edition-deno/deno.ts'\n```\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/start-of-week@^3.5.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^3.5.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@3.5.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/node.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-browsers/browser.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-esnext/node.js</code></li>\n<li><code>start-of-week/edition-esnext/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-esnext-esm/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 12 || 13 || 14 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-deno/deno.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code made to be compatible with <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative to Node.js\">Deno</a></li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","_id":"start-of-week@3.5.0-next.1603631843.3694b5595783c8d9c4156349b4db7ef9ec133605","_nodeVersion":"14.14.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-EEPpXRWfMw10DhLo3eNjGDTlCirzNk/X7YIfDhq6mAqeheZIWklDIbXurCs3r8KtOXyrThDa+Hd5j2/tLI9pTA==","shasum":"1e4e34103f438de23270ac88b970b153f4a574e7","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-3.5.0-next.1603631843.3694b5595783c8d9c4156349b4db7ef9ec133605.tgz","fileCount":36,"unpackedSize":36720,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJflXrlCRA9TVsSAnZWagAAqTgP/ienlZPFZYPCaKHYKUyQ\nUYYvmWesMOVSgzCRKzhKbWk7ZYm1SvbaINraKmfOV7SWJqYh1C82pqZfTOBN\nhY0q5W5TWdeHSbL9QevXsgzagL55z046As6qnSHlAWz3LaF3091djYgLg3V2\nmYEkahmssC0UFbU2Ai10nWGmTfnJIDhxAUobpS9Ql5QlzfELYz8OpSHNIWHl\n+Vbbgmvo0al608qOu7/YXIu6J/ffJeDEJy+ApMFFXR4ulc5NfFs6ncQUPcAS\nLUtH1iV+1N3cZKq8deYtbCzq3u7v1FjSNpfuc3tPWUuZQIUw8QS+qQCHdl1J\nfeiBXh/K4zKEE3amuEtIwKWB6MphTpJKntt8oV65MBFj0R//rPjpZYEV4aXW\ndF31tGPNF7lMbenRfNKZ7Z7aMUId6ySeJZqBrlt3B35KshrdUUIJ3UcitVSp\nBAq45P3q3VTcoYQJWw5sDmmkmCRHpqq2Y5wx/zN0+jpNzWtIZflQJ9Wt+8ft\nsNMEhxe2PZUgCgnuLikJgLlwpV67ufjbKJTcO9T0UHZWpal3DWaBeylYMDfG\n6+e4OqydllcHJ535KRK8MU/f1/mEUavWIPyB58fuH0HJgNbwY/e2yoCLaxpc\nfg6SQSDCYrvuijklhve0dqwyBRqqDJXhxEvNUWI/tQF5bmFFYIt2zZCuhmY/\nJ1dp\r\n=iUX3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBrru5poqwLe+ijW7J4p4vOrmdx2OrQ4qxCAFrLLgUyMAiEAlNrCrYMYPlWvVjuFEMfwuckBEXQ750PRIEMpr4ejE6Q="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_3.5.0-next.1603631843.3694b5595783c8d9c4156349b4db7ef9ec133605_1603631844673_0.5707484614044691"},"_hasShrinkwrap":false},"3.6.0-next.1603942939.f8f878fc862e20430aa1d7192238d9551db24581":{"name":"start-of-week","version":"3.6.0-next.1603942939.f8f878fc862e20430aa1d7192238d9551db24581","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","esnext","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"node.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js 10 || 12 || 14 || 15 with Require for modules","directory":"edition-esnext","entry":"node.js","tags":["compiled","javascript","esnext","require"],"engines":{"node":"10 || 12 || 14 || 15","browsers":false}},{"description":"TypeScript compiled against ESNext for Node.js 12 || 14 || 15 with Import for modules","directory":"edition-esnext-esm","entry":"node.js","tags":["compiled","javascript","esnext","import"],"engines":{"node":"12 || 14 || 15","browsers":false}},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"./compiled-types/","type":"module","main":"edition-esnext/node.js","exports":{"node":{"import":"./edition-esnext-esm/node.js","require":"./edition-esnext/node.js"},"browser":{"import":"./edition-browsers/browser.js"}},"deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","devDependencies":{"@bevry/update-contributors":"^1.17.0","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0","assert-helpers":"^8.1.0","eslint":"^7.12.1","eslint-config-bevry":"^3.23.0","eslint-config-prettier":"^6.15.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.13.0","make-deno-edition":"^1.2.0","prettier":"^2.1.2","projectz":"^2.17.0","surge":"^0.21.6","typedoc":"^0.19.2","typescript":"^4.0.5","valid-directory":"^3.4.0","valid-module":"^1.14.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-esnext && npm run our:compile:edition-esnext-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-esnext-esm":"tsc --module ESNext --target ESNext --outDir ./edition-esnext-esm --project tsconfig.json && ( test ! -d edition-esnext-esm/source || ( mv edition-esnext-esm/source edition-temp && rm -Rf edition-esnext-esm && mv edition-temp edition-esnext-esm ) ) && echo '{\"type\": \"module\"}' > edition-esnext-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"f8f878fc862e20430aa1d7192238d9551db24581","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/start-of-week\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/start-of-week/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nTake a locale and return its start of the week (0 = Sunday, 1 = Monday)\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/globals.html)\n\n```javascript\nimport getSW from 'start-of-week'\nconsole.log(getSW()) // 0 (Sunday) if user is in North American, otherwise 1 (Monday)\nconsole.log(getSW('')) // 1\nconsole.log(getSW('en_AU')) // 1\nconsole.log(getSW('en_US')) // 0\nconsole.log(getSW('en_CA')) // 0\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Import: <code>import pkg from ('start-of-week')</code></li>\n<li>Require: <code>const pkg = require('start-of-week').default</code></li>\n</ul>\n\n<a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n``` typescript\nimport pkg from 'https://unpkg.com/start-of-week@^3.6.0/edition-deno/deno.ts'\n```\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/start-of-week@^3.6.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^3.6.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@3.6.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/node.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-browsers/browser.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-esnext/node.js</code></li>\n<li><code>start-of-week/edition-esnext/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 14 || 15 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-esnext-esm/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 12 || 14 || 15 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-deno/deno.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code made to be compatible with <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative to Node.js\">Deno</a></li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","_id":"start-of-week@3.6.0-next.1603942939.f8f878fc862e20430aa1d7192238d9551db24581","_nodeVersion":"14.15.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-HyG0DmDbwhq47WHrygL6lRehCScbIENoLCyXKABHz4vY/nGak6DGiB2LOHpZ5HaWTmyxvwvPExpQ8uvZoUTNrg==","shasum":"dc4b6eafa539c637619d20ece2f391ddc39cd45a","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-3.6.0-next.1603942939.f8f878fc862e20430aa1d7192238d9551db24581.tgz","fileCount":36,"unpackedSize":36918,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfmjoeCRA9TVsSAnZWagAA1m8P/jvHo1yoM7ADVuJqktd8\n7ORFFWtilYV0EKUzHa/9NIqux4/lWke0lg45aKaucB2Jse1beJLzzTuN5ybN\nHij62Mdvmouu2Jxf2qXdFZyIQqzMPYbh/eFvMDk4Y096wPoq79yYq6GxZGTo\nhS4mEUp8xHAFxF5HEJexFlPXjY2Ro4FmkkPz/HYOBIqhtKI2JAh7WE5q/zLa\n+92ndUWDo0xsEsVJ5MooFYoZultZkLT1D1G7xw7r/9r4sJjABn733jfYYIP/\naQ8XkEVSeBXfodP5k6UFLK1WfQG1v1+1/s1IJ+Ylcb2hV8qhbW6wwrkmsKwa\nQLhEpGs6+bAhPE4Xc17xPYSwc7pd+LQgpUnzjNR7nC11qZMmyTT10TPzAibf\njgcjiYZEtmJ3a0LXMdXSXhe10aiEmSiTYCsU+WeYz38Ev8fEBQmOm4SuWvQU\nRw9eJDy51r5TKRPJ4x4zOhkgZuN2eYd/mofj8UBiluMD4mDra1vHIlTQyASJ\nDJ0zl1yUdRmTpTpiBauAuuSrIb7BGLqFbb29LRoWnapqXi+gmlZtdiIgWCJ6\nw5jtldZF4E5nZ7UQFeyd3DTrWUl70qkk8GS3mfQhSGG3ttn1aQLZUo6qHqoR\nT0ihoBI4w8nQZnaIcpgdHaVQcnis9cpI4kH/HQHKtL4vedpbt6zduJKYDLyZ\ntQX+\r\n=1XTB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAhHdiZVHpj+rkv1Xay5xOLGkuC8oHPlVVou5f4AiGouAiEAxJFqQ53YxVhxqBGqGpi7yiNtgUKXagLhGhjmrk790dU="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_3.6.0-next.1603942939.f8f878fc862e20430aa1d7192238d9551db24581_1603942941546_0.26283273788596273"},"_hasShrinkwrap":false},"3.6.0":{"name":"start-of-week","version":"3.6.0","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","esnext","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"node.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js 10 || 12 || 14 || 15 with Require for modules","directory":"edition-esnext","entry":"node.js","tags":["compiled","javascript","esnext","require"],"engines":{"node":"10 || 12 || 14 || 15","browsers":false}},{"description":"TypeScript compiled against ESNext for Node.js 12 || 14 || 15 with Import for modules","directory":"edition-esnext-esm","entry":"node.js","tags":["compiled","javascript","esnext","import"],"engines":{"node":"12 || 14 || 15","browsers":false}},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"./compiled-types/","type":"module","main":"edition-esnext/node.js","exports":{"node":{"import":"./edition-esnext-esm/node.js","require":"./edition-esnext/node.js"},"browser":{"import":"./edition-browsers/browser.js"}},"deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","devDependencies":{"@bevry/update-contributors":"^1.17.0","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0","assert-helpers":"^8.1.0","eslint":"^7.12.1","eslint-config-bevry":"^3.23.0","eslint-config-prettier":"^6.15.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.13.0","make-deno-edition":"^1.2.0","prettier":"^2.1.2","projectz":"^2.17.0","surge":"^0.21.6","typedoc":"^0.19.2","typescript":"^4.0.5","valid-directory":"^3.4.0","valid-module":"^1.14.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-esnext && npm run our:compile:edition-esnext-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-esnext-esm":"tsc --module ESNext --target ESNext --outDir ./edition-esnext-esm --project tsconfig.json && ( test ! -d edition-esnext-esm/source || ( mv edition-esnext-esm/source edition-temp && rm -Rf edition-esnext-esm && mv edition-temp edition-esnext-esm ) ) && echo '{\"type\": \"module\"}' > edition-esnext-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"f8f878fc862e20430aa1d7192238d9551db24581","_id":"start-of-week@3.6.0","_nodeVersion":"14.15.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-qySTHIFHJtvbGPP9DmcS+CSzm/O0tGp44KNVoGM8W2YnWZ4uGMRNkeZyAnKZZfFTztffmTUsQ4VvAjmg/UFaoQ==","shasum":"123093c5a255cd2f46e0aaa06cc5ff3584d4dd14","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-3.6.0.tgz","fileCount":36,"unpackedSize":36861,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfmjopCRA9TVsSAnZWagAAuRUP/1zv6mNBsLPY1TuxWXl/\n4eQDn73OgN+n2btiaPmHRQU/iOLNiqxrdwii3HoQ3zKDZAcXzTm90xUtlAvr\nhjWfGZMIuoahCeNQZHu8jvVp+MlHVDkPAI3jAhkrOchnOsNQqxITsvlvIZOf\nGhVY/hiSA7vEqaA5axS3AkQhMgXRCA+iw2mN+wYkUpBO0U5WgHKSwOvP1r4U\nB+LgEUrOrnm+zAwZ9ZYzbtoksYxUJTQWwi7ynJTw+/Kw4ngTPOJDdX7pngyZ\nOubbN/4Y7kHw0O4EJTnkNnvTEKT3gzs9+fAkJyrPN4jHHSLXVV0RESOI+pUj\npVPH+6l+xVTEsuBvTRNg2kCtdTeTs8RRIoCBuxfSFR60U5WNdWyF+yUqxLwe\nIKP0/U9evW4tgSa8hIKV9O4eV+Q2bPfNNm6oaeMnTbiJ7jy0iU/OfBKX4cz4\nxlVww01hkqUdMxFNnLNPu2zoDuRToOCQNVXQnxcI/TxY59OFs62JJwXT9bU8\nwepRqb0pl54fiKbi4i4FqQSxmYnqbDsd8BvlFyYMy07PHCTzeepK+RaEofVI\ngJ/4F3KB3Mpvdj+28Bn0rz3bikB1YSww+X8j6AtEksUl9kCkyXhud2svFJkb\nJhfMmT2wAVS96ALmngcBlC5huo51MUwPtD9JCZn9ujLf/sF+JW2AirGOOM2k\nuc1s\r\n=I0cV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC7B581nCXbzpXLR+DikbS0ICMjtmA4Z1Qx/pLT5278ngIgRp4V4WKirL/gfxaPK1fl4DKr66M2E19ZH9G+E1dadJU="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_3.6.0_1603942953474_0.1855511385722608"},"_hasShrinkwrap":false},"3.6.0-next.1604234669.f2feb89515bd9450837497b70c70db5cce34b0ec":{"name":"start-of-week","version":"3.6.0-next.1604234669.f2feb89515bd9450837497b70c70db5cce34b0ec","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","esnext","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"node.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js 10 || 12 || 14 || 15 with Require for modules","directory":"edition-esnext","entry":"node.js","tags":["compiled","javascript","esnext","require"],"engines":{"node":"10 || 12 || 14 || 15","browsers":false}},{"description":"TypeScript compiled against ESNext for Node.js 12 || 14 || 15 with Import for modules","directory":"edition-esnext-esm","entry":"node.js","tags":["compiled","javascript","esnext","import"],"engines":{"node":"12 || 14 || 15","browsers":false}},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"./compiled-types/","type":"module","main":"edition-esnext/node.js","exports":{"node":{"import":"./edition-esnext-esm/node.js","require":"./edition-esnext/node.js"},"browser":{"import":"./edition-browsers/browser.js"}},"deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","devDependencies":{"@bevry/update-contributors":"^1.17.0","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0","assert-helpers":"^8.1.0","eslint":"^7.12.1","eslint-config-bevry":"^3.23.0","eslint-config-prettier":"^6.15.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.13.0","make-deno-edition":"^1.2.0","prettier":"^2.1.2","projectz":"^2.17.0","surge":"^0.21.6","typedoc":"^0.19.2","typescript":"^4.0.5","valid-directory":"^3.4.0","valid-module":"^1.14.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-esnext && npm run our:compile:edition-esnext-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-esnext-esm":"tsc --module ESNext --target ESNext --outDir ./edition-esnext-esm --project tsconfig.json && ( test ! -d edition-esnext-esm/source || ( mv edition-esnext-esm/source edition-temp && rm -Rf edition-esnext-esm && mv edition-temp edition-esnext-esm ) ) && echo '{\"type\": \"module\"}' > edition-esnext-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"f2feb89515bd9450837497b70c70db5cce34b0ec","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/start-of-week\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/start-of-week/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nTake a locale and return its start of the week (0 = Sunday, 1 = Monday)\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/globals.html)\n\n```javascript\nimport getSW from 'start-of-week'\nconsole.log(getSW()) // 0 (Sunday) if user is in North American, otherwise 1 (Monday)\nconsole.log(getSW('')) // 1\nconsole.log(getSW('en_AU')) // 1\nconsole.log(getSW('en_US')) // 0\nconsole.log(getSW('en_CA')) // 0\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Import: <code>import pkg from ('start-of-week')</code></li>\n<li>Require: <code>const pkg = require('start-of-week').default</code></li>\n</ul>\n\n<a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n``` typescript\nimport pkg from 'https://unpkg.com/start-of-week@^3.6.0/edition-deno/deno.ts'\n```\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/start-of-week@^3.6.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^3.6.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@3.6.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/node.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-browsers/browser.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-esnext/node.js</code></li>\n<li><code>start-of-week/edition-esnext/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 14 || 15 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-esnext-esm/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 12 || 14 || 15 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-deno/deno.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code made to be compatible with <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative to Node.js\">Deno</a></li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","_id":"start-of-week@3.6.0-next.1604234669.f2feb89515bd9450837497b70c70db5cce34b0ec","_nodeVersion":"14.15.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-Upq57H5CLS4r+LZR/E08/P4J8a5PU6c5EEJCwiK149kblezxBDS8EPq15SF4cmyIMwoHTIFUA1Xx+TVYMFkDKg==","shasum":"848f7e2b2d2079a1d69ff9b7f7bdc8e758d29e5a","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-3.6.0-next.1604234669.f2feb89515bd9450837497b70c70db5cce34b0ec.tgz","fileCount":36,"unpackedSize":36918,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfnq2vCRA9TVsSAnZWagAAYMMP/0cw9JnvJ+7Gf2L+tOzo\n1ivfz+aiSzQFBzUxFPegjqtL+HKTkixaAc51xc7ZeJsbf2otqMHdG3JUpdWz\nK2IbSRMKEfqrTU5DNZ4z0qgMDU4JsOTyZJnWVZVPLXw4DzdEdEfMNqOhSgvL\na3BUP16qlkXSIOAF5hYzZ5EZxfy+mhf+vqPNsNl5xLyzB36TeeynwbbYKXRV\nf6mBQWhqifHvz9es46Lp7qeNM8DUbHRew4EN24BBsbRGVWSoYLX05tHYPwu7\nIUylIEPY03pN13CmQNQuLZaJaTkKr355n4qSW8xfjSvrLYDrTlDXz1JUPm+B\n7KY5QXrIpPX36460WRMYRxV25QAkD4NqxTP+pDydLeLuhtZiNbwcHs8Cj+SA\nrbSLSNvl2W/GWobUxlZ/IF9DRwB+d7fcMLQEMQk9CrDR0d3XOIBQGoR49rPO\nNSDGvbapNdQgWjiY8hjjl5TttNL/rrH6bzhgQ8Aj9kWVmFkVHVCUN68pJGT0\nLXeiS/3pPpc9BYH2KX49j554euvY6ndBO2krKZyvfEpoG5dWpnRAczP2aNI/\nC2VxRI1q5+aE441ZJ2pbaRPy6eepRWXzlR+fEYtMQmepFn76Y8cd2qyM0RC3\n10k1BMcHARwWRjQFKqHqllc4/4lKuyerZT+EUKmRoXuc68v/39NTW+G3tC5a\nUV9a\r\n=cc96\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDpDsS9/ZBhpwpbUS3PGnsP4vuuNP99KRUzce0cN8pb1QIgPobLxB3fKFqFB1RNK8AaedDX1LqOe30m0aCvRbzM8Jo="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_3.6.0-next.1604234669.f2feb89515bd9450837497b70c70db5cce34b0ec_1604234671128_0.6639315933373071"},"_hasShrinkwrap":false},"3.6.0-next.1604234769.c406c9dff133d59ee0dc7302dbddb5ffad697ca4":{"name":"start-of-week","version":"3.6.0-next.1604234769.c406c9dff133d59ee0dc7302dbddb5ffad697ca4","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","esnext","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"node.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js 10 || 12 || 14 || 15 with Require for modules","directory":"edition-esnext","entry":"node.js","tags":["compiled","javascript","esnext","require"],"engines":{"node":"10 || 12 || 14 || 15","browsers":false}},{"description":"TypeScript compiled against ESNext for Node.js 12 || 14 || 15 with Import for modules","directory":"edition-esnext-esm","entry":"node.js","tags":["compiled","javascript","esnext","import"],"engines":{"node":"12 || 14 || 15","browsers":false}},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"./compiled-types/","type":"module","main":"edition-esnext/node.js","exports":{"node":{"import":"./edition-esnext-esm/node.js","require":"./edition-esnext/node.js"},"browser":{"import":"./edition-browsers/browser.js"}},"deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","devDependencies":{"@bevry/update-contributors":"^1.17.0","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0","assert-helpers":"^8.1.0","eslint":"^7.12.1","eslint-config-bevry":"^3.23.0","eslint-config-prettier":"^6.15.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.13.0","make-deno-edition":"^1.2.0","prettier":"^2.1.2","projectz":"^2.17.0","surge":"^0.21.6","typedoc":"^0.19.2","typescript":"^4.0.5","valid-directory":"^3.4.0","valid-module":"^1.14.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-esnext && npm run our:compile:edition-esnext-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-esnext-esm":"tsc --module ESNext --target ESNext --outDir ./edition-esnext-esm --project tsconfig.json && ( test ! -d edition-esnext-esm/source || ( mv edition-esnext-esm/source edition-temp && rm -Rf edition-esnext-esm && mv edition-temp edition-esnext-esm ) ) && echo '{\"type\": \"module\"}' > edition-esnext-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"c406c9dff133d59ee0dc7302dbddb5ffad697ca4","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/start-of-week\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/start-of-week/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nTake a locale and return its start of the week (0 = Sunday, 1 = Monday)\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/globals.html)\n\n```javascript\nimport getSW from 'start-of-week'\nconsole.log(getSW()) // 0 (Sunday) if user is in North American, otherwise 1 (Monday)\nconsole.log(getSW('')) // 1\nconsole.log(getSW('en_AU')) // 1\nconsole.log(getSW('en_US')) // 0\nconsole.log(getSW('en_CA')) // 0\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Import: <code>import pkg from ('start-of-week')</code></li>\n<li>Require: <code>const pkg = require('start-of-week').default</code></li>\n</ul>\n\n<a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n``` typescript\nimport pkg from 'https://unpkg.com/start-of-week@^3.6.0/edition-deno/deno.ts'\n```\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/start-of-week@^3.6.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^3.6.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@3.6.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/node.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-browsers/browser.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-esnext/node.js</code></li>\n<li><code>start-of-week/edition-esnext/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 14 || 15 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-esnext-esm/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 12 || 14 || 15 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-deno/deno.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code made to be compatible with <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative to Node.js\">Deno</a></li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","_id":"start-of-week@3.6.0-next.1604234769.c406c9dff133d59ee0dc7302dbddb5ffad697ca4","_nodeVersion":"14.15.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-h76r+vLeSrQJQ6JXTuP8+glUj2PwCioMnVOUEpH/EJq55JCLUDhYqRjGuGvA/ADnRwTDjGScTD54TG9EkHU2Mg==","shasum":"6121aa411282187fb2386084f3068acc594c882f","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-3.6.0-next.1604234769.c406c9dff133d59ee0dc7302dbddb5ffad697ca4.tgz","fileCount":36,"unpackedSize":36918,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfnq4SCRA9TVsSAnZWagAA2iwP/j8jmnrECSB4EuRnfxJG\nej69vo/RXH4R/Z9FBoxA8W8SEhPDP8L8xF8mz/u1poxZfR/1m7/poMmfnz40\nzgCmjMBXzqVi64EXUgDCZt2JUp0KwTwzcaW0r8vYkmnrdHllLj36yhr7ExTt\nEJanhGjrz5gt5WGvDuiCZ2RvlDlro3iSDJQls5nU289SNotPMIyvJCJHT07U\n7Pm+1JtmnO92F8rF1/22LCmbuibxSQ0O77TmZd/GUmBco21NsMsbZGpT9ZQp\nR1si3McWzk90iFZiB3crviw2U9n/FfcVgeFlVr2Lw+3FXSvO7tn7AsGq/02v\n6VTlwtGk9j5vRIyZq8n2DyBj157nXuZLpeNhj3Waylv+B8hRR8BdHVH+n0kH\n0QcQPoSN+xSdZcW+i3LyjD15SQYY8w8dVf7oiAVHHNU0RnKB/32c1Rr9DEft\nMT6qMO92T8Dd1+v5WSbHBD/ijrfVpHoh8D6Ja/51bzCXtYxLUUeg9rSvtBiE\nD/1ULx/kvUHwHOk1JL+GUwWAIX/LQgR/LjUDQPfCAySmm3uSVVzfamJzLylo\nA1J3BlSGJaIA48oZuellY7WqxNJakYxDLdk8NpAOPldT8C9U5Pl19fikOTBB\nGVjlNxb388VTqLlK2ugjhctEn1WaLy0wEBoG68f+bPiOmfylq0kA/7rj/pUh\nKoG+\r\n=V5Wl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAjSnNnkcRVdXQGdHlo/KRjbdQJX8KKDmgrdGGHKZE8zAiEA87+7yvVpzuAMKpP1YfzsH8RGsaB8UUlyZap7trN7xY8="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_3.6.0-next.1604234769.c406c9dff133d59ee0dc7302dbddb5ffad697ca4_1604234770501_0.5980368881294638"},"_hasShrinkwrap":false},"3.6.0-next.1604234874.19e9abcd806f969fac8ca177e590f6600f4a6676":{"name":"start-of-week","version":"3.6.0-next.1604234874.19e9abcd806f969fac8ca177e590f6600f4a6676","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","esnext","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"node.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js 10 || 12 || 14 || 15 with Require for modules","directory":"edition-esnext","entry":"node.js","tags":["compiled","javascript","esnext","require"],"engines":{"node":"10 || 12 || 14 || 15","browsers":false}},{"description":"TypeScript compiled against ESNext for Node.js 12 || 14 || 15 with Import for modules","directory":"edition-esnext-esm","entry":"node.js","tags":["compiled","javascript","esnext","import"],"engines":{"node":"12 || 14 || 15","browsers":false}},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"./compiled-types/","type":"module","main":"edition-esnext/node.js","exports":{"node":{"import":"./edition-esnext-esm/node.js","require":"./edition-esnext/node.js"},"browser":{"import":"./edition-browsers/browser.js"}},"deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","devDependencies":{"@bevry/update-contributors":"^1.17.0","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0","assert-helpers":"^8.1.0","eslint":"^7.12.1","eslint-config-bevry":"^3.23.0","eslint-config-prettier":"^6.15.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.13.0","make-deno-edition":"^1.2.0","prettier":"^2.1.2","projectz":"^2.17.0","surge":"^0.21.6","typedoc":"^0.19.2","typescript":"^4.0.5","valid-directory":"^3.4.0","valid-module":"^1.14.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-esnext && npm run our:compile:edition-esnext-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-esnext-esm":"tsc --module ESNext --target ESNext --outDir ./edition-esnext-esm --project tsconfig.json && ( test ! -d edition-esnext-esm/source || ( mv edition-esnext-esm/source edition-temp && rm -Rf edition-esnext-esm && mv edition-temp edition-esnext-esm ) ) && echo '{\"type\": \"module\"}' > edition-esnext-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-esnext/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"19e9abcd806f969fac8ca177e590f6600f4a6676","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/start-of-week\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/start-of-week/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nTake a locale and return its start of the week (0 = Sunday, 1 = Monday)\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/globals.html)\n\n```javascript\nimport getSW from 'start-of-week'\nconsole.log(getSW()) // 0 (Sunday) if user is in North American, otherwise 1 (Monday)\nconsole.log(getSW('')) // 1\nconsole.log(getSW('en_AU')) // 1\nconsole.log(getSW('en_US')) // 0\nconsole.log(getSW('en_CA')) // 0\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Import: <code>import pkg from ('start-of-week')</code></li>\n<li>Require: <code>const pkg = require('start-of-week').default</code></li>\n</ul>\n\n<a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n``` typescript\nimport pkg from 'https://unpkg.com/start-of-week@^3.6.0/edition-deno/deno.ts'\n```\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/start-of-week@^3.6.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^3.6.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@3.6.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/node.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-browsers/browser.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-esnext/node.js</code></li>\n<li><code>start-of-week/edition-esnext/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 14 || 15 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-esnext-esm/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 12 || 14 || 15 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-deno/deno.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code made to be compatible with <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative to Node.js\">Deno</a></li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","_id":"start-of-week@3.6.0-next.1604234874.19e9abcd806f969fac8ca177e590f6600f4a6676","_nodeVersion":"14.15.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-NNfBG2dROW+kakHxhub4QIFndnaT+gRjAf/IFf1V2XAMDsOYy3aHovhW7Da7sE5mFpg60hxMbFwK3zY2PJhm+w==","shasum":"8ddc9db6260324c92ada320ae6023c72316cf741","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-3.6.0-next.1604234874.19e9abcd806f969fac8ca177e590f6600f4a6676.tgz","fileCount":36,"unpackedSize":36918,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfnq58CRA9TVsSAnZWagAAMeAQAIywv2jLu8pHsWZZhqd9\nCwR1P85pXkinol5OpRuOVYYYar4g4J0xbFEBdHtkzsHPJbVGuxq8Qt8kv5aA\nNXgRDaPHtRA7PHlGkUDFMWcFch16xVhPSfD3N1XjTNKjoPw2l/LNF8to5XYY\nprZYMmSWblJt7sfA4V7lkL8IQCjkQH39osJDHu/RXmLjBSyv+0Ad3Q9eyYNb\nKgu4qIPoVTBmojnbRu+u59QORxm+Ht1plZAay/Mrjunzh1EiUdHZNa9TN8KZ\ngX+xlXBiLKxocHuSnqsAIR9hAjUfKazSdb3X2mX9KDf97mSO/TzsGHDAMsdK\nVixgpViXApuc3WrFrkti42rttjbINeLp6QW8Hvyk8cCq+2+zs3QbKewwKsvb\nsagS1ktst0gA0nzos5xxJMxYLmGrrxl+9aNIXGI2CwbsRVYruhdSyHZfxjZJ\ntwFY6x2ATHYz+2UyIMmzxXz4cmiYd0h7xn7VBFpEPQ41u8oeK598xlhcxreu\n9PVE/HxPhbhQsMCtG+4z2GKTKsK8FWnRWicyxteGJTuJIiOIKIEDr+Dtg4ew\nXugdONyuLqC80VoitFo5U4V7DZgM5hV5pId7Y5nnBxS4q1G5JYPtj43Yqin2\n7UgbHDi8JfuE+x4Aq1lG4oMNQh1aKIqPYHi74vmbsnKQ7pL05uU0jXbP4til\nJ/iJ\r\n=JtWj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC/gt703WoJ24LaU9Qm7F00SZLlPvaNVbCoMpMs5rXeJAIgLrN5Gq4SAvvw3YwVIuRkvigU2n1wNztfUpl3X8J/nmI="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_3.6.0-next.1604234874.19e9abcd806f969fac8ca177e590f6600f4a6676_1604234875989_0.27534643304418593"},"_hasShrinkwrap":false},"3.7.0-next.1627431380.1b24f144d4855d5280b15e55b312ebfe38c81840":{"name":"start-of-week","version":"3.7.0-next.1627431380.1b24f144d4855d5280b15e55b312ebfe38c81840","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["allow-env","browser","daet","date","day","dom","es2019","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["githubworkflow","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubWorkflow":"bevry","githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"node.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2020 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ES2019 for Node.js 10 || 12 || 14 with Require for modules","directory":"edition-es2019","entry":"node.js","tags":["compiled","javascript","es2019","require"],"engines":{"node":"10 || 12 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js 12 || 14 with Import for modules","directory":"edition-es2019-esm","entry":"node.js","tags":["compiled","javascript","es2019","import"],"engines":{"node":"12 || 14","browsers":false}}],"types":"./compiled-types/","type":"module","main":"edition-es2019/node.js","exports":{"node":{"import":"./edition-es2019-esm/node.js","require":"./edition-es2019/node.js"},"browser":{"import":"./edition-browsers/browser.js"}},"browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","devDependencies":{"@bevry/update-contributors":"^1.18.0","@typescript-eslint/eslint-plugin":"^4.28.5","@typescript-eslint/parser":"^4.28.5","assert-helpers":"^8.2.0","eslint":"^7.31.0","eslint-config-bevry":"^3.23.0","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^3.4.0","kava":"^5.14.0","make-deno-edition":"^1.3.0","prettier":"^2.3.2","projectz":"^2.18.0","surge":"^0.23.0","typedoc":"^0.21.4","typescript":"4.3.5","valid-directory":"^3.7.0","valid-module":"^1.15.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2019 && npm run our:compile:edition-es2019-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2020 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2019":"tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && ( test ! -d edition-es2019/source || ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) ) && echo '{\"type\": \"commonjs\"}' > edition-es2019/package.json","our:compile:edition-es2019-esm":"tsc --module ESNext --target ES2019 --outDir ./edition-es2019-esm --project tsconfig.json && ( test ! -d edition-es2019-esm/source || ( mv edition-es2019-esm/source edition-temp && rm -Rf edition-es2019-esm && mv edition-temp edition-es2019-esm ) ) && echo '{\"type\": \"module\"}' > edition-es2019-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --exclude '**/+(*test*|node_modules)' --excludeExternals --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-es2019/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-githubworkflow\"><a href=\"https://github.com/bevry/start-of-week/actions?query=workflow%3Abevry\" title=\"View the status of this project's GitHub Workflow: bevry\"><img src=\"https://github.com/bevry/start-of-week/workflows/bevry/badge.svg\" alt=\"Status of the GitHub Workflow: bevry\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nTake a locale and return its start of the week (0 = Sunday, 1 = Monday)\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/globals.html)\n\n```javascript\nimport getSW from 'start-of-week'\nconsole.log(getSW()) // 0 (Sunday) if user is in North American, otherwise 1 (Monday)\nconsole.log(getSW('')) // 1\nconsole.log(getSW('en_AU')) // 1\nconsole.log(getSW('en_US')) // 0\nconsole.log(getSW('en_CA')) // 0\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Import: <code>import pkg from ('start-of-week')</code></li>\n<li>Require: <code>const pkg = require('start-of-week').default</code></li>\n</ul>\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/start-of-week@^3.7.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^3.7.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@3.7.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/node.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-browsers/browser.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#11th_Edition_–_ECMAScript_2020\" title=\"ECMAScript ES2020\">ES2020</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-es2019/node.js</code></li>\n<li><code>start-of-week/edition-es2019/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-es2019-esm/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 12 || 14 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","gitHead":"1b24f144d4855d5280b15e55b312ebfe38c81840","_id":"start-of-week@3.7.0-next.1627431380.1b24f144d4855d5280b15e55b312ebfe38c81840","_nodeVersion":"14.17.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-shpPtVG8l3+U5CeweIPPiffLUqQyvgnBDi8bBVn74vdd789TEDAYZVYMPdIRE3mPy4uMVRZSq6QDwX7vtZITgw==","shasum":"94838f2cd2bb507790a533aca0dc991d25e20cea","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-3.7.0-next.1627431380.1b24f144d4855d5280b15e55b312ebfe38c81840.tgz","fileCount":35,"unpackedSize":35960,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhAKHVCRA9TVsSAnZWagAAK7cP/jlECqqN8+8u9HKm7Phb\ngnA3KADSuJ6jhVGPLrOPXhUxuN9celXv8uYJaS2tJA1Ena3R/S7nTTtLQAl0\nA2xlxADHyeLvjTCuEJCNDqg0fzIbCnAfAqzRK/zWuo0PgtJcdmWB+CklBYe8\n8TJ2pE0F7FYrCXNAmqrtFYXYgZ4lw3f2pFMLpyJSECjci3kg74Und47PhsqQ\nxEPflFs8cImrJV3CYT8XrYY1VrkWGYvVFDqbek3PrMcIRdeDz2Uk4JkmW1Po\nSaUbYTPJxeHSHeT38zs9yL1PvxZTqSdQm1qna807Lq693RZbytooinKEsqBO\nI8Dv/Yo5TVhByr6A5yIGWCaD/bNxqx1+wTYcpuqQnZtniyabyuypi8hTJrSe\nrIxTt54AIe4LMSZ+O9Cu72FQOmkyP0eMxIOi0dcbUeK7Yhyvab/OhZiZ2pBn\nTLcshr1DKFMHH6bfntTuC3vwTKWaKR0vPBwZ9BpJiKpbajOxH4Jd0Ol1oTIZ\n3ehsPqVf7BrrcJTBZOlvF5dTlF3ek7t1tEbK0Pyw3O0j6wGskseWlR+HleW8\na3kylHVPrNX4xwEvpAK9Di5IScOn9C/eIl0OTsNEi0+vjMKXkpvn2HBDTtxv\nVwGhHD0ep6hqDfAnVyE1GDrI+5yEwm82kQKH3UXY2WYwPyuUF0ybgBv/dv9v\ncPea\r\n=Y+qM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBxoiQZ9JDLPWdZQ9M+PDkxpGaFqqRA7Ovbw3tJTAgwEAiEAgohGMqiQWF5B8fZuuzUG5wqvYr27sXfo925aB04hzrY="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_3.7.0-next.1627431380.1b24f144d4855d5280b15e55b312ebfe38c81840_1627431381667_0.9312266667160809"},"_hasShrinkwrap":false},"3.7.0":{"name":"start-of-week","version":"3.7.0","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["allow-env","browser","daet","date","day","dom","es2019","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["githubworkflow","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubWorkflow":"bevry","githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"node.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2020 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ES2019 for Node.js 10 || 12 || 14 with Require for modules","directory":"edition-es2019","entry":"node.js","tags":["compiled","javascript","es2019","require"],"engines":{"node":"10 || 12 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js 12 || 14 with Import for modules","directory":"edition-es2019-esm","entry":"node.js","tags":["compiled","javascript","es2019","import"],"engines":{"node":"12 || 14","browsers":false}}],"types":"./compiled-types/","type":"module","main":"edition-es2019/node.js","exports":{"node":{"import":"./edition-es2019-esm/node.js","require":"./edition-es2019/node.js"},"browser":{"import":"./edition-browsers/browser.js"}},"browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","devDependencies":{"@bevry/update-contributors":"^1.18.0","@typescript-eslint/eslint-plugin":"^4.28.5","@typescript-eslint/parser":"^4.28.5","assert-helpers":"^8.2.0","eslint":"^7.31.0","eslint-config-bevry":"^3.23.0","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^3.4.0","kava":"^5.14.0","make-deno-edition":"^1.3.0","prettier":"^2.3.2","projectz":"^2.18.0","surge":"^0.23.0","typedoc":"^0.21.4","typescript":"4.3.5","valid-directory":"^3.7.0","valid-module":"^1.15.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2019 && npm run our:compile:edition-es2019-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2020 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2019":"tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && ( test ! -d edition-es2019/source || ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) ) && echo '{\"type\": \"commonjs\"}' > edition-es2019/package.json","our:compile:edition-es2019-esm":"tsc --module ESNext --target ES2019 --outDir ./edition-es2019-esm --project tsconfig.json && ( test ! -d edition-es2019-esm/source || ( mv edition-es2019-esm/source edition-temp && rm -Rf edition-es2019-esm && mv edition-temp edition-es2019-esm ) ) && echo '{\"type\": \"module\"}' > edition-es2019-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --exclude '**/+(*test*|node_modules)' --excludeExternals --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-es2019/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"1b24f144d4855d5280b15e55b312ebfe38c81840","_id":"start-of-week@3.7.0","_nodeVersion":"14.17.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-vaFu+X0D7BUAQ+BnBdNyf9nkpElurgGpyeXmVi4wkJ0u7NIcYeEr41hAus+wBRT6i12heg5A79Zh2E6mxIEMoA==","shasum":"4525d2fa7d3f08518e1bfc34140267a89334b748","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-3.7.0.tgz","fileCount":35,"unpackedSize":35903,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhAKIYCRA9TVsSAnZWagAA0I8P/R4NjPKQb3GME3r4BKrk\nxRntaCXdtBW6/KSF2DseevPNdWTJu2qbIl3RVl0nirQGZum2IcKzrn8WAlOo\nRjqWdnEeKbpKF1TOp79V+IgsN8DeJC7gteHN+fEL9bYk9SNt6ifX3Bsn7dwQ\nsM2MDeFXMwQYZb3y3hHK3qaWNj/nz/HKFlPr26xFdCcRrmcB5NOnXsOi3lZk\nqyaf9jEpNoyi6wTU/ba/Zlc7o4ry5316pkuLfn2PEWT/156PaytrZQLtI0Ah\nvrkEJRYdnhvRtH6kTvu9p5i4Fb53eZWNHVAib54+2ivfht4bLihtkdvGI33D\nCOutjsZISDBBuQiF4II0Jflm0IjFc8lcJL/1cy3tpMA7KqQJ5S5eO7GwN9ij\nhpvizU14SAGFeTuqYD0473AgUeUw8+xetLIZOAR0rY8SyKgK2zmjHf7l5h1F\n/amT1FkiVIUzO5eYvFyze4lhubL605CraTjDmJj81VvVkpKiY1DhXuIMmkl2\n6Es/uYJxoZFp+oYPeXq0jjyTDOpgh+XnwYikwqIyYQi+zU/N6l+ZompuvQU6\nW9OXVaCp3w9EzgEVFZ3QsqYRRN37qHoa1bqZUf2I+923ZqkEsrCNPjgrpg/m\n/bAGqkeL8FRSq+6+9bylvZYzhDD9W8igJdQXZKtjzfpTOgCmeaGdpZ7AOkYH\nU/Y6\r\n=gRUX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG+WRkIZcslHfH1tERLaP4CjejtnWLZvcv7RR0IfmRfCAiEAlbWHbNz6T88bTJeknx0JSo0EHRXc/B7LvrnruhFgAo0="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_3.7.0_1627431448481_0.21999793439439186"},"_hasShrinkwrap":false},"3.8.0-next.1627672715.24fc0aceb8d8b327392606470c848ccdeb0700d6":{"name":"start-of-week","version":"3.8.0-next.1627672715.24fc0aceb8d8b327392606470c848ccdeb0700d6","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["allow-env","browser","daet","date","day","dom","es2019","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["githubworkflow","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubWorkflow":"bevry","githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"node.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2020 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ES2019 for Node.js 10 || 12 || 14 || 16 with Require for modules","directory":"edition-es2019","entry":"node.js","tags":["compiled","javascript","es2019","require"],"engines":{"node":"10 || 12 || 14 || 16","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js 12 || 14 || 16 with Import for modules","directory":"edition-es2019-esm","entry":"node.js","tags":["compiled","javascript","es2019","import"],"engines":{"node":"12 || 14 || 16","browsers":false}}],"types":"./compiled-types/","type":"module","main":"edition-es2019/node.js","exports":{"node":{"import":"./edition-es2019-esm/node.js","require":"./edition-es2019/node.js"},"browser":{"import":"./edition-browsers/browser.js"}},"browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","devDependencies":{"@bevry/update-contributors":"^1.19.0","@typescript-eslint/eslint-plugin":"^4.28.5","@typescript-eslint/parser":"^4.28.5","assert-helpers":"^8.4.0","eslint":"^7.31.0","eslint-config-bevry":"^3.27.0","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^3.4.0","kava":"^5.15.0","make-deno-edition":"^1.3.0","prettier":"^2.3.2","projectz":"^2.22.0","surge":"^0.23.0","typedoc":"^0.21.4","typescript":"4.3.5","valid-directory":"^3.7.0","valid-module":"^1.16.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2019 && npm run our:compile:edition-es2019-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2020 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2019":"tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && ( test ! -d edition-es2019/source || ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) ) && echo '{\"type\": \"commonjs\"}' > edition-es2019/package.json","our:compile:edition-es2019-esm":"tsc --module ESNext --target ES2019 --outDir ./edition-es2019-esm --project tsconfig.json && ( test ! -d edition-es2019-esm/source || ( mv edition-es2019-esm/source edition-temp && rm -Rf edition-es2019-esm && mv edition-temp edition-es2019-esm ) ) && echo '{\"type\": \"module\"}' > edition-es2019-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --exclude '**/+(*test*|node_modules)' --excludeExternals --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-es2019/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-githubworkflow\"><a href=\"https://github.com/bevry/start-of-week/actions?query=workflow%3Abevry\" title=\"View the status of this project's GitHub Workflow: bevry\"><img src=\"https://github.com/bevry/start-of-week/workflows/bevry/badge.svg\" alt=\"Status of the GitHub Workflow: bevry\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nTake a locale and return its start of the week (0 = Sunday, 1 = Monday)\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/)\n\n```javascript\nimport getSW from 'start-of-week'\nconsole.log(getSW()) // 0 (Sunday) if user is in North American, otherwise 1 (Monday)\nconsole.log(getSW('')) // 1\nconsole.log(getSW('en_AU')) // 1\nconsole.log(getSW('en_US')) // 0\nconsole.log(getSW('en_CA')) // 0\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Import: <code>import pkg from ('start-of-week')</code></li>\n<li>Require: <code>const pkg = require('start-of-week').default</code></li>\n</ul>\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/start-of-week@^3.8.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^3.8.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@3.8.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/node.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-browsers/browser.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#11th_Edition_–_ECMAScript_2020\" title=\"ECMAScript ES2020\">ES2020</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-es2019/node.js</code></li>\n<li><code>start-of-week/edition-es2019/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 14 || 16 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-es2019-esm/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 12 || 14 || 16 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","gitHead":"24fc0aceb8d8b327392606470c848ccdeb0700d6","_id":"start-of-week@3.8.0-next.1627672715.24fc0aceb8d8b327392606470c848ccdeb0700d6","_nodeVersion":"14.17.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-WOJMWKUg2CMGkH1HTbhttAU7H3ydSWp6300OUz94FKUim5XoSONlNIkk3oAkVVegHX9XDg+1MBX9AU7O5vrcTg==","shasum":"8f952d93d1db4404776f472572e06eadb3ed5d89","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-3.8.0-next.1627672715.24fc0aceb8d8b327392606470c848ccdeb0700d6.tgz","fileCount":35,"unpackedSize":36178,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhBFCNCRA9TVsSAnZWagAA+TkP/2Z33N11xav9pGSGpdW/\nJy/G0a4xBzxFIi6RfPn+NnNvbVpTDyd2keyma8BedP6upiIWxtyn2E/bbftO\nIWL6Zgb9va0m8TScpWS/9OXFjiMIaiuvEV/7NHoBU2dw7lx2vaAplDw59P47\nXSfx4nFhSAoQv9DxeYdROnUhrSDcSDWGz6wq1tbGs2wma7QsXXYPWyLgLjhm\nHkHzR3lIMvxEmSOAqWCv9Dbocczkcd9UfbAXG4V5AOrlHSePKDXmUNx21Oxu\nb8xLAcs4I3x/08qhUkCFAFTcWmeyy5MkbChomY0IdE5OmxUuRwuvfT9iETWH\nyyiwCTnm2mgU9u9Jc6MEmrJzZB9kkOH73VpMhA+jhlZIlt4iA+cEzvJCKO8/\ntbA0kuIxXpgtBmkPhnEDEYjXexnkTGaSbGGng09oOlvgMO/GrPQpO5VHiHIW\ntisXiFz/+FH9992YNaRloRrkCZgyK+z1mJIkhjDDOkfkCruG8gk80Ivlv3jM\n8iqz7pIm17a7/H1ZGWCqAV0/K7KMmIJkmCe1lOgsCKVLQU3QDzu7BfR7zZJy\nuec38KEi4utycVUkqVSxIZULaPf7Dky9ans5Jo1S6AEkJVgPTboPyQEGxHsR\nx11aVAmi5/vbBawyL4z91Kgf9vB/2N1QTwb4Xwk87VW9zggjvi+fGKoFMJex\nXZiA\r\n=jrfm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDJvPGSFdPWmtXvnVWOS1tUDVsHAAg9vkdEmdClOAdRZAIhAOBQaRaM+5zGmVrK7PSS3iIVFdZfPXpQOLH9yVDQAg/l"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_3.8.0-next.1627672715.24fc0aceb8d8b327392606470c848ccdeb0700d6_1627672717083_0.02125773613389592"},"_hasShrinkwrap":false},"3.8.0":{"name":"start-of-week","version":"3.8.0","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["allow-env","browser","daet","date","day","dom","es2019","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["githubworkflow","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubWorkflow":"bevry","githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"node.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2020 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ES2019 for Node.js 10 || 12 || 14 || 16 with Require for modules","directory":"edition-es2019","entry":"node.js","tags":["compiled","javascript","es2019","require"],"engines":{"node":"10 || 12 || 14 || 16","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js 12 || 14 || 16 with Import for modules","directory":"edition-es2019-esm","entry":"node.js","tags":["compiled","javascript","es2019","import"],"engines":{"node":"12 || 14 || 16","browsers":false}}],"types":"./compiled-types/","type":"module","main":"edition-es2019/node.js","exports":{"node":{"import":"./edition-es2019-esm/node.js","require":"./edition-es2019/node.js"},"browser":{"import":"./edition-browsers/browser.js"}},"browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","devDependencies":{"@bevry/update-contributors":"^1.19.0","@typescript-eslint/eslint-plugin":"^4.28.5","@typescript-eslint/parser":"^4.28.5","assert-helpers":"^8.4.0","eslint":"^7.31.0","eslint-config-bevry":"^3.27.0","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^3.4.0","kava":"^5.15.0","make-deno-edition":"^1.3.0","prettier":"^2.3.2","projectz":"^2.22.0","surge":"^0.23.0","typedoc":"^0.21.4","typescript":"4.3.5","valid-directory":"^3.7.0","valid-module":"^1.16.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2019 && npm run our:compile:edition-es2019-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2020 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2019":"tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && ( test ! -d edition-es2019/source || ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) ) && echo '{\"type\": \"commonjs\"}' > edition-es2019/package.json","our:compile:edition-es2019-esm":"tsc --module ESNext --target ES2019 --outDir ./edition-es2019-esm --project tsconfig.json && ( test ! -d edition-es2019-esm/source || ( mv edition-es2019-esm/source edition-temp && rm -Rf edition-es2019-esm && mv edition-temp edition-es2019-esm ) ) && echo '{\"type\": \"module\"}' > edition-es2019-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --exclude '**/+(*test*|node_modules)' --excludeExternals --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-es2019/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"24fc0aceb8d8b327392606470c848ccdeb0700d6","_id":"start-of-week@3.8.0","_nodeVersion":"14.17.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-JEaS99Z66Rq1+YJO0I/iD8Iuhj8NSigTQCMt+bwdddbRwe5fyvA78WCXPzpRW7T2b5UkBIYkMnGbaIWUa69JRQ==","shasum":"09e5a3e808e9f77f4e9dc1e8f8137e5c814094bf","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-3.8.0.tgz","fileCount":35,"unpackedSize":36120,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhBFC4CRA9TVsSAnZWagAATJsP/3OCHwCPsIPTEUW7o10i\nX3PY61V/xF2zr1fZlDcV7QPfBUI0H7KTq7Q8H0kBLA1fqbLqnWsSarFzRTi6\nImgIm58Zmn1RT/ip4oP51qR91DnLNyTXKPRdcXMQGg5Mact4k2YFW+5BUmLf\nakvasoZr/ySeHPYyAyY8QJUwC5GYVLkXCFrV/VNvlJ3co1yI8M557JfebFK8\nsASt7Kurns8ayTOu88SGo5dj7GcXdbHz7OAsXgppdydRVuM+RuCZhXAaVYm0\nlXyPIEtN5tR7G/lIbZcWyrk3IZvHod550O2wH6F+Z1La9LHv4a0WsxtzCj9z\n6Eo8qrC1Hmezvvxf4UyfF9cEK/zP6oJT4btvTkio1aOq8a1/8fGkrAYDrE9O\nWPzdTlKvUUEjZJy4UzDQlEMha/J/zYwnpmxRHy8MFyQJ72SBP39GS5W19dKI\nH1Z/VQ2EP1EsKAZtvK9LwN2XHdKRaSrutTRZD9qA5xRGBxYaXksEUKAv4MPy\nwTw91QN7q4MdAq6SkEpKbBtHbQ54i0YiAZ4ra9STCzJOxIlnAySk+N8ylOyc\nXLm3wOym2SBwN0snn2RnYAIAtUxyHiMNS6GtF/hh+PjlQ9wRFZXkAa+iJECD\neVOIxcKIdMAAYkyO0tPQRvtjYJS2Cus5o1LnBF6Z3UvUQ1N4ILOaWacwXnbY\nsnM5\r\n=I88N\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDyVuc+L94sM7xCy6QHmfLBSIjUfK1EY+wkYGDlV8HAfQIhAM83k0t/Cpl53Rj1IKaVCp7WQf+5UoWBdsq4H3K2qkQB"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_3.8.0_1627672760746_0.0750336716036406"},"_hasShrinkwrap":false},"3.8.2":{"name":"start-of-week","version":"3.8.2","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["allow-env","browser","daet","date","day","dom","es2019","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["githubworkflow","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubWorkflow":"bevry","githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"node.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2020 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ES2019 for Node.js 10 || 12 || 14 || 16 with Require for modules","directory":"edition-es2019","entry":"node.js","tags":["compiled","javascript","es2019","require"],"engines":{"node":"10 || 12 || 14 || 16","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js 12 || 14 || 16 with Import for modules","directory":"edition-es2019-esm","entry":"node.js","tags":["compiled","javascript","es2019","import"],"engines":{"node":"12 || 14 || 16","browsers":false}}],"exports":{"workerd":{"import":"./edition-es2019-esm/index.js","require":"./edition-es2019/index.js"},"node":{"import":"./edition-es2019-esm/node.js","require":"./edition-es2019/node.js"},"browser":{"import":"./edition-browsers/browser.js"}},"type":"module","types":"./compiled-types/","browser":"edition-browsers/browser.js","module":"edition-es2019-esm/node.js","main":"edition-es2019/node.js","devDependencies":{"@bevry/update-contributors":"^1.21.0","@typescript-eslint/eslint-plugin":"^5.54.0","@typescript-eslint/parser":"^5.54.0","assert-helpers":"^8.4.0","eslint":"^8.35.0","eslint-config-bevry":"^3.27.0","eslint-config-prettier":"^8.6.0","eslint-plugin-prettier":"^4.2.1","kava":"^5.15.0","make-deno-edition":"^1.3.0","prettier":"^2.8.4","projectz":"^2.22.0","surge":"^0.23.1","typedoc":"^0.23.26","typescript":"4.9.5","valid-directory":"^3.9.0","valid-module":"^1.17.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2019 && npm run our:compile:edition-es2019-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2020 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2019":"tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && ( test ! -d edition-es2019/source || ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) ) && echo '{\"type\": \"commonjs\"}' > edition-es2019/package.json","our:compile:edition-es2019-esm":"tsc --module ESNext --target ES2019 --outDir ./edition-es2019-esm --project tsconfig.json && ( test ! -d edition-es2019-esm/source || ( mv edition-es2019-esm/source edition-temp && rm -Rf edition-es2019-esm && mv edition-temp edition-es2019-esm ) ) && echo '{\"type\": \"module\"}' > edition-es2019-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --exclude '**/+(*test*|node_modules)' --excludeExternals --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-es2019/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"gitHead":"762def177f50c7fbd09922c2103ee46963d2becf","_id":"start-of-week@3.8.2","_nodeVersion":"14.21.3","_npmVersion":"6.14.18","dist":{"integrity":"sha512-m+QWvgICyOTB738+GPsDP87ahJ2MPROaPiTQYQTI888KY8pFqcS7q6GT6AdQUwT8qVM0tjmZvYc+QMf2LgPfdQ==","shasum":"e608c7f70263f73d81c52b89effd8f98a8447521","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-3.8.2.tgz","fileCount":36,"unpackedSize":36882,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCokPSlvEEqtQVMjsejFTWEulr8gJpmpiNXF4E7E+YHjQIhANVEDprBcAWXeMEWHT0U5HOK6NnjDnaQrqgbjsMhwJu5"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj/rrZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo/xA//SvTvm6NILLhrNo3eq4UBXn+ki8oDp7EPSYRW9xMgeiswt47/\r\n0dEphx2VhQtH7LBbJ4R3GCU6+YRSPN59SqOPsSFfowkc4dAPz0uCvWGHkUQm\r\nmNcwwpXzbhyxnWPzCkYeWX1zFwN2tq/1QEzTipMTXWbcPBmANt4W4U6DF96t\r\nvRDzAuKnWXqPUEO2RdtmYY53OTtHaWRLRm1WCcTkkd0BWZVsKU/wXvvymqMu\r\nkpaUv+GEa4Q1/zFsZUrmJbxeFNjpgeuZMLk0ygkrZzaE2T4Ic0l1Wucv51zA\r\nB0EOQ+c2CVZqhRUS71bcJEBjNo+80w3mM8NVMaWSwPieFfy3a3I4fWi4u2dZ\r\n4JVyZG2ZWMA6GBwUPuPKYuAfiargJfK0fIp/DykPnoRNJxA14LHwH4/bUZot\r\nnqHmSpIjbwbpfbcw0S4JTWcyAw+f9rJXHdDpq40OtUcp+HUa6rqXFZLk0/Xq\r\n5nnMwRfLl8Xcne1001YhzkE7HpFiEahYeLFNeaMC0yDop1RsKag2WYyb0IVL\r\nIpYw5XTlZVF5xKyb9cnpCqrQkBjdIrJ7JqhjDtXBo8jKnC8n2EWRhg5NOtf+\r\nVrromKyKkhv2rvDI1+NlXuXrAl6ukxOvuHQ5O7e7xGVbpWkF/A+/PCdE77hx\r\njILi0vyKkHvHWHnavSfBJoSGS8GC6ZQ7O/w=\r\n=wir0\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_3.8.2_1677638361729_0.11665565427616542"},"_hasShrinkwrap":false},"3.8.2-next.1677638370.762def177f50c7fbd09922c2103ee46963d2becf":{"name":"start-of-week","version":"3.8.2-next.1677638370.762def177f50c7fbd09922c2103ee46963d2becf","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"MIT","keywords":["allow-env","browser","daet","date","day","dom","es2019","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["githubworkflow","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubWorkflow":"bevry","githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"node.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2020 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ES2019 for Node.js 10 || 12 || 14 || 16 with Require for modules","directory":"edition-es2019","entry":"node.js","tags":["compiled","javascript","es2019","require"],"engines":{"node":"10 || 12 || 14 || 16","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js 12 || 14 || 16 with Import for modules","directory":"edition-es2019-esm","entry":"node.js","tags":["compiled","javascript","es2019","import"],"engines":{"node":"12 || 14 || 16","browsers":false}}],"exports":{"workerd":{"import":"./edition-es2019-esm/index.js","require":"./edition-es2019/index.js"},"node":{"import":"./edition-es2019-esm/node.js","require":"./edition-es2019/node.js"},"browser":{"import":"./edition-browsers/browser.js"}},"type":"module","types":"./compiled-types/","browser":"edition-browsers/browser.js","module":"edition-es2019-esm/node.js","main":"edition-es2019/node.js","devDependencies":{"@bevry/update-contributors":"^1.21.0","@typescript-eslint/eslint-plugin":"^5.54.0","@typescript-eslint/parser":"^5.54.0","assert-helpers":"^8.4.0","eslint":"^8.35.0","eslint-config-bevry":"^3.27.0","eslint-config-prettier":"^8.6.0","eslint-plugin-prettier":"^4.2.1","kava":"^5.15.0","make-deno-edition":"^1.3.0","prettier":"^2.8.4","projectz":"^2.22.0","surge":"^0.23.1","typedoc":"^0.23.26","typescript":"4.9.5","valid-directory":"^3.9.0","valid-module":"^1.17.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2019 && npm run our:compile:edition-es2019-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2020 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2019":"tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && ( test ! -d edition-es2019/source || ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) ) && echo '{\"type\": \"commonjs\"}' > edition-es2019/package.json","our:compile:edition-es2019-esm":"tsc --module ESNext --target ES2019 --outDir ./edition-es2019-esm --project tsconfig.json && ( test ! -d edition-es2019-esm/source || ( mv edition-es2019-esm/source edition-temp && rm -Rf edition-es2019-esm && mv edition-temp edition-es2019-esm ) ) && echo '{\"type\": \"module\"}' > edition-es2019-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --exclude '**/+(*test*|node_modules)' --excludeExternals --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-es2019/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-githubworkflow\"><a href=\"https://github.com/bevry/start-of-week/actions?query=workflow%3Abevry\" title=\"View the status of this project's GitHub Workflow: bevry\"><img src=\"https://github.com/bevry/start-of-week/workflows/bevry/badge.svg\" alt=\"Status of the GitHub Workflow: bevry\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/start-of-week\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/start-of-week.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/start-of-week#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/start-of-week.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nTake a locale and return its start of the week (0 = Sunday, 1 = Monday)\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/)\n\n```javascript\nimport getSW from 'start-of-week'\nconsole.log(getSW()) // 0 (Sunday) if user is in North American, otherwise 1 (Monday)\nconsole.log(getSW('')) // 1\nconsole.log(getSW('en_AU')) // 1\nconsole.log(getSW('en_US')) // 0\nconsole.log(getSW('en_CA')) // 0\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Import: <code>import pkg from ('start-of-week')</code></li>\n<li>Require: <code>const pkg = require('start-of-week').default</code></li>\n</ul>\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/start-of-week@^3.8.2'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^3.8.2'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@3.8.2'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/node.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-browsers/browser.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#11th_Edition_–_ECMAScript_2020\" title=\"ECMAScript ES2020\">ES2020</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-es2019/node.js</code></li>\n<li><code>start-of-week/edition-es2019/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 14 || 16 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-es2019-esm/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 12 || 14 || 16 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","gitHead":"762def177f50c7fbd09922c2103ee46963d2becf","_id":"start-of-week@3.8.2-next.1677638370.762def177f50c7fbd09922c2103ee46963d2becf","_nodeVersion":"14.21.3","_npmVersion":"6.14.18","dist":{"integrity":"sha512-pbXfXCWfXs8juT2K0fmaefe1087hk3411i0HVmSh1TLTqj0M+w7SYtT/R20eP9oC9GRf3vip781KEbRQ8oCVEA==","shasum":"2dd7fd6f7fb4a85564ce19235de63a6eaaf101f7","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-3.8.2-next.1677638370.762def177f50c7fbd09922c2103ee46963d2becf.tgz","fileCount":36,"unpackedSize":36940,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCBwnPX7llrmkxcICYuxqMm6LJDLxkE0TGwjjEOeq1IegIgfn6mmNNceXhVfD9ZPuz8YZViW28BJx/8ljFgMiKdv4E="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj/rrjACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpqwxAAhAiOYJOGUmyeY82LJiD4nF0x5JYWi4VqVvtnUMmynQuIc7RA\r\nE5V4gQyfzq45Tttj+kl7DLtFVXO6TP/wdm/93of/cRYjmeO89O50yg4rMRan\r\nDdVuHP2Y984Ka5QW/tYSyxR4/KS3vmTniHRUWE3IAwkjwVu82TSFzXFdVcd8\r\nKKz+Mkw862NuAvkgduVxfvdwNETAqlYiCrt2ZWON0/awf571VaTXPKlI5Z9B\r\nU1EL2XMpaMtjhYCnmuBY2LOJiwTbESueseLHR2GmhetScrjzATuIKlQf6FNO\r\nk7IuRhFn6cDFPR4/+KHK5wYcf70Xk+LrpDdZB+SDX4S+Fc58b5E+iya5FDxg\r\nq4FMldlORyMTSpWE26vwc3bBlpUCYcUZSyKXckDfomvzop4/RVctatSD2ADw\r\nKW18tBAHPEHB/jSmEmXyjnmDRYsZhycnlVOUSViGn/ogNFslpKESdaHEFfuz\r\no36fMfnzWYsf5eww5SNyHHIyqRV33yPOBTxveylGFOc7gJD9d5qdtiDSjkjT\r\n4nusomvjlJ3RTkO+gK0ngMVbQNpdqg+5qyVUiy/twZp5t3SxWtkkWvl2Vrws\r\n55VX6SUfcv8zoT4WuBW5sX9abpEYXo504+t1hjT9i+NxjO9jR/oY9JVP+d8a\r\nFymJfYArdcNvPp41e0xUEvfmpCAp7b9C078=\r\n=JCFs\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_3.8.2-next.1677638370.762def177f50c7fbd09922c2103ee46963d2becf_1677638371745_0.4442328270159339"},"_hasShrinkwrap":false},"3.9.0-next.1698928756.71381a768fb0ac69fcdc358a812ff67fddfc7157":{"name":"start-of-week","version":"3.9.0-next.1698928756.71381a768fb0ac69fcdc358a812ff67fddfc7157","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"Artistic-2.0","keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","es2022","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["githubworkflow","npmversion","npmdownloads","---","githubsponsors","thanksdev","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubWorkflow":"bevry","githubSponsorsUsername":"balupton","thanksdevGithubUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"node.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2022 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ES2022 for Node.js 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules","directory":"edition-es2022","entry":"node.js","tags":["compiled","javascript","es2022","require"],"engines":{"node":"10 || 12 || 14 || 16 || 18 || 20 || 21","browsers":false}},{"description":"TypeScript compiled against ES2022 for Node.js 12 || 14 || 16 || 18 || 20 || 21 with Import for modules","directory":"edition-es2022-esm","entry":"node.js","tags":["compiled","javascript","es2022","import"],"engines":{"node":"12 || 14 || 16 || 18 || 20 || 21","browsers":false}},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"./compiled-types/","type":"module","main":"edition-es2022/node.js","exports":{"node":{"import":"./edition-es2022-esm/node.js","require":"./edition-es2022/node.js"},"browser":{"import":"./edition-browsers/browser.js"}},"deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","devDependencies":{"@bevry/update-contributors":"^1.22.0","@types/node":"^20.8.10","@typescript-eslint/eslint-plugin":"^6.9.1","@typescript-eslint/parser":"^6.9.1","assert-helpers":"^8.4.0","eslint":"^8.52.0","eslint-config-bevry":"^3.28.0","eslint-config-prettier":"^9.0.0","eslint-plugin-prettier":"^5.0.1","kava":"^5.17.0","make-deno-edition":"^1.3.0","prettier":"^3.0.3","projectz":"^2.23.0","surge":"^0.23.1","typedoc":"^0.25.3","typescript":"5.2.2","valid-directory":"^4.0.0","valid-module":"^2.0.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2022 && npm run our:compile:edition-es2022-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2022 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2022":"tsc --module commonjs --target ES2022 --outDir ./edition-es2022 --project tsconfig.json && ( test ! -d edition-es2022/source || ( mv edition-es2022/source edition-temp && rm -Rf edition-es2022 && mv edition-temp edition-es2022 ) ) && printf '%s' '{\"type\": \"commonjs\"}' > edition-es2022/package.json","our:compile:edition-es2022-esm":"tsc --module ESNext --target ES2022 --outDir ./edition-es2022-esm --project tsconfig.json && ( test ! -d edition-es2022-esm/source || ( mv edition-es2022-esm/source edition-temp && rm -Rf edition-es2022-esm && mv edition-temp edition-es2022-esm ) ) && printf '%s' '{\"type\": \"module\"}' > edition-es2022-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"printf '%s\n' 'no need for this project'","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --exclude '**/+(*test*|node_modules)' --excludeExternals --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep \"v$npm_package_version\" || (printf '%s\n' \"add a changelog entry for v$npm_package_version\" && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (printf '%s\n' 'proper changelog entry not found' && exit -1) && git tag \"v$npm_package_version\" -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-es2022/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"_id":"start-of-week@3.9.0-next.1698928756.71381a768fb0ac69fcdc358a812ff67fddfc7157","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-githubworkflow\"><a href=\"https://github.com/bevry/start-of-week/actions?query=workflow%3Abevry\" title=\"View the status of this project's GitHub Workflow: bevry\"><img src=\"https://github.com/bevry/start-of-week/workflows/bevry/badge.svg\" alt=\"Status of the GitHub Workflow: bevry\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-thanksdev\"><a href=\"https://thanks.dev/u/gh/balupton\" title=\"Donate to this project using ThanksDev\"><img src=\"https://img.shields.io/badge/thanksdev-donate-yellow.svg\" alt=\"ThanksDev donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nTake a locale and return its start of the week (0 = Sunday, 1 = Monday)\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/)\n\n```javascript\nimport getSW from 'start-of-week'\nconsole.log(getSW()) // 0 (Sunday) if user is in North American, otherwise 1 (Monday)\nconsole.log(getSW('')) // 1\nconsole.log(getSW('en_AU')) // 1\nconsole.log(getSW('en_US')) // 0\nconsole.log(getSW('en_CA')) // 0\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Import: <code>import pkg from ('start-of-week')</code></li>\n<li>Require: <code>const pkg = require('start-of-week').default</code></li>\n</ul>\n\n<a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n``` typescript\nimport pkg from 'https://unpkg.com/start-of-week@^3.9.0/edition-deno/deno.ts'\n```\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/start-of-week@^3.9.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^3.9.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@3.9.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week/source/node.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-browsers/browser.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against ES2022 for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week</code> aliases <code>start-of-week/edition-es2022/node.js</code></li>\n<li><code>start-of-week/edition-es2022/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against ES2022 for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 14 || 16 || 18 || 20 || 21 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-es2022-esm/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against ES2022 for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 12 || 14 || 16 || 18 || 20 || 21 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-deno/deno.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code made to be compatible with <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative to Node.js\">Deno</a></li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-thanksdev\"><a href=\"https://thanks.dev/u/gh/balupton\" title=\"Donate to this project using ThanksDev\"><img src=\"https://img.shields.io/badge/thanksdev-donate-yellow.svg\" alt=\"ThanksDev donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/Artistic-2.0.html\">Artistic License 2.0</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","gitHead":"71381a768fb0ac69fcdc358a812ff67fddfc7157","_nodeVersion":"20.9.0","_npmVersion":"10.1.0","dist":{"integrity":"sha512-sIztZVIWsITw6M/MRNCb/0knZfcQrY1Ekxdiirt5mtJ11kKnrC1epVRsl8alLSytyZ+lH3d5KEgglr7/3KI2cw==","shasum":"d0059ef27650a6230ba394c8e5f6921c474fb029","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-3.9.0-next.1698928756.71381a768fb0ac69fcdc358a812ff67fddfc7157.tgz","fileCount":35,"unpackedSize":39241,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFtlesNCTK5dVyLm7SoNVdUr5aVLRtz3+Weym7g3RuZ4AiEA00+zZwS0YLno33aqff+2bcLxgtPNhuuZTnW7zTJarcA="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_3.9.0-next.1698928756.71381a768fb0ac69fcdc358a812ff67fddfc7157_1698928758251_0.3989982730892052"},"_hasShrinkwrap":false},"3.9.0":{"name":"start-of-week","version":"3.9.0","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"Artistic-2.0","keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","es2022","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["githubworkflow","npmversion","npmdownloads","---","githubsponsors","thanksdev","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubWorkflow":"bevry","githubSponsorsUsername":"balupton","thanksdevGithubUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"node.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2022 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ES2022 for Node.js 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules","directory":"edition-es2022","entry":"node.js","tags":["compiled","javascript","es2022","require"],"engines":{"node":"10 || 12 || 14 || 16 || 18 || 20 || 21","browsers":false}},{"description":"TypeScript compiled against ES2022 for Node.js 12 || 14 || 16 || 18 || 20 || 21 with Import for modules","directory":"edition-es2022-esm","entry":"node.js","tags":["compiled","javascript","es2022","import"],"engines":{"node":"12 || 14 || 16 || 18 || 20 || 21","browsers":false}},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"./compiled-types/","type":"module","main":"edition-es2022/node.js","exports":{"node":{"import":"./edition-es2022-esm/node.js","require":"./edition-es2022/node.js"},"browser":{"import":"./edition-browsers/browser.js"}},"deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","devDependencies":{"@bevry/update-contributors":"^1.22.0","@types/node":"^20.8.10","@typescript-eslint/eslint-plugin":"^6.9.1","@typescript-eslint/parser":"^6.9.1","assert-helpers":"^8.4.0","eslint":"^8.52.0","eslint-config-bevry":"^3.28.0","eslint-config-prettier":"^9.0.0","eslint-plugin-prettier":"^5.0.1","kava":"^5.17.0","make-deno-edition":"^1.3.0","prettier":"^3.0.3","projectz":"^2.23.0","surge":"^0.23.1","typedoc":"^0.25.3","typescript":"5.2.2","valid-directory":"^4.0.0","valid-module":"^2.0.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2022 && npm run our:compile:edition-es2022-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2022 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2022":"tsc --module commonjs --target ES2022 --outDir ./edition-es2022 --project tsconfig.json && ( test ! -d edition-es2022/source || ( mv edition-es2022/source edition-temp && rm -Rf edition-es2022 && mv edition-temp edition-es2022 ) ) && printf '%s' '{\"type\": \"commonjs\"}' > edition-es2022/package.json","our:compile:edition-es2022-esm":"tsc --module ESNext --target ES2022 --outDir ./edition-es2022-esm --project tsconfig.json && ( test ! -d edition-es2022-esm/source || ( mv edition-es2022-esm/source edition-temp && rm -Rf edition-es2022-esm && mv edition-temp edition-es2022-esm ) ) && printf '%s' '{\"type\": \"module\"}' > edition-es2022-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"printf '%s\n' 'no need for this project'","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --exclude '**/+(*test*|node_modules)' --excludeExternals --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep \"v$npm_package_version\" || (printf '%s\n' \"add a changelog entry for v$npm_package_version\" && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (printf '%s\n' 'proper changelog entry not found' && exit -1) && git tag \"v$npm_package_version\" -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-es2022/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"dom":true},"_id":"start-of-week@3.9.0","gitHead":"71381a768fb0ac69fcdc358a812ff67fddfc7157","_nodeVersion":"20.9.0","_npmVersion":"10.1.0","dist":{"integrity":"sha512-hy1hkF249hDPl6mbfuiBicl5bhqK69ZWyQN9O95QIMzeG3wPThv5oKllkQPegcubGGDdS09x6ODKkl4aR37y6Q==","shasum":"8a488cd549a5372247d34a2df1f9b1d7270335d9","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-3.9.0.tgz","fileCount":35,"unpackedSize":39183,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDaO0iTaXn+rcw1hegJP9tc9tPw5+wwpiBqn9Je5IOXxAiEA+5BvIiVytC9i6/bB7eTzMv0P1mZGooerXE+rV4SXC3k="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_3.9.0_1698928838657_0.19693934251490353"},"_hasShrinkwrap":false},"4.0.0-next.1699896585.caebfd2d4fe88fc034ff5378af2dab1e25c7561c":{"name":"start-of-week","version":"4.0.0-next.1699896585.caebfd2d4fe88fc034ff5378af2dab1e25c7561c","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"Artistic-2.0","keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","es2022","es5","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["githubworkflow","npmversion","npmdownloads","---","githubsponsors","thanksdev","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubWorkflow":"bevry","githubSponsorsUsername":"balupton","thanksdevGithubUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=4"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"node.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2022 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ES2022 for Node.js 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules","directory":"edition-es2022","entry":"node.js","tags":["compiled","javascript","es2022","require"],"engines":{"node":"6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21","browsers":false}},{"description":"TypeScript compiled against ES5 for Node.js 4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules","directory":"edition-es5","entry":"node.js","tags":["compiled","javascript","es5","require"],"engines":{"node":"4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21","browsers":false}},{"description":"TypeScript compiled against ES2022 for Node.js 12 || 14 || 16 || 18 || 20 || 21 with Import for modules","directory":"edition-es2022-esm","entry":"node.js","tags":["compiled","javascript","es2022","import"],"engines":{"node":"12 || 14 || 16 || 18 || 20 || 21","browsers":false}},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"./compiled-types/","type":"module","main":"index.cjs","exports":{"node":{"import":"./edition-es2022-esm/node.js","default":"./index.cjs","require":"./edition-es2022/node.js"},"browser":{"import":"./edition-browsers/browser.js"}},"deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","dependencies":{"editions":"^6.11.0"},"devDependencies":{"@bevry/update-contributors":"^1.23.0","@types/node":"^20.9.0","@typescript-eslint/eslint-plugin":"^6.11.0","@typescript-eslint/parser":"^6.11.0","assert-helpers":"^11.2.0","eslint":"^8.53.0","eslint-config-bevry":"^3.29.0","eslint-config-prettier":"^9.0.0","eslint-plugin-prettier":"^5.0.1","kava":"^7.1.0","make-deno-edition":"^1.3.0","prettier":"^3.1.0","projectz":"^2.23.0","surge":"^0.23.1","typedoc":"^0.25.3","typescript":"5.2.2","valid-directory":"^4.1.0","valid-module":"^2.1.0"},"scripts":{"our:clean":"rm -rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2022 && npm run our:compile:edition-es2022-esm && npm run our:compile:edition-es5 && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2022 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2022":"tsc --module commonjs --target ES2022 --outDir ./edition-es2022 --project tsconfig.json && ( test ! -d edition-es2022/source || ( mv edition-es2022/source edition-temp && rm -rf edition-es2022 && mv edition-temp edition-es2022 ) ) && printf '%s' '{\"type\": \"commonjs\"}' > edition-es2022/package.json","our:compile:edition-es2022-esm":"tsc --module ESNext --target ES2022 --outDir ./edition-es2022-esm --project tsconfig.json && ( test ! -d edition-es2022-esm/source || ( mv edition-es2022-esm/source edition-temp && rm -rf edition-es2022-esm && mv edition-temp edition-es2022-esm ) ) && printf '%s' '{\"type\": \"module\"}' > edition-es2022-esm/package.json","our:compile:edition-es5":"tsc --module commonjs --target ES5 --outDir ./edition-es5 --project tsconfig.json && ( test ! -d edition-es5/source || ( mv edition-es5/source edition-temp && rm -rf edition-es5 && mv edition-temp edition-es5 ) ) && printf '%s' '{\"type\": \"commonjs\"}' > edition-es5/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"printf '%s\n' 'no need for this project'","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -rf ./docs && typedoc --exclude '**/+(*test*|node_modules)' --excludeExternals --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep \"v$npm_package_version\" || (printf '%s\n' \"add a changelog entry for v$npm_package_version\" && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (printf '%s\n' 'proper changelog entry not found' && exit -1) && git tag \"v$npm_package_version\" -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./test.cjs"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true,"trailingComma":"es5"},"boundation":{"dom":true},"_id":"start-of-week@4.0.0-next.1699896585.caebfd2d4fe88fc034ff5378af2dab1e25c7561c","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-githubworkflow\"><a href=\"https://github.com/bevry/start-of-week/actions?query=workflow%3Abevry\" title=\"View the status of this project's GitHub Workflow: bevry\"><img src=\"https://github.com/bevry/start-of-week/workflows/bevry/badge.svg\" alt=\"Status of the GitHub Workflow: bevry\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-thanksdev\"><a href=\"https://thanks.dev/u/gh/balupton\" title=\"Donate to this project using ThanksDev\"><img src=\"https://img.shields.io/badge/thanksdev-donate-yellow.svg\" alt=\"ThanksDev donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nTake a locale and return its start of the week (0 = Sunday, 1 = Monday)\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/)\n\n```javascript\nimport getSW from 'start-of-week'\nconsole.log(getSW()) // 0 (Sunday) if user is in North American, otherwise 1 (Monday)\nconsole.log(getSW('')) // 1\nconsole.log(getSW('en_AU')) // 1\nconsole.log(getSW('en_US')) // 0\nconsole.log(getSW('en_CA')) // 0\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Import: <code>import pkg from ('start-of-week')</code></li>\n<li>Require: <code>const pkg = require('start-of-week').default</code></li>\n</ul>\n\n<a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n``` typescript\nimport pkg from 'https://unpkg.com/start-of-week@^4.0.0/edition-deno/deno.ts'\n```\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/start-of-week@^4.0.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^4.0.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@4.0.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week</code> aliases <code>start-of-week/index.cjs</code> which uses the <a href=\"https://github.com/bevry/editions\" title=\"You can use the Editions Autoloader to autoload the appropriate edition for your consumers environment\">Editions Autoloader</a> to automatically select the correct edition for the consumer's environment</li>\n<li><code>start-of-week/source/node.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-browsers/browser.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against ES2022 for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-es2022/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against ES2022 for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-es5/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against ES5 for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-es2022-esm/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against ES2022 for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 12 || 14 || 16 || 18 || 20 || 21 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-deno/deno.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code made to be compatible with <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative to Node.js\">Deno</a></li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-thanksdev\"><a href=\"https://thanks.dev/u/gh/balupton\" title=\"Donate to this project using ThanksDev\"><img src=\"https://img.shields.io/badge/thanksdev-donate-yellow.svg\" alt=\"ThanksDev donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/Artistic-2.0.html\">Artistic License 2.0</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","gitHead":"caebfd2d4fe88fc034ff5378af2dab1e25c7561c","_nodeVersion":"20.9.0","_npmVersion":"10.1.0","dist":{"integrity":"sha512-c39W1eLlimxu48BeciIN75uizTGs7idrraQQVr3tO9pCJwiC55M+ZcHDSfEdjqFimd9Fy+gr3Hl1N3RFQFoDyg==","shasum":"a951b8b80a31b922396c5f90b6f7a50a88de9962","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-4.0.0-next.1699896585.caebfd2d4fe88fc034ff5378af2dab1e25c7561c.tgz","fileCount":42,"unpackedSize":44069,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC6BH2/jX/Q5YRkWvpiQ9pOeGVBFpE9d6nDK2ZpOLER3AIgZV9bHwjCY3AvnipOMWlsYTkbt2WDhdblROy+2KAcGTc="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_4.0.0-next.1699896585.caebfd2d4fe88fc034ff5378af2dab1e25c7561c_1699896591604_0.1877122220116354"},"_hasShrinkwrap":false},"4.0.0":{"name":"start-of-week","version":"4.0.0","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"Artistic-2.0","keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","es2022","es5","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["githubworkflow","npmversion","npmdownloads","---","githubsponsors","thanksdev","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubWorkflow":"bevry","githubSponsorsUsername":"balupton","thanksdevGithubUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=4"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"node.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2022 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ES2022 for Node.js 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules","directory":"edition-es2022","entry":"node.js","tags":["compiled","javascript","es2022","require"],"engines":{"node":"6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21","browsers":false}},{"description":"TypeScript compiled against ES5 for Node.js 4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules","directory":"edition-es5","entry":"node.js","tags":["compiled","javascript","es5","require"],"engines":{"node":"4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21","browsers":false}},{"description":"TypeScript compiled against ES2022 for Node.js 12 || 14 || 16 || 18 || 20 || 21 with Import for modules","directory":"edition-es2022-esm","entry":"node.js","tags":["compiled","javascript","es2022","import"],"engines":{"node":"12 || 14 || 16 || 18 || 20 || 21","browsers":false}},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"./compiled-types/","type":"module","main":"index.cjs","exports":{"node":{"import":"./edition-es2022-esm/node.js","default":"./index.cjs","require":"./edition-es2022/node.js"},"browser":{"import":"./edition-browsers/browser.js"}},"deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","dependencies":{"editions":"^6.11.0"},"devDependencies":{"@bevry/update-contributors":"^1.23.0","@types/node":"^20.9.0","@typescript-eslint/eslint-plugin":"^6.11.0","@typescript-eslint/parser":"^6.11.0","assert-helpers":"^11.2.0","eslint":"^8.53.0","eslint-config-bevry":"^3.29.0","eslint-config-prettier":"^9.0.0","eslint-plugin-prettier":"^5.0.1","kava":"^7.1.0","make-deno-edition":"^1.3.0","prettier":"^3.1.0","projectz":"^2.23.0","surge":"^0.23.1","typedoc":"^0.25.3","typescript":"5.2.2","valid-directory":"^4.1.0","valid-module":"^2.1.0"},"scripts":{"our:clean":"rm -rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2022 && npm run our:compile:edition-es2022-esm && npm run our:compile:edition-es5 && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2022 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2022":"tsc --module commonjs --target ES2022 --outDir ./edition-es2022 --project tsconfig.json && ( test ! -d edition-es2022/source || ( mv edition-es2022/source edition-temp && rm -rf edition-es2022 && mv edition-temp edition-es2022 ) ) && printf '%s' '{\"type\": \"commonjs\"}' > edition-es2022/package.json","our:compile:edition-es2022-esm":"tsc --module ESNext --target ES2022 --outDir ./edition-es2022-esm --project tsconfig.json && ( test ! -d edition-es2022-esm/source || ( mv edition-es2022-esm/source edition-temp && rm -rf edition-es2022-esm && mv edition-temp edition-es2022-esm ) ) && printf '%s' '{\"type\": \"module\"}' > edition-es2022-esm/package.json","our:compile:edition-es5":"tsc --module commonjs --target ES5 --outDir ./edition-es5 --project tsconfig.json && ( test ! -d edition-es5/source || ( mv edition-es5/source edition-temp && rm -rf edition-es5 && mv edition-temp edition-es5 ) ) && printf '%s' '{\"type\": \"commonjs\"}' > edition-es5/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"printf '%s\n' 'no need for this project'","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -rf ./docs && typedoc --exclude '**/+(*test*|node_modules)' --excludeExternals --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep \"v$npm_package_version\" || (printf '%s\n' \"add a changelog entry for v$npm_package_version\" && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (printf '%s\n' 'proper changelog entry not found' && exit -1) && git tag \"v$npm_package_version\" -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./test.cjs"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true,"trailingComma":"es5"},"boundation":{"dom":true},"_id":"start-of-week@4.0.0","gitHead":"caebfd2d4fe88fc034ff5378af2dab1e25c7561c","_nodeVersion":"20.9.0","_npmVersion":"10.1.0","dist":{"integrity":"sha512-SldlnXdmbhq1vk04n0BXW28ZH1805KDiYdphYyg9J4kdDo8xjyh4N5yW/bQDT/+HW/ZXX6fp1samHa9EnHcXXQ==","shasum":"fc6c5bc0c0e0917bd037fb22098c5a42385dea78","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-4.0.0.tgz","fileCount":42,"unpackedSize":44011,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC1C0eN1bWZ7/y332YAZxlvwoAO1abpHC/FudYVmWi77QIhANfcBRSd59mEBoqpShwLUYSGm2MmOvFeLxoViG9XxpiP"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_4.0.0_1699896600728_0.8889330991304409"},"_hasShrinkwrap":false},"4.1.0-next.1699958729.7b0c45404c1b9b39f2c3b129656b69ccb06bcad6":{"name":"start-of-week","version":"4.1.0-next.1699958729.7b0c45404c1b9b39f2c3b129656b69ccb06bcad6","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"Artistic-2.0","keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","es2022","es5","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["githubworkflow","npmversion","npmdownloads","---","githubsponsors","thanksdev","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubWorkflow":"bevry","githubSponsorsUsername":"balupton","thanksdevGithubUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=4"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2022 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ES2022 for Node.js 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules","directory":"edition-es2022","entry":"node.js","tags":["compiled","javascript","es2022","require"],"engines":{"node":"6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21","browsers":false}},{"description":"TypeScript compiled against ES5 for Node.js 4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules","directory":"edition-es5","entry":"node.js","tags":["compiled","javascript","es5","require"],"engines":{"node":"4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21","browsers":false}},{"description":"TypeScript compiled against ES2022 for Node.js 12 || 14 || 16 || 18 || 20 || 21 with Import for modules","directory":"edition-es2022-esm","entry":"node.js","tags":["compiled","javascript","es2022","import"],"engines":{"node":"12 || 14 || 16 || 18 || 20 || 21","browsers":false}},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"./compiled-types/","type":"module","main":"index.cjs","exports":{"node":{"import":"./edition-es2022-esm/index.js","default":"./index.cjs","require":"./edition-es2022/index.js"},"browser":{"import":"./edition-browsers/browser.js"}},"deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","dependencies":{"editions":"^6.11.0"},"devDependencies":{"@bevry/update-contributors":"^1.23.0","@types/node":"^20.9.0","@typescript-eslint/eslint-plugin":"^6.11.0","@typescript-eslint/parser":"^6.11.0","assert-helpers":"^11.2.0","eslint":"^8.53.0","eslint-config-bevry":"^4.0.0","eslint-config-prettier":"^9.0.0","eslint-plugin-prettier":"^5.0.1","kava":"^7.1.0","make-deno-edition":"^1.3.0","prettier":"^3.1.0","projectz":"^3.0.0","surge":"^0.23.1","typedoc":"^0.25.3","typescript":"5.2.2","valid-directory":"^4.1.0","valid-module":"^2.1.0"},"scripts":{"our:clean":"rm -rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2022 && npm run our:compile:edition-es2022-esm && npm run our:compile:edition-es5 && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2022 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2022":"tsc --module commonjs --target ES2022 --outDir ./edition-es2022 --project tsconfig.json && ( test ! -d edition-es2022/source || ( mv edition-es2022/source edition-temp && rm -rf edition-es2022 && mv edition-temp edition-es2022 ) ) && printf '%s' '{\"type\": \"commonjs\"}' > edition-es2022/package.json","our:compile:edition-es2022-esm":"tsc --module ESNext --target ES2022 --outDir ./edition-es2022-esm --project tsconfig.json && ( test ! -d edition-es2022-esm/source || ( mv edition-es2022-esm/source edition-temp && rm -rf edition-es2022-esm && mv edition-temp edition-es2022-esm ) ) && printf '%s' '{\"type\": \"module\"}' > edition-es2022-esm/package.json","our:compile:edition-es5":"tsc --module commonjs --target ES5 --outDir ./edition-es5 --project tsconfig.json && ( test ! -d edition-es5/source || ( mv edition-es5/source edition-temp && rm -rf edition-es5 && mv edition-temp edition-es5 ) ) && printf '%s' '{\"type\": \"commonjs\"}' > edition-es5/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"printf '%s\n' 'no need for this project'","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -rf ./docs && typedoc --exclude '**/+(*test*|node_modules)' --excludeExternals --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep \"v$npm_package_version\" || (printf '%s\n' \"add a changelog entry for v$npm_package_version\" && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (printf '%s\n' 'proper changelog entry not found' && exit -1) && git tag \"v$npm_package_version\" -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./test.cjs"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true,"trailingComma":"es5"},"boundation":{"dom":true},"_id":"start-of-week@4.1.0-next.1699958729.7b0c45404c1b9b39f2c3b129656b69ccb06bcad6","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-githubworkflow\"><a href=\"https://github.com/bevry/start-of-week/actions?query=workflow%3Abevry\" title=\"View the status of this project's GitHub Workflow: bevry\"><img src=\"https://github.com/bevry/start-of-week/workflows/bevry/badge.svg\" alt=\"Status of the GitHub Workflow: bevry\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-thanksdev\"><a href=\"https://thanks.dev/u/gh/balupton\" title=\"Donate to this project using ThanksDev\"><img src=\"https://img.shields.io/badge/thanksdev-donate-yellow.svg\" alt=\"ThanksDev donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nTake a locale and return its start of the week (0 = Sunday, 1 = Monday)\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/)\n\n```javascript\nimport getSW from 'start-of-week'\nconsole.log(getSW()) // 0 (Sunday) if user is in North American, otherwise 1 (Monday)\nconsole.log(getSW('')) // 1\nconsole.log(getSW('en_AU')) // 1\nconsole.log(getSW('en_US')) // 0\nconsole.log(getSW('en_CA')) // 0\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Import: <code>import pkg from ('start-of-week')</code></li>\n<li>Require: <code>const pkg = require('start-of-week').default</code></li>\n</ul>\n\n<a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n``` typescript\nimport pkg from 'https://unpkg.com/start-of-week@^4.1.0/edition-deno/deno.ts'\n```\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/start-of-week@^4.1.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^4.1.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@4.1.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week</code> aliases <code>start-of-week/index.cjs</code> which uses the <a href=\"https://github.com/bevry/editions\" title=\"You can use the Editions Autoloader to autoload the appropriate edition for your consumers environment\">Editions Autoloader</a> to automatically select the correct edition for the consumer's environment</li>\n<li><code>start-of-week/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-browsers/browser.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against ES2022 for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-es2022/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against ES2022 for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-es5/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against ES5 for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-es2022-esm/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against ES2022 for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 12 || 14 || 16 || 18 || 20 || 21 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-deno/deno.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code made to be compatible with <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative to Node.js\">Deno</a></li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-thanksdev\"><a href=\"https://thanks.dev/u/gh/balupton\" title=\"Donate to this project using ThanksDev\"><img src=\"https://img.shields.io/badge/thanksdev-donate-yellow.svg\" alt=\"ThanksDev donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/Artistic-2.0.html\">Artistic License 2.0</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","gitHead":"7b0c45404c1b9b39f2c3b129656b69ccb06bcad6","_nodeVersion":"20.9.0","_npmVersion":"10.1.0","dist":{"integrity":"sha512-RDrKVf2F0b6ZFO/GPel7P7TWlpvARzmlHI5hH0ywHjGw39EoL9UhrzUR1q9UrBPLPm8fDJ7+bkyFbmM3Bd925w==","shasum":"4e39077f3af998b73e9d4728a41076f90b93e093","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-4.1.0-next.1699958729.7b0c45404c1b9b39f2c3b129656b69ccb06bcad6.tgz","fileCount":42,"unpackedSize":45315,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCDyn/q3do3dkGbkEYbzF1dqB8pG9ltCeEPIAhPuIf4/QIhALGA0oSOeXV49GkoVif2qywVAoAmVs1x4ALCGLFhbVPc"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_4.1.0-next.1699958729.7b0c45404c1b9b39f2c3b129656b69ccb06bcad6_1699958730748_0.19689929765070358"},"_hasShrinkwrap":false},"4.1.0":{"name":"start-of-week","version":"4.1.0","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"Artistic-2.0","keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","es2022","es5","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["githubworkflow","npmversion","npmdownloads","---","githubsponsors","thanksdev","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubWorkflow":"bevry","githubSponsorsUsername":"balupton","thanksdevGithubUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=4"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2022 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ES2022 for Node.js 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules","directory":"edition-es2022","entry":"node.js","tags":["compiled","javascript","es2022","require"],"engines":{"node":"6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21","browsers":false}},{"description":"TypeScript compiled against ES5 for Node.js 4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules","directory":"edition-es5","entry":"node.js","tags":["compiled","javascript","es5","require"],"engines":{"node":"4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21","browsers":false}},{"description":"TypeScript compiled against ES2022 for Node.js 12 || 14 || 16 || 18 || 20 || 21 with Import for modules","directory":"edition-es2022-esm","entry":"node.js","tags":["compiled","javascript","es2022","import"],"engines":{"node":"12 || 14 || 16 || 18 || 20 || 21","browsers":false}},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"./compiled-types/","type":"module","main":"index.cjs","exports":{"node":{"import":"./edition-es2022-esm/index.js","default":"./index.cjs","require":"./edition-es2022/index.js"},"browser":{"import":"./edition-browsers/browser.js"}},"deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","dependencies":{"editions":"^6.11.0"},"devDependencies":{"@bevry/update-contributors":"^1.23.0","@types/node":"^20.9.0","@typescript-eslint/eslint-plugin":"^6.11.0","@typescript-eslint/parser":"^6.11.0","assert-helpers":"^11.2.0","eslint":"^8.53.0","eslint-config-bevry":"^4.0.0","eslint-config-prettier":"^9.0.0","eslint-plugin-prettier":"^5.0.1","kava":"^7.1.0","make-deno-edition":"^1.3.0","prettier":"^3.1.0","projectz":"^3.0.0","surge":"^0.23.1","typedoc":"^0.25.3","typescript":"5.2.2","valid-directory":"^4.1.0","valid-module":"^2.1.0"},"scripts":{"our:clean":"rm -rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2022 && npm run our:compile:edition-es2022-esm && npm run our:compile:edition-es5 && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2022 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2022":"tsc --module commonjs --target ES2022 --outDir ./edition-es2022 --project tsconfig.json && ( test ! -d edition-es2022/source || ( mv edition-es2022/source edition-temp && rm -rf edition-es2022 && mv edition-temp edition-es2022 ) ) && printf '%s' '{\"type\": \"commonjs\"}' > edition-es2022/package.json","our:compile:edition-es2022-esm":"tsc --module ESNext --target ES2022 --outDir ./edition-es2022-esm --project tsconfig.json && ( test ! -d edition-es2022-esm/source || ( mv edition-es2022-esm/source edition-temp && rm -rf edition-es2022-esm && mv edition-temp edition-es2022-esm ) ) && printf '%s' '{\"type\": \"module\"}' > edition-es2022-esm/package.json","our:compile:edition-es5":"tsc --module commonjs --target ES5 --outDir ./edition-es5 --project tsconfig.json && ( test ! -d edition-es5/source || ( mv edition-es5/source edition-temp && rm -rf edition-es5 && mv edition-temp edition-es5 ) ) && printf '%s' '{\"type\": \"commonjs\"}' > edition-es5/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"printf '%s\n' 'no need for this project'","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -rf ./docs && typedoc --exclude '**/+(*test*|node_modules)' --excludeExternals --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep \"v$npm_package_version\" || (printf '%s\n' \"add a changelog entry for v$npm_package_version\" && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (printf '%s\n' 'proper changelog entry not found' && exit -1) && git tag \"v$npm_package_version\" -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./test.cjs"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true,"trailingComma":"es5"},"boundation":{"dom":true},"_id":"start-of-week@4.1.0","gitHead":"7b0c45404c1b9b39f2c3b129656b69ccb06bcad6","_nodeVersion":"20.9.0","_npmVersion":"10.1.0","dist":{"integrity":"sha512-pE3YYv5hbY9vnYd0xS/em1rmK9VRzYRieXBmWOSuZhBXEk1UZDnsM497RDA5ZCYerG7QufwgVY72CSJN9+Fd2A==","shasum":"0a023f0dafd13e5438073fb255c5229447724a00","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-4.1.0.tgz","fileCount":42,"unpackedSize":45257,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCRKvCAFsJaPsKk3/RpCjBImQy+SP2+oDMjuZgDjvbroAIgb9TyuOzKXEnYIMZS9LDROquU0HxUpWy3YHsz0Yp2+Bw="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_4.1.0_1699958749568_0.5467884583148424"},"_hasShrinkwrap":false},"4.2.0":{"name":"start-of-week","version":"4.2.0","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"Artistic-2.0","keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","es2022","es5","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["githubworkflow","npmversion","npmdownloads","---","githubsponsors","thanksdev","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubWorkflow":"bevry","githubSponsorsUsername":"balupton","thanksdevGithubUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=4"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2022 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ES2022 for Node.js 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules","directory":"edition-es2022","entry":"node.js","tags":["compiled","javascript","es2022","require"],"engines":{"node":"6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21","browsers":false}},{"description":"TypeScript compiled against ES5 for Node.js 4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules","directory":"edition-es5","entry":"node.js","tags":["compiled","javascript","es5","require"],"engines":{"node":"4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21","browsers":false}},{"description":"TypeScript compiled against ES2022 for Node.js 12 || 14 || 16 || 18 || 20 || 21 with Import for modules","directory":"edition-es2022-esm","entry":"node.js","tags":["compiled","javascript","es2022","import"],"engines":{"node":"12 || 14 || 16 || 18 || 20 || 21","browsers":false}},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"./compiled-types/","type":"module","main":"index.cjs","exports":{"node":{"import":"./edition-es2022-esm/index.js","default":"./index.cjs","require":"./edition-es2022/index.js"},"browser":{"import":"./edition-browsers/browser.js"}},"deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","dependencies":{"editions":"^6.13.0"},"devDependencies":{"@bevry/update-contributors":"^1.23.0","@types/node":"^20.9.0","@typescript-eslint/eslint-plugin":"^6.11.0","@typescript-eslint/parser":"^6.11.0","assert-helpers":"^11.4.0","eslint":"^8.53.0","eslint-config-bevry":"^4.0.0","eslint-config-prettier":"^9.0.0","eslint-plugin-prettier":"^5.0.1","kava":"^7.2.0","make-deno-edition":"^1.3.0","prettier":"^3.1.0","projectz":"^3.1.0","surge":"^0.23.1","typedoc":"^0.25.3","typescript":"5.2.2","valid-directory":"^4.2.0","valid-module":"^2.2.0"},"scripts":{"our:clean":"rm -rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2022 && npm run our:compile:edition-es2022-esm && npm run our:compile:edition-es5 && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2022 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2022":"tsc --module commonjs --target ES2022 --outDir ./edition-es2022 --project tsconfig.json && ( test ! -d edition-es2022/source || ( mv edition-es2022/source edition-temp && rm -rf edition-es2022 && mv edition-temp edition-es2022 ) ) && printf '%s' '{\"type\": \"commonjs\"}' > edition-es2022/package.json","our:compile:edition-es2022-esm":"tsc --module ESNext --target ES2022 --outDir ./edition-es2022-esm --project tsconfig.json && ( test ! -d edition-es2022-esm/source || ( mv edition-es2022-esm/source edition-temp && rm -rf edition-es2022-esm && mv edition-temp edition-es2022-esm ) ) && printf '%s' '{\"type\": \"module\"}' > edition-es2022-esm/package.json","our:compile:edition-es5":"tsc --module commonjs --target ES5 --outDir ./edition-es5 --project tsconfig.json && ( test ! -d edition-es5/source || ( mv edition-es5/source edition-temp && rm -rf edition-es5 && mv edition-temp edition-es5 ) ) && printf '%s' '{\"type\": \"commonjs\"}' > edition-es5/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"printf '%s\n' 'no need for this project'","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -rf ./docs && typedoc --exclude '**/+(*test*|node_modules)' --excludeExternals --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep \"v$npm_package_version\" || (printf '%s\n' \"add a changelog entry for v$npm_package_version\" && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (printf '%s\n' 'proper changelog entry not found' && exit -1) && git tag \"v$npm_package_version\" -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./test.cjs"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true,"trailingComma":"es5"},"boundation":{"dom":true},"_id":"start-of-week@4.2.0","gitHead":"79c9f3470b864d159f0ac15a0f818bbb8e10b5d6","_nodeVersion":"20.9.0","_npmVersion":"10.1.0","dist":{"integrity":"sha512-wJbcrdnho8S1B5yUXP9RFQTW5bDNa+nd81nrmGEaDt8yAK1N2F3vS3lJCtpsEmSHN1EYvYtdy23+OY+D70c5Pw==","shasum":"7d3b298a50e4aa2e98cc74440b0876151c0bb674","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-4.2.0.tgz","fileCount":42,"unpackedSize":45250,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIESs77xPTIVvbCIfMtF6oUqdvSSWWXvNNkDxuWMdYTR6AiEA1ryPdGIWGEVxDFnxgQHlE1AAw4p2GpWtOyQ6UBR3+0E="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_4.2.0_1700034048962_0.2577207819176941"},"_hasShrinkwrap":false},"4.2.0-next.1700034067.79c9f3470b864d159f0ac15a0f818bbb8e10b5d6":{"name":"start-of-week","version":"4.2.0-next.1700034067.79c9f3470b864d159f0ac15a0f818bbb8e10b5d6","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"Artistic-2.0","keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","es2022","es5","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["githubworkflow","npmversion","npmdownloads","---","githubsponsors","thanksdev","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubWorkflow":"bevry","githubSponsorsUsername":"balupton","thanksdevGithubUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=4"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2022 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ES2022 for Node.js 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules","directory":"edition-es2022","entry":"node.js","tags":["compiled","javascript","es2022","require"],"engines":{"node":"6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21","browsers":false}},{"description":"TypeScript compiled against ES5 for Node.js 4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules","directory":"edition-es5","entry":"node.js","tags":["compiled","javascript","es5","require"],"engines":{"node":"4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21","browsers":false}},{"description":"TypeScript compiled against ES2022 for Node.js 12 || 14 || 16 || 18 || 20 || 21 with Import for modules","directory":"edition-es2022-esm","entry":"node.js","tags":["compiled","javascript","es2022","import"],"engines":{"node":"12 || 14 || 16 || 18 || 20 || 21","browsers":false}},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"./compiled-types/","type":"module","main":"index.cjs","exports":{"node":{"import":"./edition-es2022-esm/index.js","default":"./index.cjs","require":"./edition-es2022/index.js"},"browser":{"import":"./edition-browsers/browser.js"}},"deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","dependencies":{"editions":"^6.13.0"},"devDependencies":{"@bevry/update-contributors":"^1.23.0","@types/node":"^20.9.0","@typescript-eslint/eslint-plugin":"^6.11.0","@typescript-eslint/parser":"^6.11.0","assert-helpers":"^11.4.0","eslint":"^8.53.0","eslint-config-bevry":"^4.0.0","eslint-config-prettier":"^9.0.0","eslint-plugin-prettier":"^5.0.1","kava":"^7.2.0","make-deno-edition":"^1.3.0","prettier":"^3.1.0","projectz":"^3.1.0","surge":"^0.23.1","typedoc":"^0.25.3","typescript":"5.2.2","valid-directory":"^4.2.0","valid-module":"^2.2.0"},"scripts":{"our:clean":"rm -rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2022 && npm run our:compile:edition-es2022-esm && npm run our:compile:edition-es5 && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2022 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2022":"tsc --module commonjs --target ES2022 --outDir ./edition-es2022 --project tsconfig.json && ( test ! -d edition-es2022/source || ( mv edition-es2022/source edition-temp && rm -rf edition-es2022 && mv edition-temp edition-es2022 ) ) && printf '%s' '{\"type\": \"commonjs\"}' > edition-es2022/package.json","our:compile:edition-es2022-esm":"tsc --module ESNext --target ES2022 --outDir ./edition-es2022-esm --project tsconfig.json && ( test ! -d edition-es2022-esm/source || ( mv edition-es2022-esm/source edition-temp && rm -rf edition-es2022-esm && mv edition-temp edition-es2022-esm ) ) && printf '%s' '{\"type\": \"module\"}' > edition-es2022-esm/package.json","our:compile:edition-es5":"tsc --module commonjs --target ES5 --outDir ./edition-es5 --project tsconfig.json && ( test ! -d edition-es5/source || ( mv edition-es5/source edition-temp && rm -rf edition-es5 && mv edition-temp edition-es5 ) ) && printf '%s' '{\"type\": \"commonjs\"}' > edition-es5/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"printf '%s\n' 'no need for this project'","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -rf ./docs && typedoc --exclude '**/+(*test*|node_modules)' --excludeExternals --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep \"v$npm_package_version\" || (printf '%s\n' \"add a changelog entry for v$npm_package_version\" && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (printf '%s\n' 'proper changelog entry not found' && exit -1) && git tag \"v$npm_package_version\" -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./test.cjs"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true,"trailingComma":"es5"},"boundation":{"dom":true},"_id":"start-of-week@4.2.0-next.1700034067.79c9f3470b864d159f0ac15a0f818bbb8e10b5d6","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-githubworkflow\"><a href=\"https://github.com/bevry/start-of-week/actions?query=workflow%3Abevry\" title=\"View the status of this project's GitHub Workflow: bevry\"><img src=\"https://github.com/bevry/start-of-week/workflows/bevry/badge.svg\" alt=\"Status of the GitHub Workflow: bevry\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-thanksdev\"><a href=\"https://thanks.dev/u/gh/balupton\" title=\"Donate to this project using ThanksDev\"><img src=\"https://img.shields.io/badge/thanksdev-donate-yellow.svg\" alt=\"ThanksDev donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nTake a locale and return its start of the week (0 = Sunday, 1 = Monday)\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/)\n\n```javascript\nimport getSW from 'start-of-week'\nconsole.log(getSW()) // 0 (Sunday) if user is in North American, otherwise 1 (Monday)\nconsole.log(getSW('')) // 1\nconsole.log(getSW('en_AU')) // 1\nconsole.log(getSW('en_US')) // 0\nconsole.log(getSW('en_CA')) // 0\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Import: <code>import pkg from ('start-of-week')</code></li>\n<li>Require: <code>const pkg = require('start-of-week').default</code></li>\n</ul>\n\n<a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n``` typescript\nimport pkg from 'https://unpkg.com/start-of-week@^4.2.0/edition-deno/deno.ts'\n```\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/start-of-week@^4.2.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^4.2.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@4.2.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week</code> aliases <code>start-of-week/index.cjs</code> which uses the <a href=\"https://github.com/bevry/editions\" title=\"You can use the Editions Autoloader to autoload the appropriate edition for your consumers environment\">Editions Autoloader</a> to automatically select the correct edition for the consumer's environment</li>\n<li><code>start-of-week/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-browsers/browser.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against ES2022 for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-es2022/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against ES2022 for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-es5/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against ES5 for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-es2022-esm/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against ES2022 for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 12 || 14 || 16 || 18 || 20 || 21 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-deno/deno.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code made to be compatible with <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative to Node.js\">Deno</a></li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-thanksdev\"><a href=\"https://thanks.dev/u/gh/balupton\" title=\"Donate to this project using ThanksDev\"><img src=\"https://img.shields.io/badge/thanksdev-donate-yellow.svg\" alt=\"ThanksDev donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/Artistic-2.0.html\">Artistic License 2.0</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","gitHead":"79c9f3470b864d159f0ac15a0f818bbb8e10b5d6","_nodeVersion":"20.9.0","_npmVersion":"10.1.0","dist":{"integrity":"sha512-ksspAAhCku9s60IPL93UrdqoziPA6WJI7NsYD3Z8M98+eO8hpCjisYYJndGMnfbRjVzMEz2E+GFJR5HNQ88Xzg==","shasum":"2d8ed1607105fb0f950ccb3ede03590864e047da","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-4.2.0-next.1700034067.79c9f3470b864d159f0ac15a0f818bbb8e10b5d6.tgz","fileCount":42,"unpackedSize":45308,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDTWUAH6DJZkxJ+tyqOF5W4Y1weSmhOxtgxv8FkbVEOwwIhAJT8EzcAosEKpMqwadt1mVCpfSjiXLeHie8MSrbibFwX"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_4.2.0-next.1700034067.79c9f3470b864d159f0ac15a0f818bbb8e10b5d6_1700034069002_0.13336258546774338"},"_hasShrinkwrap":false},"4.3.0":{"name":"start-of-week","version":"4.3.0","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"Artistic-2.0","keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","es2022","es5","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["githubworkflow","npmversion","npmdownloads","---","githubsponsors","thanksdev","patreon","liberapay","buymeacoffee","opencollective","crypto","paypal","---","discord","twitch"],"config":{"githubWorkflow":"bevry","githubSponsorsUsername":"balupton","thanksdevGithubUsername":"bevry","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","discordServerID":"1147436445783560193","discordServerInvite":"nQuXddV7VP","twitchUsername":"balupton","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=4"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2022 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ES2022 for Node.js 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules","directory":"edition-es2022","entry":"node.js","tags":["compiled","javascript","es2022","require"],"engines":{"node":"6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21","browsers":false}},{"description":"TypeScript compiled against ES5 for Node.js 4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules","directory":"edition-es5","entry":"node.js","tags":["compiled","javascript","es5","require"],"engines":{"node":"4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21","browsers":false}},{"description":"TypeScript compiled against ES2022 for Node.js 12 || 14 || 16 || 18 || 20 || 21 with Import for modules","directory":"edition-es2022-esm","entry":"node.js","tags":["compiled","javascript","es2022","import"],"engines":{"node":"12 || 14 || 16 || 18 || 20 || 21","browsers":false}},{"description":"TypeScript compiled Types with Import for modules","directory":"edition-types","entry":"index.d.ts","tags":["compiled","types","import"],"engines":false},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"edition-types/index.d.ts","type":"module","main":"index.cjs","exports":{"node":{"types":"./edition-types/index.d.ts","import":"./edition-es2022-esm/index.js","default":"./index.cjs","require":"./edition-es2022/index.js"},"browser":{"types":"./edition-types/index.d.ts","import":"./edition-browsers/browser.js"}},"deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","dependencies":{"editions":"^6.13.0"},"devDependencies":{"@bevry/update-contributors":"^1.23.0","@types/node":"^20.9.3","@typescript-eslint/eslint-plugin":"^6.12.0","@typescript-eslint/parser":"^6.12.0","assert-helpers":"^11.5.0","eslint":"^8.54.0","eslint-config-bevry":"^5.1.0","eslint-config-prettier":"^9.0.0","eslint-plugin-prettier":"^5.0.1","kava":"^7.3.0","make-deno-edition":"^1.3.0","prettier":"^3.1.0","projectz":"^3.3.0","surge":"^0.23.1","typedoc":"^0.25.3","typescript":"5.2.2","valid-directory":"^4.4.0","valid-module":"^2.4.0"},"scripts":{"our:clean":"rm -rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2022 && npm run our:compile:edition-es2022-esm && npm run our:compile:edition-es5 && npm run our:compile:edition-types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2022 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2022":"tsc --module commonjs --target ES2022 --outDir ./edition-es2022 --project tsconfig.json && ( test ! -d edition-es2022/source || ( mv edition-es2022/source edition-temp && rm -rf edition-es2022 && mv edition-temp edition-es2022 ) ) && printf '%s' '{\"type\": \"commonjs\"}' > edition-es2022/package.json","our:compile:edition-es2022-esm":"tsc --module ESNext --target ES2022 --outDir ./edition-es2022-esm --project tsconfig.json && ( test ! -d edition-es2022-esm/source || ( mv edition-es2022-esm/source edition-temp && rm -rf edition-es2022-esm && mv edition-temp edition-es2022-esm ) ) && printf '%s' '{\"type\": \"module\"}' > edition-es2022-esm/package.json","our:compile:edition-es5":"tsc --module commonjs --target ES5 --outDir ./edition-es5 --project tsconfig.json && ( test ! -d edition-es5/source || ( mv edition-es5/source edition-temp && rm -rf edition-es5 && mv edition-temp edition-es5 ) ) && printf '%s' '{\"type\": \"commonjs\"}' > edition-es5/package.json","our:compile:edition-types":"tsc --emitDeclarationOnly --declaration --declarationMap --declarationDir ./edition-types --project tsconfig.json && ( test ! -d edition-types/source || ( mv edition-types/source edition-temp && rm -rf edition-types && mv edition-temp edition-types ) )","our:deploy":"printf '%s\n' 'no need for this project'","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -rf ./docs && typedoc --exclude '**/+(*test*|node_modules)' --excludeExternals --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep \"v$npm_package_version\" || (printf '%s\n' \"add a changelog entry for v$npm_package_version\" && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (printf '%s\n' 'proper changelog entry not found' && exit -1) && git tag \"v$npm_package_version\" -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./test.cjs"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true,"trailingComma":"es5"},"boundation":{"dom":true},"_id":"start-of-week@4.3.0","gitHead":"3265030e51427a3a6c5557722f2e66b227129a6c","_nodeVersion":"20.9.0","_npmVersion":"10.1.0","dist":{"integrity":"sha512-thvvDXfVbJIAo8YWsvJGpIilTw9gQVivSH9RmfZ0cgGqGPL+ztwQxSmrBjOYUskFpsRCpL9gshqnPyvPtC3Xkg==","shasum":"845c3ed00ab6882acb17b342baaecd73913831bd","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-4.3.0.tgz","fileCount":42,"unpackedSize":45737,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGoV3o6qz7TAYJjCUhNhYgC4nFeHbnC6+PuZNQaJRbcTAiAl7SY6y0uD1SiV4r/V4uVkbZRchxz16e7dR663kKN0DA=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_4.3.0_1700573548130_0.8903681017658958"},"_hasShrinkwrap":false},"4.3.0-next.1700573548.3265030e51427a3a6c5557722f2e66b227129a6c":{"name":"start-of-week","version":"4.3.0-next.1700573548.3265030e51427a3a6c5557722f2e66b227129a6c","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"Artistic-2.0","keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","es2022","es5","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["githubworkflow","npmversion","npmdownloads","---","githubsponsors","thanksdev","patreon","liberapay","buymeacoffee","opencollective","crypto","paypal","---","discord","twitch"],"config":{"githubWorkflow":"bevry","githubSponsorsUsername":"balupton","thanksdevGithubUsername":"bevry","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","discordServerID":"1147436445783560193","discordServerInvite":"nQuXddV7VP","twitchUsername":"balupton","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=4"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2022 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ES2022 for Node.js 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules","directory":"edition-es2022","entry":"node.js","tags":["compiled","javascript","es2022","require"],"engines":{"node":"6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21","browsers":false}},{"description":"TypeScript compiled against ES5 for Node.js 4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules","directory":"edition-es5","entry":"node.js","tags":["compiled","javascript","es5","require"],"engines":{"node":"4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21","browsers":false}},{"description":"TypeScript compiled against ES2022 for Node.js 12 || 14 || 16 || 18 || 20 || 21 with Import for modules","directory":"edition-es2022-esm","entry":"node.js","tags":["compiled","javascript","es2022","import"],"engines":{"node":"12 || 14 || 16 || 18 || 20 || 21","browsers":false}},{"description":"TypeScript compiled Types with Import for modules","directory":"edition-types","entry":"index.d.ts","tags":["compiled","types","import"],"engines":false},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"edition-types/index.d.ts","type":"module","main":"index.cjs","exports":{"node":{"types":"./edition-types/index.d.ts","import":"./edition-es2022-esm/index.js","default":"./index.cjs","require":"./edition-es2022/index.js"},"browser":{"types":"./edition-types/index.d.ts","import":"./edition-browsers/browser.js"}},"deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","dependencies":{"editions":"^6.13.0"},"devDependencies":{"@bevry/update-contributors":"^1.23.0","@types/node":"^20.9.3","@typescript-eslint/eslint-plugin":"^6.12.0","@typescript-eslint/parser":"^6.12.0","assert-helpers":"^11.5.0","eslint":"^8.54.0","eslint-config-bevry":"^5.1.0","eslint-config-prettier":"^9.0.0","eslint-plugin-prettier":"^5.0.1","kava":"^7.3.0","make-deno-edition":"^1.3.0","prettier":"^3.1.0","projectz":"^3.3.0","surge":"^0.23.1","typedoc":"^0.25.3","typescript":"5.2.2","valid-directory":"^4.4.0","valid-module":"^2.4.0"},"scripts":{"our:clean":"rm -rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2022 && npm run our:compile:edition-es2022-esm && npm run our:compile:edition-es5 && npm run our:compile:edition-types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2022 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2022":"tsc --module commonjs --target ES2022 --outDir ./edition-es2022 --project tsconfig.json && ( test ! -d edition-es2022/source || ( mv edition-es2022/source edition-temp && rm -rf edition-es2022 && mv edition-temp edition-es2022 ) ) && printf '%s' '{\"type\": \"commonjs\"}' > edition-es2022/package.json","our:compile:edition-es2022-esm":"tsc --module ESNext --target ES2022 --outDir ./edition-es2022-esm --project tsconfig.json && ( test ! -d edition-es2022-esm/source || ( mv edition-es2022-esm/source edition-temp && rm -rf edition-es2022-esm && mv edition-temp edition-es2022-esm ) ) && printf '%s' '{\"type\": \"module\"}' > edition-es2022-esm/package.json","our:compile:edition-es5":"tsc --module commonjs --target ES5 --outDir ./edition-es5 --project tsconfig.json && ( test ! -d edition-es5/source || ( mv edition-es5/source edition-temp && rm -rf edition-es5 && mv edition-temp edition-es5 ) ) && printf '%s' '{\"type\": \"commonjs\"}' > edition-es5/package.json","our:compile:edition-types":"tsc --emitDeclarationOnly --declaration --declarationMap --declarationDir ./edition-types --project tsconfig.json && ( test ! -d edition-types/source || ( mv edition-types/source edition-temp && rm -rf edition-types && mv edition-temp edition-types ) )","our:deploy":"printf '%s\n' 'no need for this project'","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -rf ./docs && typedoc --exclude '**/+(*test*|node_modules)' --excludeExternals --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep \"v$npm_package_version\" || (printf '%s\n' \"add a changelog entry for v$npm_package_version\" && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (printf '%s\n' 'proper changelog entry not found' && exit -1) && git tag \"v$npm_package_version\" -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./test.cjs"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true,"trailingComma":"es5"},"boundation":{"dom":true},"_id":"start-of-week@4.3.0-next.1700573548.3265030e51427a3a6c5557722f2e66b227129a6c","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-githubworkflow\"><a href=\"https://github.com/bevry/start-of-week/actions?query=workflow%3Abevry\" title=\"View the status of this project's GitHub Workflow: bevry\"><img src=\"https://github.com/bevry/start-of-week/workflows/bevry/badge.svg\" alt=\"Status of the GitHub Workflow: bevry\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-thanksdev\"><a href=\"https://thanks.dev/u/gh/bevry\" title=\"Donate to this project using ThanksDev\"><img src=\"https://img.shields.io/badge/thanksdev-donate-yellow.svg\" alt=\"ThanksDev donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-discord\"><a href=\"https://discord.gg/nQuXddV7VP\" title=\"Join this project's community on Discord\"><img src=\"https://img.shields.io/discord/1147436445783560193?logo=discord&amp;label=discord\" alt=\"Discord server badge\" /></a></span>\n<span class=\"badge-twitch\"><a href=\"https://www.twitch.tv/balupton\" title=\"Join this project's community on Twitch\"><img src=\"https://img.shields.io/twitch/status/balupton?logo=twitch\" alt=\"Twitch community badge\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nTake a locale and return its start of the week (0 = Sunday, 1 = Monday)\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/)\n\n```javascript\nimport getSW from 'start-of-week'\nconsole.log(getSW()) // 0 (Sunday) if user is in North American, otherwise 1 (Monday)\nconsole.log(getSW('')) // 1\nconsole.log(getSW('en_AU')) // 1\nconsole.log(getSW('en_US')) // 0\nconsole.log(getSW('en_CA')) // 0\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Import: <code>import pkg from ('start-of-week')</code></li>\n<li>Require: <code>const pkg = require('start-of-week').default</code></li>\n</ul>\n\n<a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n``` typescript\nimport pkg from 'https://unpkg.com/start-of-week@^4.3.0/edition-deno/deno.ts'\n```\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/start-of-week@^4.3.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^4.3.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@4.3.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week</code> aliases <code>start-of-week/index.cjs</code> which uses the <a href=\"https://github.com/bevry/editions\" title=\"You can use the Editions Autoloader to autoload the appropriate edition for your consumers environment\">Editions Autoloader</a> to automatically select the correct edition for the consumer's environment</li>\n<li><code>start-of-week/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-browsers/browser.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against ES2022 for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-es2022/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against ES2022 for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-es5/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against ES5 for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-es2022-esm/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against ES2022 for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 12 || 14 || 16 || 18 || 20 || 21 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-types/index.d.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled Types with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-deno/deno.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code made to be compatible with <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative to Node.js\">Deno</a></li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-thanksdev\"><a href=\"https://thanks.dev/u/gh/bevry\" title=\"Donate to this project using ThanksDev\"><img src=\"https://img.shields.io/badge/thanksdev-donate-yellow.svg\" alt=\"ThanksDev donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/Artistic-2.0.html\">Artistic License 2.0</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","gitHead":"3265030e51427a3a6c5557722f2e66b227129a6c","_nodeVersion":"20.9.0","_npmVersion":"10.1.0","dist":{"integrity":"sha512-CfdpHb4XUByaQhXEHe5GaYD1RVKP1opfSluM5OTxxuQClGcCtwU3qD2HQt8Yv8Zf0lrZAOuYH9SjSQe77Zjfgg==","shasum":"43142946e8fc88c73c7553fd64bbdf9f57353f44","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-4.3.0-next.1700573548.3265030e51427a3a6c5557722f2e66b227129a6c.tgz","fileCount":42,"unpackedSize":45795,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDkfxXvUsv7vNhG+arjDEXb7DuamY8tAsRNPDpR83KOPQIhALzpU5Q7potrpAnWhgB0YijSUuwDFz4qjkQgB8e9FLx+"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_4.3.0-next.1700573548.3265030e51427a3a6c5557722f2e66b227129a6c_1700573550101_0.19216578306549104"},"_hasShrinkwrap":false},"4.4.0":{"name":"start-of-week","version":"4.4.0","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"Artistic-2.0","keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","es2022","es5","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["githubworkflow","npmversion","npmdownloads","---","githubsponsors","thanksdev","patreon","liberapay","buymeacoffee","opencollective","crypto","paypal","---","discord","twitch"],"config":{"githubWorkflow":"bevry","githubSponsorsUsername":"balupton","thanksdevGithubUsername":"bevry","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","discordServerID":"1147436445783560193","discordServerInvite":"nQuXddV7VP","twitchUsername":"balupton","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=4"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2022 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ES2022 for Node.js 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules","directory":"edition-es2022","entry":"node.js","tags":["compiled","javascript","es2022","require"],"engines":{"node":"6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21","browsers":false}},{"description":"TypeScript compiled against ES5 for Node.js 4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules","directory":"edition-es5","entry":"node.js","tags":["compiled","javascript","es5","require"],"engines":{"node":"4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21","browsers":false}},{"description":"TypeScript compiled against ES2022 for Node.js 12 || 14 || 16 || 18 || 20 || 21 with Import for modules","directory":"edition-es2022-esm","entry":"node.js","tags":["compiled","javascript","es2022","import"],"engines":{"node":"12 || 14 || 16 || 18 || 20 || 21","browsers":false}},{"description":"TypeScript compiled Types with Import for modules","directory":"edition-types","entry":"index.d.ts","tags":["compiled","types","import"],"engines":false},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"edition-types/index.d.ts","type":"module","main":"index.cjs","exports":{"node":{"types":"./edition-types/index.d.ts","import":"./edition-es2022-esm/index.js","default":"./index.cjs","require":"./edition-es2022/index.js"},"browser":{"types":"./edition-types/index.d.ts","import":"./edition-browsers/browser.js"}},"deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","dependencies":{"editions":"^6.16.0"},"devDependencies":{"@bevry/update-contributors":"^1.23.0","@types/node":"^20.10.0","@typescript-eslint/eslint-plugin":"^6.12.0","@typescript-eslint/parser":"^6.12.0","assert-helpers":"^11.6.0","eslint":"^8.54.0","eslint-config-bevry":"^5.2.0","eslint-config-prettier":"^9.0.0","eslint-plugin-prettier":"^5.0.1","kava":"^7.4.0","make-deno-edition":"^2.0.0","prettier":"^3.1.0","projectz":"^3.4.0","surge":"^0.23.1","typedoc":"^0.25.3","typescript":"5.2.2","valid-directory":"^4.5.0","valid-module":"^2.5.0"},"scripts":{"our:clean":"rm -rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2022 && npm run our:compile:edition-es2022-esm && npm run our:compile:edition-es5 && npm run our:compile:edition-types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2022 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2022":"tsc --module commonjs --target ES2022 --outDir ./edition-es2022 --project tsconfig.json && ( test ! -d edition-es2022/source || ( mv edition-es2022/source edition-temp && rm -rf edition-es2022 && mv edition-temp edition-es2022 ) ) && printf '%s' '{\"type\": \"commonjs\"}' > edition-es2022/package.json","our:compile:edition-es2022-esm":"tsc --module ESNext --target ES2022 --outDir ./edition-es2022-esm --project tsconfig.json && ( test ! -d edition-es2022-esm/source || ( mv edition-es2022-esm/source edition-temp && rm -rf edition-es2022-esm && mv edition-temp edition-es2022-esm ) ) && printf '%s' '{\"type\": \"module\"}' > edition-es2022-esm/package.json","our:compile:edition-es5":"tsc --module commonjs --target ES5 --outDir ./edition-es5 --project tsconfig.json && ( test ! -d edition-es5/source || ( mv edition-es5/source edition-temp && rm -rf edition-es5 && mv edition-temp edition-es5 ) ) && printf '%s' '{\"type\": \"commonjs\"}' > edition-es5/package.json","our:compile:edition-types":"tsc --emitDeclarationOnly --declaration --declarationMap --declarationDir ./edition-types --project tsconfig.json && ( test ! -d edition-types/source || ( mv edition-types/source edition-temp && rm -rf edition-types && mv edition-temp edition-types ) )","our:deploy":"printf '%s\n' 'no need for this project'","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -rf ./docs && typedoc --exclude '**/+(*test*|node_modules)' --excludeExternals --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep \"v$npm_package_version\" || (printf '%s\n' \"add a changelog entry for v$npm_package_version\" && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (printf '%s\n' 'proper changelog entry not found' && exit -1) && git tag \"v$npm_package_version\" -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./test.cjs"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true,"trailingComma":"es5"},"boundation":{"dom":true},"_id":"start-of-week@4.4.0","gitHead":"c9520f7c9b852c3ed90541d1267686958a5ece14","_nodeVersion":"20.9.0","_npmVersion":"10.1.0","dist":{"integrity":"sha512-bza0wSqYxNnBR8KPA4XXkX3OmgT/O0B8R8/SaGyOHCessFFAd/W75shk7Bn3fdYWnQt/lDEWGFq7Kxc/tEDurQ==","shasum":"067302dd228554f18ac27e0a187d0f69e0db6b0c","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-4.4.0.tgz","fileCount":42,"unpackedSize":45738,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCvfaqIrqO/hXhM2+A9sMgJAweqaxwxdP62GhEY1akWxgIgRBFr25nlss4GhspX1pVLl4IRK2xpCaNJtN60PwcavrA="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_4.4.0_1700862408430_0.9152013673135735"},"_hasShrinkwrap":false},"4.4.0-next.1700862408.c9520f7c9b852c3ed90541d1267686958a5ece14":{"name":"start-of-week","version":"4.4.0-next.1700862408.c9520f7c9b852c3ed90541d1267686958a5ece14","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"Artistic-2.0","keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","es2022","es5","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["githubworkflow","npmversion","npmdownloads","---","githubsponsors","thanksdev","patreon","liberapay","buymeacoffee","opencollective","crypto","paypal","---","discord","twitch"],"config":{"githubWorkflow":"bevry","githubSponsorsUsername":"balupton","thanksdevGithubUsername":"bevry","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","discordServerID":"1147436445783560193","discordServerInvite":"nQuXddV7VP","twitchUsername":"balupton","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=4"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2022 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ES2022 for Node.js 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules","directory":"edition-es2022","entry":"node.js","tags":["compiled","javascript","es2022","require"],"engines":{"node":"6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21","browsers":false}},{"description":"TypeScript compiled against ES5 for Node.js 4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules","directory":"edition-es5","entry":"node.js","tags":["compiled","javascript","es5","require"],"engines":{"node":"4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21","browsers":false}},{"description":"TypeScript compiled against ES2022 for Node.js 12 || 14 || 16 || 18 || 20 || 21 with Import for modules","directory":"edition-es2022-esm","entry":"node.js","tags":["compiled","javascript","es2022","import"],"engines":{"node":"12 || 14 || 16 || 18 || 20 || 21","browsers":false}},{"description":"TypeScript compiled Types with Import for modules","directory":"edition-types","entry":"index.d.ts","tags":["compiled","types","import"],"engines":false},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"edition-types/index.d.ts","type":"module","main":"index.cjs","exports":{"node":{"types":"./edition-types/index.d.ts","import":"./edition-es2022-esm/index.js","default":"./index.cjs","require":"./edition-es2022/index.js"},"browser":{"types":"./edition-types/index.d.ts","import":"./edition-browsers/browser.js"}},"deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","dependencies":{"editions":"^6.16.0"},"devDependencies":{"@bevry/update-contributors":"^1.23.0","@types/node":"^20.10.0","@typescript-eslint/eslint-plugin":"^6.12.0","@typescript-eslint/parser":"^6.12.0","assert-helpers":"^11.6.0","eslint":"^8.54.0","eslint-config-bevry":"^5.2.0","eslint-config-prettier":"^9.0.0","eslint-plugin-prettier":"^5.0.1","kava":"^7.4.0","make-deno-edition":"^2.0.0","prettier":"^3.1.0","projectz":"^3.4.0","surge":"^0.23.1","typedoc":"^0.25.3","typescript":"5.2.2","valid-directory":"^4.5.0","valid-module":"^2.5.0"},"scripts":{"our:clean":"rm -rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2022 && npm run our:compile:edition-es2022-esm && npm run our:compile:edition-es5 && npm run our:compile:edition-types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2022 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2022":"tsc --module commonjs --target ES2022 --outDir ./edition-es2022 --project tsconfig.json && ( test ! -d edition-es2022/source || ( mv edition-es2022/source edition-temp && rm -rf edition-es2022 && mv edition-temp edition-es2022 ) ) && printf '%s' '{\"type\": \"commonjs\"}' > edition-es2022/package.json","our:compile:edition-es2022-esm":"tsc --module ESNext --target ES2022 --outDir ./edition-es2022-esm --project tsconfig.json && ( test ! -d edition-es2022-esm/source || ( mv edition-es2022-esm/source edition-temp && rm -rf edition-es2022-esm && mv edition-temp edition-es2022-esm ) ) && printf '%s' '{\"type\": \"module\"}' > edition-es2022-esm/package.json","our:compile:edition-es5":"tsc --module commonjs --target ES5 --outDir ./edition-es5 --project tsconfig.json && ( test ! -d edition-es5/source || ( mv edition-es5/source edition-temp && rm -rf edition-es5 && mv edition-temp edition-es5 ) ) && printf '%s' '{\"type\": \"commonjs\"}' > edition-es5/package.json","our:compile:edition-types":"tsc --emitDeclarationOnly --declaration --declarationMap --declarationDir ./edition-types --project tsconfig.json && ( test ! -d edition-types/source || ( mv edition-types/source edition-temp && rm -rf edition-types && mv edition-temp edition-types ) )","our:deploy":"printf '%s\n' 'no need for this project'","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -rf ./docs && typedoc --exclude '**/+(*test*|node_modules)' --excludeExternals --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep \"v$npm_package_version\" || (printf '%s\n' \"add a changelog entry for v$npm_package_version\" && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (printf '%s\n' 'proper changelog entry not found' && exit -1) && git tag \"v$npm_package_version\" -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./test.cjs"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true,"trailingComma":"es5"},"boundation":{"dom":true},"_id":"start-of-week@4.4.0-next.1700862408.c9520f7c9b852c3ed90541d1267686958a5ece14","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-githubworkflow\"><a href=\"https://github.com/bevry/start-of-week/actions?query=workflow%3Abevry\" title=\"View the status of this project's GitHub Workflow: bevry\"><img src=\"https://github.com/bevry/start-of-week/workflows/bevry/badge.svg\" alt=\"Status of the GitHub Workflow: bevry\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-thanksdev\"><a href=\"https://thanks.dev/u/gh/bevry\" title=\"Donate to this project using ThanksDev\"><img src=\"https://img.shields.io/badge/thanksdev-donate-yellow.svg\" alt=\"ThanksDev donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-discord\"><a href=\"https://discord.gg/nQuXddV7VP\" title=\"Join this project's community on Discord\"><img src=\"https://img.shields.io/discord/1147436445783560193?logo=discord&amp;label=discord\" alt=\"Discord server badge\" /></a></span>\n<span class=\"badge-twitch\"><a href=\"https://www.twitch.tv/balupton\" title=\"Join this project's community on Twitch\"><img src=\"https://img.shields.io/twitch/status/balupton?logo=twitch\" alt=\"Twitch community badge\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nTake a locale and return its start of the week (0 = Sunday, 1 = Monday)\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/)\n\n```javascript\nimport getSW from 'start-of-week'\nconsole.log(getSW()) // 0 (Sunday) if user is in North American, otherwise 1 (Monday)\nconsole.log(getSW('')) // 1\nconsole.log(getSW('en_AU')) // 1\nconsole.log(getSW('en_US')) // 0\nconsole.log(getSW('en_CA')) // 0\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Import: <code>import pkg from ('start-of-week')</code></li>\n<li>Require: <code>const pkg = require('start-of-week').default</code></li>\n</ul>\n\n<a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n``` typescript\nimport pkg from 'https://unpkg.com/start-of-week@^4.4.0/edition-deno/deno.ts'\n```\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/start-of-week@^4.4.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^4.4.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@4.4.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week</code> aliases <code>start-of-week/index.cjs</code> which uses the <a href=\"https://github.com/bevry/editions\" title=\"You can use the Editions Autoloader to autoload the appropriate edition for your consumers environment\">Editions Autoloader</a> to automatically select the correct edition for the consumer's environment</li>\n<li><code>start-of-week/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-browsers/browser.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against ES2022 for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-es2022/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against ES2022 for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-es5/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against ES5 for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-es2022-esm/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against ES2022 for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 12 || 14 || 16 || 18 || 20 || 21 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-types/index.d.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled Types with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-deno/deno.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code made to be compatible with <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative to Node.js\">Deno</a></li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-thanksdev\"><a href=\"https://thanks.dev/u/gh/bevry\" title=\"Donate to this project using ThanksDev\"><img src=\"https://img.shields.io/badge/thanksdev-donate-yellow.svg\" alt=\"ThanksDev donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/Artistic-2.0.html\">Artistic License 2.0</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","gitHead":"c9520f7c9b852c3ed90541d1267686958a5ece14","_nodeVersion":"20.9.0","_npmVersion":"10.1.0","dist":{"integrity":"sha512-n/+4I1Nh9Onw405XfMLvIuS4nlpC6JJCxhn7ZjkzEsg6P/Dq0Gz5QTngMEmP7UNauWj9o/RpNNfQJP9UEbzKNg==","shasum":"7184166c0449ab5a48f2b7d477e62b3eac8ecb0b","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-4.4.0-next.1700862408.c9520f7c9b852c3ed90541d1267686958a5ece14.tgz","fileCount":42,"unpackedSize":45796,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDYZZzXcc1loRztxidlMWB0xNJ2eHpLzCnhFpu/8c2FkQIhALi+gzzYQP7YILQWk+/Uj2+lxcJmJmcLCpaTKs5JOaw3"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_4.4.0-next.1700862408.c9520f7c9b852c3ed90541d1267686958a5ece14_1700862409984_0.0027648398580957245"},"_hasShrinkwrap":false},"4.5.0":{"name":"start-of-week","version":"4.5.0","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"Artistic-2.0","keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","es2022","es5","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["githubworkflow","npmversion","npmdownloads","---","githubsponsors","thanksdev","patreon","liberapay","buymeacoffee","opencollective","crypto","paypal","---","discord","twitch"],"config":{"githubWorkflow":"bevry","githubSponsorsUsername":"balupton","thanksdevGithubUsername":"bevry","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","discordServerID":"1147436445783560193","discordServerInvite":"nQuXddV7VP","twitchUsername":"balupton","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=4"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2022 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ES2022 for Node.js 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules","directory":"edition-es2022","entry":"node.js","tags":["compiled","javascript","es2022","require"],"engines":{"node":"6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21","browsers":false}},{"description":"TypeScript compiled against ES5 for Node.js 4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules","directory":"edition-es5","entry":"node.js","tags":["compiled","javascript","es5","require"],"engines":{"node":"4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21","browsers":false}},{"description":"TypeScript compiled against ES2022 for Node.js 12 || 14 || 16 || 18 || 20 || 21 with Import for modules","directory":"edition-es2022-esm","entry":"node.js","tags":["compiled","javascript","es2022","import"],"engines":{"node":"12 || 14 || 16 || 18 || 20 || 21","browsers":false}},{"description":"TypeScript compiled Types with Import for modules","directory":"edition-types","entry":"index.d.ts","tags":["compiled","types","import"],"engines":false},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"edition-types/index.d.ts","type":"module","main":"index.cjs","exports":{"node":{"types":"./edition-types/index.d.ts","import":"./edition-es2022-esm/index.js","default":"./index.cjs","require":"./edition-es2022/index.js"},"browser":{"types":"./edition-types/index.d.ts","import":"./edition-browsers/browser.js"}},"deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","dependencies":{"editions":"^6.19.0"},"devDependencies":{"@bevry/update-contributors":"^1.23.0","@types/node":"^20.10.3","@typescript-eslint/eslint-plugin":"^6.13.2","@typescript-eslint/parser":"^6.13.2","assert-helpers":"^11.9.0","eslint":"^8.55.0","eslint-config-bevry":"^5.3.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.0.1","kava":"^7.5.0","make-deno-edition":"^2.1.0","prettier":"^3.1.0","projectz":"^3.4.0","typedoc":"^0.25.4","typescript":"5.3.2","valid-directory":"^4.6.0","valid-module":"^2.6.0"},"scripts":{"our:clean":"rm -rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2022 && npm run our:compile:edition-es2022-esm && npm run our:compile:edition-es5 && npm run our:compile:edition-types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2022 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2022":"tsc --module commonjs --target ES2022 --outDir ./edition-es2022 --project tsconfig.json && ( test ! -d edition-es2022/source || ( mv edition-es2022/source edition-temp && rm -rf edition-es2022 && mv edition-temp edition-es2022 ) ) && printf '%s' '{\"type\": \"commonjs\"}' > edition-es2022/package.json","our:compile:edition-es2022-esm":"tsc --module ESNext --target ES2022 --outDir ./edition-es2022-esm --project tsconfig.json && ( test ! -d edition-es2022-esm/source || ( mv edition-es2022-esm/source edition-temp && rm -rf edition-es2022-esm && mv edition-temp edition-es2022-esm ) ) && printf '%s' '{\"type\": \"module\"}' > edition-es2022-esm/package.json","our:compile:edition-es5":"tsc --module commonjs --target ES5 --outDir ./edition-es5 --project tsconfig.json && ( test ! -d edition-es5/source || ( mv edition-es5/source edition-temp && rm -rf edition-es5 && mv edition-temp edition-es5 ) ) && printf '%s' '{\"type\": \"commonjs\"}' > edition-es5/package.json","our:compile:edition-types":"tsc --emitDeclarationOnly --declaration --declarationMap --declarationDir ./edition-types --project tsconfig.json && ( test ! -d edition-types/source || ( mv edition-types/source edition-temp && rm -rf edition-types && mv edition-temp edition-types ) )","our:deploy":"printf '%s\n' 'no need for this project'","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -rf ./docs && typedoc --exclude '**/+(*test*|node_modules)' --excludeExternals --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep \"v$npm_package_version\" || (printf '%s\n' \"add a changelog entry for v$npm_package_version\" && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (printf '%s\n' 'proper changelog entry not found' && exit -1) && git tag \"v$npm_package_version\" -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./test.cjs"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true,"trailingComma":"es5","endOfLine":"lf"},"boundation":{"dom":true},"_id":"start-of-week@4.5.0","gitHead":"dcea017bc47380a578ee5f76fbf65fdbcae6662c","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-niN7tQDXmXwSrVXCtP1yNetAQwnLUqsS60iOgv2VyKgQ5co/jxex985nbDi+zhvwHr2jd4I7twRaHPD62gsLEg==","shasum":"76d34ea09ab7aa43092bc6eb41513bf36596b040","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-4.5.0.tgz","fileCount":42,"unpackedSize":45737,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD1MDtOxuzbV9gXul7c/urIbnnCaWokGqYwP7FAWx+AQAIhAPbL7SY3grgoklOa9zDjtELzZn9yXEBCgR+l/Qbc8Db5"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_4.5.0_1701826922866_0.09010464240694005"},"_hasShrinkwrap":false},"4.5.0-next.1701826921.dcea017bc47380a578ee5f76fbf65fdbcae6662c":{"name":"start-of-week","version":"4.5.0-next.1701826921.dcea017bc47380a578ee5f76fbf65fdbcae6662c","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","license":"Artistic-2.0","keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","es2022","es5","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["githubworkflow","npmversion","npmdownloads","---","githubsponsors","thanksdev","patreon","liberapay","buymeacoffee","opencollective","crypto","paypal","---","discord","twitch"],"config":{"githubWorkflow":"bevry","githubSponsorsUsername":"balupton","thanksdevGithubUsername":"bevry","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","discordServerID":"1147436445783560193","discordServerInvite":"nQuXddV7VP","twitchUsername":"balupton","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"funding":"https://bevry.me/fund","author":{"name":"2019+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"engines":{"node":">=4"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2022 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ES2022 for Node.js 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules","directory":"edition-es2022","entry":"node.js","tags":["compiled","javascript","es2022","require"],"engines":{"node":"6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21","browsers":false}},{"description":"TypeScript compiled against ES5 for Node.js 4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules","directory":"edition-es5","entry":"node.js","tags":["compiled","javascript","es5","require"],"engines":{"node":"4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21","browsers":false}},{"description":"TypeScript compiled against ES2022 for Node.js 12 || 14 || 16 || 18 || 20 || 21 with Import for modules","directory":"edition-es2022-esm","entry":"node.js","tags":["compiled","javascript","es2022","import"],"engines":{"node":"12 || 14 || 16 || 18 || 20 || 21","browsers":false}},{"description":"TypeScript compiled Types with Import for modules","directory":"edition-types","entry":"index.d.ts","tags":["compiled","types","import"],"engines":false},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"edition-types/index.d.ts","type":"module","main":"index.cjs","exports":{"node":{"types":"./edition-types/index.d.ts","import":"./edition-es2022-esm/index.js","default":"./index.cjs","require":"./edition-es2022/index.js"},"browser":{"types":"./edition-types/index.d.ts","import":"./edition-browsers/browser.js"}},"deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","dependencies":{"editions":"^6.19.0"},"devDependencies":{"@bevry/update-contributors":"^1.23.0","@types/node":"^20.10.3","@typescript-eslint/eslint-plugin":"^6.13.2","@typescript-eslint/parser":"^6.13.2","assert-helpers":"^11.9.0","eslint":"^8.55.0","eslint-config-bevry":"^5.3.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.0.1","kava":"^7.5.0","make-deno-edition":"^2.1.0","prettier":"^3.1.0","projectz":"^3.4.0","typedoc":"^0.25.4","typescript":"5.3.2","valid-directory":"^4.6.0","valid-module":"^2.6.0"},"scripts":{"our:clean":"rm -rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2022 && npm run our:compile:edition-es2022-esm && npm run our:compile:edition-es5 && npm run our:compile:edition-types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2022 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2022":"tsc --module commonjs --target ES2022 --outDir ./edition-es2022 --project tsconfig.json && ( test ! -d edition-es2022/source || ( mv edition-es2022/source edition-temp && rm -rf edition-es2022 && mv edition-temp edition-es2022 ) ) && printf '%s' '{\"type\": \"commonjs\"}' > edition-es2022/package.json","our:compile:edition-es2022-esm":"tsc --module ESNext --target ES2022 --outDir ./edition-es2022-esm --project tsconfig.json && ( test ! -d edition-es2022-esm/source || ( mv edition-es2022-esm/source edition-temp && rm -rf edition-es2022-esm && mv edition-temp edition-es2022-esm ) ) && printf '%s' '{\"type\": \"module\"}' > edition-es2022-esm/package.json","our:compile:edition-es5":"tsc --module commonjs --target ES5 --outDir ./edition-es5 --project tsconfig.json && ( test ! -d edition-es5/source || ( mv edition-es5/source edition-temp && rm -rf edition-es5 && mv edition-temp edition-es5 ) ) && printf '%s' '{\"type\": \"commonjs\"}' > edition-es5/package.json","our:compile:edition-types":"tsc --emitDeclarationOnly --declaration --declarationMap --declarationDir ./edition-types --project tsconfig.json && ( test ! -d edition-types/source || ( mv edition-types/source edition-temp && rm -rf edition-types && mv edition-temp edition-types ) )","our:deploy":"printf '%s\n' 'no need for this project'","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -rf ./docs && typedoc --exclude '**/+(*test*|node_modules)' --excludeExternals --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep \"v$npm_package_version\" || (printf '%s\n' \"add a changelog entry for v$npm_package_version\" && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (printf '%s\n' 'proper changelog entry not found' && exit -1) && git tag \"v$npm_package_version\" -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./test.cjs"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true,"trailingComma":"es5","endOfLine":"lf"},"boundation":{"dom":true},"_id":"start-of-week@4.5.0-next.1701826921.dcea017bc47380a578ee5f76fbf65fdbcae6662c","readme":"<!-- TITLE/ -->\n\n<h1>start-of-week</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-githubworkflow\"><a href=\"https://github.com/bevry/start-of-week/actions?query=workflow%3Abevry\" title=\"View the status of this project's GitHub Workflow: bevry\"><img src=\"https://github.com/bevry/start-of-week/workflows/bevry/badge.svg\" alt=\"Status of the GitHub Workflow: bevry\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-thanksdev\"><a href=\"https://thanks.dev/u/gh/bevry\" title=\"Donate to this project using ThanksDev\"><img src=\"https://img.shields.io/badge/thanksdev-donate-yellow.svg\" alt=\"ThanksDev donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-discord\"><a href=\"https://discord.gg/nQuXddV7VP\" title=\"Join this project's community on Discord\"><img src=\"https://img.shields.io/discord/1147436445783560193?logo=discord&amp;label=discord\" alt=\"Discord server badge\" /></a></span>\n<span class=\"badge-twitch\"><a href=\"https://www.twitch.tv/balupton\" title=\"Join this project's community on Twitch\"><img src=\"https://img.shields.io/twitch/status/balupton?logo=twitch\" alt=\"Twitch community badge\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nTake a locale and return its start of the week (0 = Sunday, 1 = Monday)\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/)\n\n```javascript\nimport getSW from 'start-of-week'\nconsole.log(getSW()) // 0 (Sunday) if user is in North American, otherwise 1 (Monday)\nconsole.log(getSW('')) // 1\nconsole.log(getSW('en_AU')) // 1\nconsole.log(getSW('en_US')) // 0\nconsole.log(getSW('en_CA')) // 0\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save start-of-week</code></li>\n<li>Import: <code>import pkg from ('start-of-week')</code></li>\n<li>Require: <code>const pkg = require('start-of-week').default</code></li>\n</ul>\n\n<a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\"><h3>Deno</h3></a>\n\n``` typescript\nimport pkg from 'https://unpkg.com/start-of-week@^4.5.0/edition-deno/deno.ts'\n```\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/start-of-week@^4.5.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^4.5.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@4.5.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>start-of-week</code> aliases <code>start-of-week/index.cjs</code> which uses the <a href=\"https://github.com/bevry/editions\" title=\"You can use the Editions Autoloader to autoload the appropriate edition for your consumers environment\">Editions Autoloader</a> to automatically select the correct edition for the consumer's environment</li>\n<li><code>start-of-week/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-browsers/browser.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against ES2022 for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-es2022/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against ES2022 for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-es5/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against ES5 for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>start-of-week/edition-es2022-esm/node.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against ES2022 for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 12 || 14 || 16 || 18 || 20 || 21 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-types/index.d.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled Types with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>start-of-week/edition-deno/deno.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code made to be compatible with <a href=\"https://deno.land\" title=\"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative to Node.js\">Deno</a></li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-thanksdev\"><a href=\"https://thanks.dev/u/gh/bevry\" title=\"Donate to this project using ThanksDev\"><img src=\"https://img.shields.io/badge/thanksdev-donate-yellow.svg\" alt=\"ThanksDev donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/start-of-week/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/start-of-week/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2019+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/Artistic-2.0.html\">Artistic License 2.0</a></li></ul>\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","gitHead":"dcea017bc47380a578ee5f76fbf65fdbcae6662c","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-bawpnEwUOBzCo2ishZsLCMxGa4sgz+bmztPVNF8zaJy9JkGpVP6jIgIn2PWv7mbYzeeqZK00dHhtOJcu5Y9TrA==","shasum":"7eb8b3c962a0bc31e0a52067663d439524e3a2e6","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-4.5.0-next.1701826921.dcea017bc47380a578ee5f76fbf65fdbcae6662c.tgz","fileCount":42,"unpackedSize":45795,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAPnwdJQOHktm2+CPmqlp8XhVbGPVss6SljIMa5PLLtKAiAMw/QZp39spnNhz51bQ0TMq4xo+2E+r/pnNd88OFCtnQ=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_4.5.0-next.1701826921.dcea017bc47380a578ee5f76fbf65fdbcae6662c_1701826985646_0.7884900487329967"},"_hasShrinkwrap":false},"4.6.0":{"name":"start-of-week","version":"4.6.0","license":"Artistic-2.0","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","funding":"https://bevry.me/fund","repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","es2022","es5","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["githubworkflow","npmversion","npmdownloads","---","githubsponsors","thanksdev","patreon","liberapay","buymeacoffee","opencollective","crypto","paypal","---","discord","twitch"],"config":{"githubWorkflow":"bevry","githubSponsorsUsername":"balupton","thanksdevGithubUsername":"bevry","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","discordServerID":"1147436445783560193","discordServerInvite":"nQuXddV7VP","twitchUsername":"balupton","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"author":{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"authors":["Benjamin Lupton <b@lupton.cc> (https://balupton.com) (https://github.com/balupton): Accelerating collaborative wisdom."],"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"}],"sponsors":["Andrew Nesbitt (https://nesbitt.io) (https://github.com/andrew): Software engineer and researcher","Balsa <hello@balsa.com> (https://balsa.com) (https://github.com/balsa): We're Balsa, and we're building tools for builders.","Codecov <hello-codecov@sentry.io> (https://codecov.io/) (https://github.com/codecov): Empower developers with tools to improve code quality and testing.","Poonacha Medappa (https://poonachamedappa.com) (https://github.com/km-Poonacha)","Rob Morris <rob@prismatik.com.au> (https://github.com/Rob-Morris)","Sentry (https://sentry.io) (https://github.com/getsentry): Real-time crash reporting for your web apps, mobile apps, and games.","Syntax <scott@syntax.fm> (https://syntax.fm) (https://github.com/syntaxfm): Syntax Podcast"],"donors":["Andrew Nesbitt (https://nesbitt.io) (https://github.com/andrew)","Balsa <hello@balsa.com> (https://balsa.com) (https://github.com/balsa)","Chad (https://opencollective.com/chad8)","Codecov <hello-codecov@sentry.io> (https://codecov.io/) (https://github.com/codecov)","entroniq (https://gitlab.com/entroniq) (https://thanks.dev/d/gl/entroniq)","Jean-Luc Geering (https://github.com/jlgeering) (https://opencollective.com/jlgeering) (https://twitter.com/jlgeering)","Michael Duane Mooring (https://bevry.me) (https://github.com/mikeumus) (https://opencollective.com/mikeumus) (https://twitter.com/mikeumus)","Mohammed Shah <shah@idk.uno> (https://github.com/smashah) (https://thanks.dev/d/gh/smashah) (https://twitter.com/smashah)","Poonacha Medappa (https://poonachamedappa.com) (https://github.com/km-Poonacha)","Rob Morris <rob@prismatik.com.au> (https://github.com/Rob-Morris)","Sentry (https://sentry.io) (https://github.com/getsentry)","ServieJS (https://github.com/serviejs) (https://thanks.dev/d/gh/serviejs)","Skunk Team (https://skunk.team) (https://github.com/skunkteam)","Syntax <scott@syntax.fm> (https://syntax.fm) (https://github.com/syntaxfm)"],"engines":{"node":">=4"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2022 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ES2022 for Node.js 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules","directory":"edition-es2022","entry":"node.js","tags":["compiled","javascript","es2022","require"],"engines":{"node":"6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21","browsers":false}},{"description":"TypeScript compiled against ES5 for Node.js 4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules","directory":"edition-es5","entry":"node.js","tags":["compiled","javascript","es5","require"],"engines":{"node":"4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21","browsers":false}},{"description":"TypeScript compiled against ES2022 for Node.js 12 || 14 || 16 || 18 || 20 || 21 with Import for modules","directory":"edition-es2022-esm","entry":"node.js","tags":["compiled","javascript","es2022","import"],"engines":{"node":"12 || 14 || 16 || 18 || 20 || 21","browsers":false}},{"description":"TypeScript compiled Types with Import for modules","directory":"edition-types","entry":"index.d.ts","tags":["compiled","types","import"],"engines":false},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"edition-types/index.d.ts","type":"module","main":"index.cjs","exports":{"node":{"types":"./edition-types/index.d.ts","import":"./edition-es2022-esm/index.js","default":"./index.cjs","require":"./edition-es2022/index.js"},"browser":{"types":"./edition-types/index.d.ts","import":"./edition-browsers/browser.js"}},"deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","dependencies":{"editions":"^6.20.0"},"devDependencies":{"@types/node":"^20.10.5","@typescript-eslint/eslint-plugin":"^6.16.0","@typescript-eslint/parser":"^6.16.0","assert-helpers":"^11.11.0","eslint":"^8.56.0","eslint-config-bevry":"^5.3.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.2","kava":"^7.6.0","make-deno-edition":"^2.2.0","prettier":"^3.1.1","projectz":"^4.1.0","typedoc":"^0.25.4","typescript":"5.3.3","valid-directory":"^4.7.0","valid-module":"^2.6.0"},"scripts":{"our:clean":"rm -rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2022 && npm run our:compile:edition-es2022-esm && npm run our:compile:edition-es5 && npm run our:compile:edition-types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2022 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2022":"tsc --module commonjs --target ES2022 --outDir ./edition-es2022 --project tsconfig.json && ( test ! -d edition-es2022/source || ( mv edition-es2022/source edition-temp && rm -rf edition-es2022 && mv edition-temp edition-es2022 ) ) && printf '%s' '{\"type\": \"commonjs\"}' > edition-es2022/package.json","our:compile:edition-es2022-esm":"tsc --module ESNext --target ES2022 --outDir ./edition-es2022-esm --project tsconfig.json && ( test ! -d edition-es2022-esm/source || ( mv edition-es2022-esm/source edition-temp && rm -rf edition-es2022-esm && mv edition-temp edition-es2022-esm ) ) && printf '%s' '{\"type\": \"module\"}' > edition-es2022-esm/package.json","our:compile:edition-es5":"tsc --module commonjs --target ES5 --outDir ./edition-es5 --project tsconfig.json && ( test ! -d edition-es5/source || ( mv edition-es5/source edition-temp && rm -rf edition-es5 && mv edition-temp edition-es5 ) ) && printf '%s' '{\"type\": \"commonjs\"}' > edition-es5/package.json","our:compile:edition-types":"tsc --emitDeclarationOnly --declaration --declarationMap --declarationDir ./edition-types --project tsconfig.json && ( test ! -d edition-types/source || ( mv edition-types/source edition-temp && rm -rf edition-types && mv edition-temp edition-types ) )","our:deploy":"printf '%s\n' 'no need for this project'","our:meta":"npm run our:meta:docs && npm run our:meta:projectz","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -rf ./docs && typedoc --exclude '**/+(*test*|node_modules)' --excludeExternals --out ./docs ./source","our:meta:projectz":"projectz","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep \"v$npm_package_version\" || (printf '%s\n' \"add a changelog entry for v$npm_package_version\" && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (printf '%s\n' 'proper changelog entry not found' && exit -1) && git tag \"v$npm_package_version\" -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./test.cjs"},"boundation":{"dom":true},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true,"trailingComma":"es5","endOfLine":"lf"},"_id":"start-of-week@4.6.0","gitHead":"7f493d33e2e395d3c0e6a362d9aab071d67573ec","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-9nk90oAOc98lyW9ba/Uy/lprfQ7Ez+wmdBTWraIF3r30Q2MNiQ7O6MKCDMgeAvq1cGunPR3DQLuZgenmbZMwmQ==","shasum":"9444680a25d76ceb12e51ce9f074a5dd844fec63","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-4.6.0.tgz","fileCount":42,"unpackedSize":47742,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCziksfDuqDKOCSFW0+DYlZz3nW4EyKx5UAVHkL5SXtmgIhAIRKTNYJ1c93x248C0fda3oXbFGJ+yVxKQFsqpR3ZHaj"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_4.6.0_1703703626503_0.007017794524270871"},"_hasShrinkwrap":false},"4.6.0-next.1703703775.7f493d33e2e395d3c0e6a362d9aab071d67573ec":{"name":"start-of-week","version":"4.6.0-next.1703703775.7f493d33e2e395d3c0e6a362d9aab071d67573ec","license":"Artistic-2.0","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","funding":"https://bevry.me/fund","repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","es2022","es5","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["githubworkflow","npmversion","npmdownloads","---","githubsponsors","thanksdev","patreon","liberapay","buymeacoffee","opencollective","crypto","paypal","---","discord","twitch"],"config":{"githubWorkflow":"bevry","githubSponsorsUsername":"balupton","thanksdevGithubUsername":"bevry","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","discordServerID":"1147436445783560193","discordServerInvite":"nQuXddV7VP","twitchUsername":"balupton","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"author":{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"authors":["Benjamin Lupton <b@lupton.cc> (https://balupton.com) (https://github.com/balupton): Accelerating collaborative wisdom."],"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"}],"sponsors":["Andrew Nesbitt (https://nesbitt.io) (https://github.com/andrew): Software engineer and researcher","Balsa <hello@balsa.com> (https://balsa.com) (https://github.com/balsa): We're Balsa, and we're building tools for builders.","Codecov <hello-codecov@sentry.io> (https://codecov.io/) (https://github.com/codecov): Empower developers with tools to improve code quality and testing.","Poonacha Medappa (https://poonachamedappa.com) (https://github.com/km-Poonacha)","Rob Morris <rob@prismatik.com.au> (https://github.com/Rob-Morris)","Sentry (https://sentry.io) (https://github.com/getsentry): Real-time crash reporting for your web apps, mobile apps, and games.","Syntax <scott@syntax.fm> (https://syntax.fm) (https://github.com/syntaxfm): Syntax Podcast"],"donors":["Andrew Nesbitt (https://nesbitt.io) (https://github.com/andrew)","Balsa <hello@balsa.com> (https://balsa.com) (https://github.com/balsa)","Chad (https://opencollective.com/chad8)","Codecov <hello-codecov@sentry.io> (https://codecov.io/) (https://github.com/codecov)","entroniq (https://gitlab.com/entroniq) (https://thanks.dev/d/gl/entroniq)","Jean-Luc Geering (https://github.com/jlgeering) (https://opencollective.com/jlgeering) (https://twitter.com/jlgeering)","Michael Duane Mooring (https://bevry.me) (https://github.com/mikeumus) (https://opencollective.com/mikeumus) (https://twitter.com/mikeumus)","Mohammed Shah <shah@idk.uno> (https://github.com/smashah) (https://thanks.dev/d/gh/smashah) (https://twitter.com/smashah)","Poonacha Medappa (https://poonachamedappa.com) (https://github.com/km-Poonacha)","Rob Morris <rob@prismatik.com.au> (https://github.com/Rob-Morris)","Sentry (https://sentry.io) (https://github.com/getsentry)","ServieJS (https://github.com/serviejs) (https://thanks.dev/d/gh/serviejs)","Skunk Team (https://skunk.team) (https://github.com/skunkteam)","Syntax <scott@syntax.fm> (https://syntax.fm) (https://github.com/syntaxfm)"],"engines":{"node":">=4"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2022 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ES2022 for Node.js 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules","directory":"edition-es2022","entry":"node.js","tags":["compiled","javascript","es2022","require"],"engines":{"node":"6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21","browsers":false}},{"description":"TypeScript compiled against ES5 for Node.js 4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules","directory":"edition-es5","entry":"node.js","tags":["compiled","javascript","es5","require"],"engines":{"node":"4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21","browsers":false}},{"description":"TypeScript compiled against ES2022 for Node.js 12 || 14 || 16 || 18 || 20 || 21 with Import for modules","directory":"edition-es2022-esm","entry":"node.js","tags":["compiled","javascript","es2022","import"],"engines":{"node":"12 || 14 || 16 || 18 || 20 || 21","browsers":false}},{"description":"TypeScript compiled Types with Import for modules","directory":"edition-types","entry":"index.d.ts","tags":["compiled","types","import"],"engines":false},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"edition-types/index.d.ts","type":"module","main":"index.cjs","exports":{"node":{"types":"./edition-types/index.d.ts","import":"./edition-es2022-esm/index.js","default":"./index.cjs","require":"./edition-es2022/index.js"},"browser":{"types":"./edition-types/index.d.ts","import":"./edition-browsers/browser.js"}},"deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","dependencies":{"editions":"^6.20.0"},"devDependencies":{"@types/node":"^20.10.5","@typescript-eslint/eslint-plugin":"^6.16.0","@typescript-eslint/parser":"^6.16.0","assert-helpers":"^11.11.0","eslint":"^8.56.0","eslint-config-bevry":"^5.3.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.2","kava":"^7.6.0","make-deno-edition":"^2.2.0","prettier":"^3.1.1","projectz":"^4.1.0","typedoc":"^0.25.4","typescript":"5.3.3","valid-directory":"^4.7.0","valid-module":"^2.6.0"},"scripts":{"our:clean":"rm -rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2022 && npm run our:compile:edition-es2022-esm && npm run our:compile:edition-es5 && npm run our:compile:edition-types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2022 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2022":"tsc --module commonjs --target ES2022 --outDir ./edition-es2022 --project tsconfig.json && ( test ! -d edition-es2022/source || ( mv edition-es2022/source edition-temp && rm -rf edition-es2022 && mv edition-temp edition-es2022 ) ) && printf '%s' '{\"type\": \"commonjs\"}' > edition-es2022/package.json","our:compile:edition-es2022-esm":"tsc --module ESNext --target ES2022 --outDir ./edition-es2022-esm --project tsconfig.json && ( test ! -d edition-es2022-esm/source || ( mv edition-es2022-esm/source edition-temp && rm -rf edition-es2022-esm && mv edition-temp edition-es2022-esm ) ) && printf '%s' '{\"type\": \"module\"}' > edition-es2022-esm/package.json","our:compile:edition-es5":"tsc --module commonjs --target ES5 --outDir ./edition-es5 --project tsconfig.json && ( test ! -d edition-es5/source || ( mv edition-es5/source edition-temp && rm -rf edition-es5 && mv edition-temp edition-es5 ) ) && printf '%s' '{\"type\": \"commonjs\"}' > edition-es5/package.json","our:compile:edition-types":"tsc --emitDeclarationOnly --declaration --declarationMap --declarationDir ./edition-types --project tsconfig.json && ( test ! -d edition-types/source || ( mv edition-types/source edition-temp && rm -rf edition-types && mv edition-temp edition-types ) )","our:deploy":"printf '%s\n' 'no need for this project'","our:meta":"npm run our:meta:docs && npm run our:meta:projectz","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -rf ./docs && typedoc --exclude '**/+(*test*|node_modules)' --excludeExternals --out ./docs ./source","our:meta:projectz":"projectz","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep \"v$npm_package_version\" || (printf '%s\n' \"add a changelog entry for v$npm_package_version\" && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (printf '%s\n' 'proper changelog entry not found' && exit -1) && git tag \"v$npm_package_version\" -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./test.cjs"},"boundation":{"dom":true},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true,"trailingComma":"es5","endOfLine":"lf"},"_id":"start-of-week@4.6.0-next.1703703775.7f493d33e2e395d3c0e6a362d9aab071d67573ec","readme":"<!-- TITLE/ -->\n\n# start-of-week\n\n<!-- /TITLE -->\n\n<!-- BADGES/ -->\n\n<span class=\"badge-githubworkflow\"><a href=\"https://github.com/bevry/start-of-week/actions?query=workflow%3Abevry\" title=\"View the status of this project's GitHub Workflow: bevry\"><img src=\"https://github.com/bevry/start-of-week/workflows/bevry/badge.svg\" alt=\"Status of the GitHub Workflow: bevry\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-thanksdev\"><a href=\"https://thanks.dev/u/gh/bevry\" title=\"Donate to this project using ThanksDev\"><img src=\"https://img.shields.io/badge/thanksdev-donate-yellow.svg\" alt=\"ThanksDev donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-discord\"><a href=\"https://discord.gg/nQuXddV7VP\" title=\"Join this project's community on Discord\"><img src=\"https://img.shields.io/discord/1147436445783560193?logo=discord&amp;label=discord\" alt=\"Discord server badge\" /></a></span>\n<span class=\"badge-twitch\"><a href=\"https://www.twitch.tv/balupton\" title=\"Join this project's community on Twitch\"><img src=\"https://img.shields.io/twitch/status/balupton?logo=twitch\" alt=\"Twitch community badge\" /></a></span>\n\n<!-- /BADGES -->\n\n<!-- DESCRIPTION/ -->\n\nTake a locale and return its start of the week (0 = Sunday, 1 = Monday)\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/)\n\n```javascript\nimport getSW from 'start-of-week'\nconsole.log(getSW()) // 0 (Sunday) if user is in North American, otherwise 1 (Monday)\nconsole.log(getSW('')) // 1\nconsole.log(getSW('en_AU')) // 1\nconsole.log(getSW('en_US')) // 0\nconsole.log(getSW('en_CA')) // 0\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n## Install\n\n### [npm](https://npmjs.com \"npm is a package manager for javascript\")\n\n-   Install: `npm install --save start-of-week`\n-   Import: `import pkg from ('start-of-week')`\n-   Require: `const pkg = require('start-of-week').default`\n\n### [Deno](https://deno.land \"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\")\n\n``` typescript\nimport pkg from 'https://unpkg.com/start-of-week@^4.6.0/edition-deno/deno.ts'\n```\n### [Skypack](https://www.skypack.dev \"Skypack is a JavaScript Delivery Network for modern web apps\")\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/start-of-week@^4.6.0'\n</script>\n```\n### [unpkg](https://unpkg.com \"unpkg is a fast, global content delivery network for everything on npm\")\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^4.6.0'\n</script>\n```\n### [jspm](https://jspm.io \"Native ES Modules CDN\")\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@4.6.0'\n</script>\n```\n### [Editions](https://editions.bevry.me \"Editions are the best way to produce and consume packages you care about.\")\n\nThis package is published with the following editions:\n-   `start-of-week` aliases `start-of-week/index.cjs` which uses the [Editions Autoloader](https://github.com/bevry/editions \"You can use the Editions Autoloader to autoload the appropriate edition for your consumers environment\") to automatically select the correct edition for the consumer's environment\n-   `start-of-week/source/index.ts` is [TypeScript](https://www.typescriptlang.org/ \"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript.\") source code with [Import](https://babeljs.io/docs/learn-es2015/#modules \"ECMAScript Modules\") for modules\n-   `start-of-week/edition-browsers/browser.js` is [TypeScript](https://www.typescriptlang.org/ \"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript.\") compiled against [ES2022](https://en.wikipedia.org/wiki/ES2022 \"ECMAScript 2022\") for web browsers with [Import](https://babeljs.io/docs/learn-es2015/#modules \"ECMAScript Modules\") for modules\n-   `start-of-week/edition-es2022/node.js` is [TypeScript](https://www.typescriptlang.org/ \"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript.\") compiled against [ES2022](https://en.wikipedia.org/wiki/ES2022 \"ECMAScript 2022\") for [Node.js](https://nodejs.org \"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\") 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with [Require](https://nodejs.org/dist/latest-v5.x/docs/api/modules.html \"Node/CJS Modules\") for modules\n-   `start-of-week/edition-es5/node.js` is [TypeScript](https://www.typescriptlang.org/ \"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript.\") compiled against ES5 for [Node.js](https://nodejs.org \"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\") 4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with [Require](https://nodejs.org/dist/latest-v5.x/docs/api/modules.html \"Node/CJS Modules\") for modules\n-   `start-of-week/edition-es2022-esm/node.js` is [TypeScript](https://www.typescriptlang.org/ \"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript.\") compiled against [ES2022](https://en.wikipedia.org/wiki/ES2022 \"ECMAScript 2022\") for [Node.js](https://nodejs.org \"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\") 12 || 14 || 16 || 18 || 20 || 21 with [Import](https://babeljs.io/docs/learn-es2015/#modules \"ECMAScript Modules\") for modules\n-   `start-of-week/edition-types/index.d.ts` is [TypeScript](https://www.typescriptlang.org/ \"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript.\") compiled Types with [Import](https://babeljs.io/docs/learn-es2015/#modules \"ECMAScript Modules\") for modules\n-   `start-of-week/edition-deno/deno.ts` is [TypeScript](https://www.typescriptlang.org/ \"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript.\") source code made to be compatible with [Deno](https://deno.land \"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative to Node.js\")\n\n<!-- /INSTALL -->\n\n<!-- HISTORY/ -->\n\n## History\n\n[Discover the release history by heading on over to the `HISTORY.md` file.](https://github.com/bevry/start-of-week/blob/HEAD/HISTORY.md#files)\n\n<!-- /HISTORY -->\n\n<!-- BACKERS/ -->\n\n## Backers\n\n### Code\n\n[Discover how to contribute via the `CONTRIBUTING.md` file.](https://github.com/bevry/start-of-week/blob/HEAD/CONTRIBUTING.md#files)\n\n#### Authors\n\n-   [Benjamin Lupton](https://balupton.com) — Accelerating collaborative wisdom.\n\n#### Maintainers\n\n-   [Benjamin Lupton](https://github.com/balupton) — Accelerating collaborative wisdom.\n\n#### Contributors\n\n-   [Benjamin Lupton](https://github.com/balupton) — [view contributions](https://github.com/bevry/start-of-week/commits?author=balupton \"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\")\n\n### Finances\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-thanksdev\"><a href=\"https://thanks.dev/u/gh/bevry\" title=\"Donate to this project using ThanksDev\"><img src=\"https://img.shields.io/badge/thanksdev-donate-yellow.svg\" alt=\"ThanksDev donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n\n#### Sponsors\n\n-   [Andrew Nesbitt](https://nesbitt.io) — Software engineer and researcher\n-   [Balsa](https://balsa.com) — We're Balsa, and we're building tools for builders.\n-   [Codecov](https://codecov.io/) — Empower developers with tools to improve code quality and testing.\n-   [Poonacha Medappa](https://poonachamedappa.com)\n-   [Rob Morris](https://github.com/Rob-Morris)\n-   [Sentry](https://sentry.io) — Real-time crash reporting for your web apps, mobile apps, and games.\n-   [Syntax](https://syntax.fm) — Syntax Podcast\n\n#### Donors\n\n-   [Andrew Nesbitt](https://nesbitt.io)\n-   [Balsa](https://balsa.com)\n-   [Chad](https://opencollective.com/chad8)\n-   [Codecov](https://codecov.io/)\n-   [entroniq](https://gitlab.com/entroniq)\n-   [Jean-Luc Geering](https://github.com/jlgeering)\n-   [Michael Duane Mooring](https://bevry.me)\n-   [Mohammed Shah](https://github.com/smashah)\n-   [Poonacha Medappa](https://poonachamedappa.com)\n-   [Rob Morris](https://github.com/Rob-Morris)\n-   [Sentry](https://sentry.io)\n-   [ServieJS](https://github.com/serviejs)\n-   [Skunk Team](https://skunk.team)\n-   [Syntax](https://syntax.fm)\n\n<!-- /BACKERS -->\n\n<!-- LICENSE/ -->\n\n## License\n\nUnless stated otherwise all works are:\n\n-   Copyright &copy; [Benjamin Lupton](https://balupton.com)\n\nand licensed under:\n\n-   [Artistic License 2.0](http://spdx.org/licenses/Artistic-2.0.html)\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","gitHead":"7f493d33e2e395d3c0e6a362d9aab071d67573ec","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-8RDqY8zwoHOYmPU0bZsYLTCaKufcIqW5YEicONIDpIa/pOUak50X7V2TEiXHI1508sQgNVS2BTCdsXKliCXEaQ==","shasum":"e5c54244cf46fb6dbb920d0ae3fcb1f23f050c7c","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-4.6.0-next.1703703775.7f493d33e2e395d3c0e6a362d9aab071d67573ec.tgz","fileCount":42,"unpackedSize":47799,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC1LL/049AqrPN9sNgaabXwXICUH1JaOp/PAKwoOsi0TAiBLnHP3OSL12cljaElWsSY+pCzkd3aDkmkAe0tpb193Dg=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_4.6.0-next.1703703775.7f493d33e2e395d3c0e6a362d9aab071d67573ec_1703703776678_0.13566305198229767"},"_hasShrinkwrap":false},"4.7.0-next.1703878030.edf272e71154d6da45fc81c8848ef10772dcb4ca":{"name":"start-of-week","version":"4.7.0-next.1703878030.edf272e71154d6da45fc81c8848ef10772dcb4ca","license":"Artistic-2.0","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","funding":"https://bevry.me/fund","repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","es2022","es5","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["githubworkflow","npmversion","npmdownloads","---","githubsponsors","thanksdev","patreon","liberapay","buymeacoffee","opencollective","crypto","paypal","---","discord","twitch"],"config":{"githubWorkflow":"bevry","githubSponsorsUsername":"balupton","thanksdevGithubUsername":"bevry","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","discordServerID":"1147436445783560193","discordServerInvite":"nQuXddV7VP","twitchUsername":"balupton","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"author":{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"authors":["Benjamin Lupton <b@lupton.cc> (https://balupton.com) (https://github.com/balupton): Accelerating collaborative wisdom."],"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"}],"sponsors":["Andrew Nesbitt (https://nesbitt.io) (https://github.com/andrew): Software engineer and researcher","Balsa <hello@balsa.com> (https://balsa.com) (https://github.com/balsa): We're Balsa, and we're building tools for builders.","Codecov <hello-codecov@sentry.io> (https://codecov.io) (https://github.com/codecov): Empower developers with tools to improve code quality and testing.","Poonacha Medappa (https://poonachamedappa.com) (https://github.com/km-Poonacha)","Rob Morris <rob@prismatik.com.au> (https://github.com/Rob-Morris)","Sentry (https://sentry.io) (https://github.com/getsentry): Real-time crash reporting for your web apps, mobile apps, and games.","Syntax <scott@syntax.fm> (https://syntax.fm) (https://github.com/syntaxfm): Syntax Podcast"],"donors":["Andrew Nesbitt (https://nesbitt.io) (https://github.com/andrew)","Armen Mkrtchian (https://mogoni.dev) (https://github.com/Armenm)","Balsa <hello@balsa.com> (https://balsa.com) (https://github.com/balsa)","Chad (https://opencollective.com/chad8)","Codecov <hello-codecov@sentry.io> (https://codecov.io) (https://github.com/codecov)","dr.dimitru (https://veliovgroup.com) (https://github.com/dr-dimitru)","Elliott Ditman (https://elliottditman.com) (https://github.com/elliottditman)","entroniq (https://gitlab.com/entroniq) (https://thanks.dev/d/gl/entroniq)","GitHub (https://github.com/about) (https://github.com/github)","Hunter Beast (https://cryptoquick.com) (https://github.com/cryptoquick)","Jean-Luc Geering (https://github.com/jlgeering) (https://opencollective.com/jlgeering) (https://twitter.com/jlgeering)","Michael Duane Mooring (https://mdm.cc) (https://github.com/mikeumus) (https://opencollective.com/mikeumus) (https://twitter.com/mikeumus)","Michael Harry Scepaniak <mhs1.sys@gmail.com> (https://michaelscepaniak.com) (https://github.com/hispanic)","Mohammed Shah <shah@idk.uno> (https://github.com/smashah) (https://thanks.dev/d/gh/smashah) (https://twitter.com/smashah)","Mr. Henry <hello@mrhenry.be> (https://mrhenry.be) (https://github.com/mrhenry)","Nermal <nermalcat69@skiff.com> (https://arjunaditya.vercel.app) (https://github.com/nermalcat69)","Pleo (https://pleo.io) (https://github.com/pleo-io)","Poonacha Medappa (https://poonachamedappa.com) (https://github.com/km-Poonacha)","Rob Morris <rob@prismatik.com.au> (https://github.com/Rob-Morris)","Robert de Forest <guitar.robot@gmail.com> (https://github.com/rdeforest)","Sentry (https://sentry.io) (https://github.com/getsentry)","ServieJS (https://github.com/serviejs) (https://thanks.dev/d/gh/serviejs)","Skunk Team (https://skunk.team) (https://github.com/skunkteam)","Syntax <scott@syntax.fm> (https://syntax.fm) (https://github.com/syntaxfm)","WriterJohnBuck (https://github.com/WriterJohnBuck)"],"engines":{"node":">=4"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2022 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ES2022 for Node.js 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules","directory":"edition-es2022","entry":"node.js","tags":["compiled","javascript","es2022","require"],"engines":{"node":"6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21","browsers":false}},{"description":"TypeScript compiled against ES5 for Node.js 4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules","directory":"edition-es5","entry":"node.js","tags":["compiled","javascript","es5","require"],"engines":{"node":"4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21","browsers":false}},{"description":"TypeScript compiled against ES2022 for Node.js 12 || 14 || 16 || 18 || 20 || 21 with Import for modules","directory":"edition-es2022-esm","entry":"node.js","tags":["compiled","javascript","es2022","import"],"engines":{"node":"12 || 14 || 16 || 18 || 20 || 21","browsers":false}},{"description":"TypeScript compiled Types with Import for modules","directory":"edition-types","entry":"index.d.ts","tags":["compiled","types","import"],"engines":false},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"edition-types/index.d.ts","type":"module","main":"index.cjs","exports":{"node":{"types":"./edition-types/index.d.ts","import":"./edition-es2022-esm/index.js","default":"./index.cjs","require":"./edition-es2022/index.js"},"browser":{"types":"./edition-types/index.d.ts","import":"./edition-browsers/browser.js"}},"deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","dependencies":{"editions":"^6.21.0"},"devDependencies":{"@types/node":"^20.10.5","@typescript-eslint/eslint-plugin":"^6.16.0","@typescript-eslint/parser":"^6.16.0","assert-helpers":"^11.12.0","eslint":"^8.56.0","eslint-config-bevry":"^5.3.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.2","kava":"^7.8.0","make-deno-edition":"^2.3.0","prettier":"^3.1.1","projectz":"^4.2.0","typedoc":"^0.25.4","typescript":"5.3.3","valid-directory":"^4.8.0","valid-module":"^2.6.0"},"scripts":{"our:clean":"rm -rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2022 && npm run our:compile:edition-es2022-esm && npm run our:compile:edition-es5 && npm run our:compile:edition-types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2022 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2022":"tsc --module commonjs --target ES2022 --outDir ./edition-es2022 --project tsconfig.json && ( test ! -d edition-es2022/source || ( mv edition-es2022/source edition-temp && rm -rf edition-es2022 && mv edition-temp edition-es2022 ) ) && printf '%s' '{\"type\": \"commonjs\"}' > edition-es2022/package.json","our:compile:edition-es2022-esm":"tsc --module ESNext --target ES2022 --outDir ./edition-es2022-esm --project tsconfig.json && ( test ! -d edition-es2022-esm/source || ( mv edition-es2022-esm/source edition-temp && rm -rf edition-es2022-esm && mv edition-temp edition-es2022-esm ) ) && printf '%s' '{\"type\": \"module\"}' > edition-es2022-esm/package.json","our:compile:edition-es5":"tsc --module commonjs --target ES5 --outDir ./edition-es5 --project tsconfig.json && ( test ! -d edition-es5/source || ( mv edition-es5/source edition-temp && rm -rf edition-es5 && mv edition-temp edition-es5 ) ) && printf '%s' '{\"type\": \"commonjs\"}' > edition-es5/package.json","our:compile:edition-types":"tsc --emitDeclarationOnly --declaration --declarationMap --declarationDir ./edition-types --project tsconfig.json && ( test ! -d edition-types/source || ( mv edition-types/source edition-temp && rm -rf edition-types && mv edition-temp edition-types ) )","our:deploy":"printf '%s\n' 'no need for this project'","our:meta":"npm run our:meta:docs && npm run our:meta:projectz","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -rf ./docs && typedoc --exclude '**/+(*test*|node_modules)' --excludeExternals --out ./docs ./source","our:meta:projectz":"projectz --offline","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep \"v$npm_package_version\" || (printf '%s\n' \"add a changelog entry for v$npm_package_version\" && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (printf '%s\n' 'proper changelog entry not found' && exit -1) && git tag \"v$npm_package_version\" -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./test.cjs"},"boundation":{"dom":true},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true,"trailingComma":"es5","endOfLine":"lf"},"_id":"start-of-week@4.7.0-next.1703878030.edf272e71154d6da45fc81c8848ef10772dcb4ca","readme":"<!-- TITLE/ -->\n\n# start-of-week\n\n<!-- /TITLE -->\n\n<!-- BADGES/ -->\n\n<span class=\"badge-githubworkflow\"><a href=\"https://github.com/bevry/start-of-week/actions?query=workflow%3Abevry\" title=\"View the status of this project's GitHub Workflow: bevry\"><img src=\"https://github.com/bevry/start-of-week/workflows/bevry/badge.svg\" alt=\"Status of the GitHub Workflow: bevry\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-thanksdev\"><a href=\"https://thanks.dev/u/gh/bevry\" title=\"Donate to this project using ThanksDev\"><img src=\"https://img.shields.io/badge/thanksdev-donate-yellow.svg\" alt=\"ThanksDev donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-discord\"><a href=\"https://discord.gg/nQuXddV7VP\" title=\"Join this project's community on Discord\"><img src=\"https://img.shields.io/discord/1147436445783560193?logo=discord&amp;label=discord\" alt=\"Discord server badge\" /></a></span>\n<span class=\"badge-twitch\"><a href=\"https://www.twitch.tv/balupton\" title=\"Join this project's community on Twitch\"><img src=\"https://img.shields.io/twitch/status/balupton?logo=twitch\" alt=\"Twitch community badge\" /></a></span>\n\n<!-- /BADGES -->\n\n<!-- DESCRIPTION/ -->\n\nTake a locale and return its start of the week (0 = Sunday, 1 = Monday)\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/)\n\n```javascript\nimport getSW from 'start-of-week'\nconsole.log(getSW()) // 0 (Sunday) if user is in North American, otherwise 1 (Monday)\nconsole.log(getSW('')) // 1\nconsole.log(getSW('en_AU')) // 1\nconsole.log(getSW('en_US')) // 0\nconsole.log(getSW('en_CA')) // 0\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n## Install\n\n### [npm](https://npmjs.com \"npm is a package manager for javascript\")\n\n-   Install: `npm install --save start-of-week`\n-   Import: `import pkg from ('start-of-week')`\n-   Require: `const pkg = require('start-of-week').default`\n\n### [Deno](https://deno.land \"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\")\n\n``` typescript\nimport pkg from 'https://unpkg.com/start-of-week@^4.7.0/edition-deno/deno.ts'\n```\n### [Skypack](https://www.skypack.dev \"Skypack is a JavaScript Delivery Network for modern web apps\")\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/start-of-week@^4.7.0'\n</script>\n```\n### [unpkg](https://unpkg.com \"unpkg is a fast, global content delivery network for everything on npm\")\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^4.7.0'\n</script>\n```\n### [jspm](https://jspm.io \"Native ES Modules CDN\")\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@4.7.0'\n</script>\n```\n### [Editions](https://editions.bevry.me \"Editions are the best way to produce and consume packages you care about.\")\n\nThis package is published with the following editions:\n-   `start-of-week` aliases `start-of-week/index.cjs` which uses the [Editions Autoloader](https://github.com/bevry/editions \"You can use the Editions Autoloader to autoload the appropriate edition for your consumers environment\") to automatically select the correct edition for the consumer's environment\n-   `start-of-week/source/index.ts` is [TypeScript](https://www.typescriptlang.org/ \"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript.\") source code with [Import](https://babeljs.io/docs/learn-es2015/#modules \"ECMAScript Modules\") for modules\n-   `start-of-week/edition-browsers/browser.js` is [TypeScript](https://www.typescriptlang.org/ \"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript.\") compiled against [ES2022](https://en.wikipedia.org/wiki/ES2022 \"ECMAScript 2022\") for web browsers with [Import](https://babeljs.io/docs/learn-es2015/#modules \"ECMAScript Modules\") for modules\n-   `start-of-week/edition-es2022/node.js` is [TypeScript](https://www.typescriptlang.org/ \"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript.\") compiled against [ES2022](https://en.wikipedia.org/wiki/ES2022 \"ECMAScript 2022\") for [Node.js](https://nodejs.org \"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\") 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with [Require](https://nodejs.org/dist/latest-v5.x/docs/api/modules.html \"Node/CJS Modules\") for modules\n-   `start-of-week/edition-es5/node.js` is [TypeScript](https://www.typescriptlang.org/ \"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript.\") compiled against ES5 for [Node.js](https://nodejs.org \"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\") 4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with [Require](https://nodejs.org/dist/latest-v5.x/docs/api/modules.html \"Node/CJS Modules\") for modules\n-   `start-of-week/edition-es2022-esm/node.js` is [TypeScript](https://www.typescriptlang.org/ \"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript.\") compiled against [ES2022](https://en.wikipedia.org/wiki/ES2022 \"ECMAScript 2022\") for [Node.js](https://nodejs.org \"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\") 12 || 14 || 16 || 18 || 20 || 21 with [Import](https://babeljs.io/docs/learn-es2015/#modules \"ECMAScript Modules\") for modules\n-   `start-of-week/edition-types/index.d.ts` is [TypeScript](https://www.typescriptlang.org/ \"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript.\") compiled Types with [Import](https://babeljs.io/docs/learn-es2015/#modules \"ECMAScript Modules\") for modules\n-   `start-of-week/edition-deno/deno.ts` is [TypeScript](https://www.typescriptlang.org/ \"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript.\") source code made to be compatible with [Deno](https://deno.land \"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative to Node.js\")\n\n<!-- /INSTALL -->\n\n<!-- HISTORY/ -->\n\n## History\n\n[Discover the release history by heading on over to the `HISTORY.md` file.](https://github.com/bevry/start-of-week/blob/HEAD/HISTORY.md#files)\n\n<!-- /HISTORY -->\n\n<!-- BACKERS/ -->\n\n## Backers\n\n### Code\n\n[Discover how to contribute via the `CONTRIBUTING.md` file.](https://github.com/bevry/start-of-week/blob/HEAD/CONTRIBUTING.md#files)\n\n#### Authors\n\n-   [Benjamin Lupton](https://balupton.com) — Accelerating collaborative wisdom.\n\n#### Maintainers\n\n-   [Benjamin Lupton](https://balupton.com) — Accelerating collaborative wisdom.\n\n#### Contributors\n\n-   [Benjamin Lupton](https://github.com/balupton) — [view contributions](https://github.com/bevry/start-of-week/commits?author=balupton \"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\")\n\n### Finances\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-thanksdev\"><a href=\"https://thanks.dev/u/gh/bevry\" title=\"Donate to this project using ThanksDev\"><img src=\"https://img.shields.io/badge/thanksdev-donate-yellow.svg\" alt=\"ThanksDev donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n\n#### Sponsors\n\n-   [Andrew Nesbitt](https://nesbitt.io) — Software engineer and researcher\n-   [Balsa](https://balsa.com) — We're Balsa, and we're building tools for builders.\n-   [Codecov](https://codecov.io) — Empower developers with tools to improve code quality and testing.\n-   [Poonacha Medappa](https://poonachamedappa.com)\n-   [Rob Morris](https://github.com/Rob-Morris)\n-   [Sentry](https://sentry.io) — Real-time crash reporting for your web apps, mobile apps, and games.\n-   [Syntax](https://syntax.fm) — Syntax Podcast\n\n#### Donors\n\n-   [Andrew Nesbitt](https://nesbitt.io)\n-   [Armen Mkrtchian](https://mogoni.dev)\n-   [Balsa](https://balsa.com)\n-   [Chad](https://opencollective.com/chad8)\n-   [Codecov](https://codecov.io)\n-   [dr.dimitru](https://veliovgroup.com)\n-   [Elliott Ditman](https://elliottditman.com)\n-   [entroniq](https://gitlab.com/entroniq)\n-   [GitHub](https://github.com/about)\n-   [Hunter Beast](https://cryptoquick.com)\n-   [Jean-Luc Geering](https://github.com/jlgeering)\n-   [Michael Duane Mooring](https://mdm.cc)\n-   [Michael Harry Scepaniak](https://michaelscepaniak.com)\n-   [Mohammed Shah](https://github.com/smashah)\n-   [Mr. Henry](https://mrhenry.be)\n-   [Nermal](https://arjunaditya.vercel.app)\n-   [Pleo](https://pleo.io)\n-   [Poonacha Medappa](https://poonachamedappa.com)\n-   [Rob Morris](https://github.com/Rob-Morris)\n-   [Robert de Forest](https://github.com/rdeforest)\n-   [Sentry](https://sentry.io)\n-   [ServieJS](https://github.com/serviejs)\n-   [Skunk Team](https://skunk.team)\n-   [Syntax](https://syntax.fm)\n-   [WriterJohnBuck](https://github.com/WriterJohnBuck)\n\n<!-- /BACKERS -->\n\n<!-- LICENSE/ -->\n\n## License\n\nUnless stated otherwise all works are:\n\n-   Copyright &copy; [Benjamin Lupton](https://balupton.com)\n\nand licensed under:\n\n-   [Artistic License 2.0](http://spdx.org/licenses/Artistic-2.0.html)\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md","gitHead":"edf272e71154d6da45fc81c8848ef10772dcb4ca","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-zHsXFWHAcPMHWgJF8EMl3xf5/hyNaXNQnMNnb2LBOXP24aQD4dmoe/VvQhmz78mL5dwCh6c3uxyZ+xa7wUde0Q==","shasum":"b2a7cb885c7dbe4527b76939c1deddc81ad6f0e7","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-4.7.0-next.1703878030.edf272e71154d6da45fc81c8848ef10772dcb4ca.tgz","fileCount":42,"unpackedSize":49172,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCbaC/yayctQxJFXYoOOFpjW9LlXN5gZWDM9Xuw5lblawIgTi3C8+Lj1jqhS5QKM7z/f344oX/D1JAvmYeV+rnCh1A="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_4.7.0-next.1703878030.edf272e71154d6da45fc81c8848ef10772dcb4ca_1703878071903_0.7049722350565033"},"_hasShrinkwrap":false},"4.7.0":{"name":"start-of-week","version":"4.7.0","license":"Artistic-2.0","description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","funding":"https://bevry.me/fund","repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","es2022","es5","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"badges":{"list":["githubworkflow","npmversion","npmdownloads","---","githubsponsors","thanksdev","patreon","liberapay","buymeacoffee","opencollective","crypto","paypal","---","discord","twitch"],"config":{"githubWorkflow":"bevry","githubSponsorsUsername":"balupton","thanksdevGithubUsername":"bevry","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","discordServerID":"1147436445783560193","discordServerInvite":"nQuXddV7VP","twitchUsername":"balupton","githubUsername":"bevry","githubRepository":"start-of-week","githubSlug":"bevry/start-of-week","npmPackageName":"start-of-week"}},"author":{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"authors":["Benjamin Lupton <b@lupton.cc> (https://balupton.com) (https://github.com/balupton): Accelerating collaborative wisdom."],"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"}],"sponsors":["Andrew Nesbitt (https://nesbitt.io) (https://github.com/andrew): Software engineer and researcher","Balsa <hello@balsa.com> (https://balsa.com) (https://github.com/balsa): We're Balsa, and we're building tools for builders.","Codecov <hello-codecov@sentry.io> (https://codecov.io) (https://github.com/codecov): Empower developers with tools to improve code quality and testing.","Poonacha Medappa (https://poonachamedappa.com) (https://github.com/km-Poonacha)","Rob Morris <rob@prismatik.com.au> (https://github.com/Rob-Morris)","Sentry (https://sentry.io) (https://github.com/getsentry): Real-time crash reporting for your web apps, mobile apps, and games.","Syntax <scott@syntax.fm> (https://syntax.fm) (https://github.com/syntaxfm): Syntax Podcast"],"donors":["Andrew Nesbitt (https://nesbitt.io) (https://github.com/andrew)","Armen Mkrtchian (https://mogoni.dev) (https://github.com/Armenm)","Balsa <hello@balsa.com> (https://balsa.com) (https://github.com/balsa)","Chad (https://opencollective.com/chad8)","Codecov <hello-codecov@sentry.io> (https://codecov.io) (https://github.com/codecov)","dr.dimitru (https://veliovgroup.com) (https://github.com/dr-dimitru)","Elliott Ditman (https://elliottditman.com) (https://github.com/elliottditman)","entroniq (https://gitlab.com/entroniq) (https://thanks.dev/d/gl/entroniq)","GitHub (https://github.com/about) (https://github.com/github)","Hunter Beast (https://cryptoquick.com) (https://github.com/cryptoquick)","Jean-Luc Geering (https://github.com/jlgeering) (https://opencollective.com/jlgeering) (https://twitter.com/jlgeering)","Michael Duane Mooring (https://mdm.cc) (https://github.com/mikeumus) (https://opencollective.com/mikeumus) (https://twitter.com/mikeumus)","Michael Harry Scepaniak <mhs1.sys@gmail.com> (https://michaelscepaniak.com) (https://github.com/hispanic)","Mohammed Shah <shah@idk.uno> (https://github.com/smashah) (https://thanks.dev/d/gh/smashah) (https://twitter.com/smashah)","Mr. Henry <hello@mrhenry.be> (https://mrhenry.be) (https://github.com/mrhenry)","Nermal <nermalcat69@skiff.com> (https://arjunaditya.vercel.app) (https://github.com/nermalcat69)","Pleo (https://pleo.io) (https://github.com/pleo-io)","Poonacha Medappa (https://poonachamedappa.com) (https://github.com/km-Poonacha)","Rob Morris <rob@prismatik.com.au> (https://github.com/Rob-Morris)","Robert de Forest <guitar.robot@gmail.com> (https://github.com/rdeforest)","Sentry (https://sentry.io) (https://github.com/getsentry)","ServieJS (https://github.com/serviejs) (https://thanks.dev/d/gh/serviejs)","Skunk Team (https://skunk.team) (https://github.com/skunkteam)","Syntax <scott@syntax.fm> (https://syntax.fm) (https://github.com/syntaxfm)","WriterJohnBuck (https://github.com/WriterJohnBuck)"],"engines":{"node":">=4"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2022 for web browsers with Import for modules","directory":"edition-browsers","entry":"browser.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ES2022 for Node.js 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules","directory":"edition-es2022","entry":"node.js","tags":["compiled","javascript","es2022","require"],"engines":{"node":"6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21","browsers":false}},{"description":"TypeScript compiled against ES5 for Node.js 4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules","directory":"edition-es5","entry":"node.js","tags":["compiled","javascript","es5","require"],"engines":{"node":"4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21","browsers":false}},{"description":"TypeScript compiled against ES2022 for Node.js 12 || 14 || 16 || 18 || 20 || 21 with Import for modules","directory":"edition-es2022-esm","entry":"node.js","tags":["compiled","javascript","es2022","import"],"engines":{"node":"12 || 14 || 16 || 18 || 20 || 21","browsers":false}},{"description":"TypeScript compiled Types with Import for modules","directory":"edition-types","entry":"index.d.ts","tags":["compiled","types","import"],"engines":false},{"description":"TypeScript source code made to be compatible with Deno","directory":"edition-deno","entry":"deno.ts","tags":["typescript","import","deno"],"engines":{"deno":true,"browsers":true}}],"types":"edition-types/index.d.ts","type":"module","main":"index.cjs","exports":{"node":{"types":"./edition-types/index.d.ts","import":"./edition-es2022-esm/index.js","default":"./index.cjs","require":"./edition-es2022/index.js"},"browser":{"types":"./edition-types/index.d.ts","import":"./edition-browsers/browser.js"}},"deno":"edition-deno/deno.ts","browser":"edition-browsers/browser.js","module":"edition-browsers/browser.js","dependencies":{"editions":"^6.21.0"},"devDependencies":{"@types/node":"^20.10.5","@typescript-eslint/eslint-plugin":"^6.16.0","@typescript-eslint/parser":"^6.16.0","assert-helpers":"^11.12.0","eslint":"^8.56.0","eslint-config-bevry":"^5.3.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.2","kava":"^7.8.0","make-deno-edition":"^2.3.0","prettier":"^3.1.1","projectz":"^4.2.0","typedoc":"^0.25.4","typescript":"5.3.3","valid-directory":"^4.8.0","valid-module":"^2.6.0"},"scripts":{"our:clean":"rm -rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2022 && npm run our:compile:edition-es2022-esm && npm run our:compile:edition-es5 && npm run our:compile:edition-types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2022 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2022":"tsc --module commonjs --target ES2022 --outDir ./edition-es2022 --project tsconfig.json && ( test ! -d edition-es2022/source || ( mv edition-es2022/source edition-temp && rm -rf edition-es2022 && mv edition-temp edition-es2022 ) ) && printf '%s' '{\"type\": \"commonjs\"}' > edition-es2022/package.json","our:compile:edition-es2022-esm":"tsc --module ESNext --target ES2022 --outDir ./edition-es2022-esm --project tsconfig.json && ( test ! -d edition-es2022-esm/source || ( mv edition-es2022-esm/source edition-temp && rm -rf edition-es2022-esm && mv edition-temp edition-es2022-esm ) ) && printf '%s' '{\"type\": \"module\"}' > edition-es2022-esm/package.json","our:compile:edition-es5":"tsc --module commonjs --target ES5 --outDir ./edition-es5 --project tsconfig.json && ( test ! -d edition-es5/source || ( mv edition-es5/source edition-temp && rm -rf edition-es5 && mv edition-temp edition-es5 ) ) && printf '%s' '{\"type\": \"commonjs\"}' > edition-es5/package.json","our:compile:edition-types":"tsc --emitDeclarationOnly --declaration --declarationMap --declarationDir ./edition-types --project tsconfig.json && ( test ! -d edition-types/source || ( mv edition-types/source edition-temp && rm -rf edition-types && mv edition-temp edition-types ) )","our:deploy":"printf '%s\n' 'no need for this project'","our:meta":"npm run our:meta:docs && npm run our:meta:projectz","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -rf ./docs && typedoc --exclude '**/+(*test*|node_modules)' --excludeExternals --out ./docs ./source","our:meta:projectz":"projectz --offline","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep \"v$npm_package_version\" || (printf '%s\n' \"add a changelog entry for v$npm_package_version\" && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (printf '%s\n' 'proper changelog entry not found' && exit -1) && git tag \"v$npm_package_version\" -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./test.cjs"},"boundation":{"dom":true},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true,"trailingComma":"es5","endOfLine":"lf"},"_id":"start-of-week@4.7.0","gitHead":"edf272e71154d6da45fc81c8848ef10772dcb4ca","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-5gGSN+f3NoIWW1l4+Pg656G2iuDA6ZWsgqUrv7nD9YgGY8fteJR0AjCufmVraGmzjXY3/l9GB6EXNLw4TWPAFg==","shasum":"63733799be498cb6401d5bf39d59139e72ce7e1d","tarball":"https://registry.npmjs.org/start-of-week/-/start-of-week-4.7.0.tgz","fileCount":42,"unpackedSize":49115,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCB0YBSugvY8huietGsb2HFDWWVKgIB86zqPZMyYGuAGgIgOHCGQEGGKssShah/zPuCNFd0CqI7gDsuS0Wxq+EgC2M="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/start-of-week_4.7.0_1703878137641_0.8426038598403138"},"_hasShrinkwrap":false}},"time":{"created":"2019-03-12T12:22:14.428Z","1.0.0":"2019-03-12T12:22:14.737Z","modified":"2023-12-29T19:28:57.994Z","1.1.0":"2019-05-13T06:34:09.118Z","1.2.0-next.1573631586.167842fea80428f3e0ee6e1c9e789775e574cb50":"2019-11-13T07:53:08.577Z","1.2.0":"2019-11-13T07:55:48.742Z","1.2.0-next.1573737908.82c5c7ac7a682f2528bbd3fb33f66a06a9bc15f1":"2019-11-14T13:25:09.975Z","1.2.0-next.1573811655.2d0b9dbd4eab7c6ed03f287c12fe115422711c51":"2019-11-15T09:54:18.072Z","1.3.0-next.1574059127.73dd742685eaf1912fa68fa19a361aab5b0049c5":"2019-11-18T06:38:48.166Z","1.3.0":"2019-11-18T06:40:07.323Z","1.4.0-next.1575155180.7c67926b0995fbcfd5b5a7d695e3e0a50e2fe9f2":"2019-11-30T23:06:22.499Z","1.4.0":"2019-11-30T23:07:49.216Z","1.5.0-next.1575219228.f6e9365054b29146c4a2a9fd99a0418b4a5ac7dd":"2019-12-01T16:53:49.601Z","1.5.0":"2019-12-01T16:54:50.484Z","1.6.0-next.1575920545.b166a10357792cfaa27e3a14f3335a836cc42c3b":"2019-12-09T19:42:26.503Z","1.6.0":"2019-12-09T19:43:33.452Z","1.6.0-next.1575920627.32304bbdf2237f2b0dba4d0c24deab013e77f014":"2019-12-09T19:43:49.050Z","1.6.0-next.1576090822.a3e1229f2f9fe3aacb3b6e3c84385fb89e6d5ca6":"2019-12-11T19:00:23.853Z","1.7.0-next.1576624377.61ff0d5fa5abb9217b616818e8ebc63245f30059":"2019-12-17T23:12:58.814Z","1.7.0":"2019-12-17T23:14:12.740Z","1.8.0-next.1589194819.27a4a46f82d3c4aee2c03f98cb2c3ede84de5b13":"2020-05-11T11:00:21.287Z","1.8.0":"2020-05-11T11:01:31.328Z","1.9.0-next.1589246422.8e5a3aed0f6b422e2e4cf00928c83e26151cc6d6":"2020-05-12T01:20:24.172Z","1.9.0":"2020-05-12T01:21:44.305Z","2.0.0-next.1590009407.3543b4bb189038a009dd9e809d55cf95fe8fd161":"2020-05-20T21:16:49.129Z","2.0.0":"2020-05-20T21:18:06.894Z","2.1.0-next.1590065071.27327b462ece13651eebab4a528b5265bc3216ed":"2020-05-21T12:44:32.851Z","2.1.0":"2020-05-21T12:45:58.239Z","2.2.0-next.1590082239.fe2890830ea2b6badcbf7b170bcfacc88d8c1383":"2020-05-21T17:30:41.061Z","2.2.0":"2020-05-21T17:32:02.471Z","2.3.0-next.1591786699.78fc3efe948454350698099c12f59cc8442c0fb5":"2020-06-10T10:58:20.956Z","2.3.0":"2020-06-10T10:59:43.314Z","2.4.0-next.1591802644.959978a1476ef42a907f179abb88a4e61cd4d414":"2020-06-10T15:24:05.535Z","2.4.0":"2020-06-10T15:25:19.183Z","2.5.0-next.1592611681.a7f0d9fb90cf7ba761875ad8618f677410589d07":"2020-06-20T00:08:03.206Z","2.5.0":"2020-06-20T00:09:10.702Z","2.6.0-next.1592646877.16bbc79adc2c3860cf57b6306466a6d0db714f75":"2020-06-20T09:54:39.151Z","2.6.0":"2020-06-20T09:55:58.949Z","2.7.0-next.1592729367.ee9af199fee1f19ab36904d7f3317967fa0c9cd7":"2020-06-21T08:49:29.275Z","2.7.0":"2020-06-21T08:50:46.765Z","2.8.0-next.1592764918.7f4479276d515c81ddba300037d6cb02e033feda":"2020-06-21T18:42:00.360Z","2.8.0":"2020-06-21T18:43:17.956Z","3.0.0-next.1593050801.7f5adf28eb26de9e76e32eb28b1c1cdcd7c37c56":"2020-06-25T02:06:43.324Z","3.0.0":"2020-06-25T02:07:48.516Z","3.1.0-next.1593060730.40a0267daecadec1f8744b1f3b8202d904ff63b4":"2020-06-25T04:52:12.039Z","3.1.0":"2020-06-25T04:53:50.477Z","3.2.0-next.1595451713.84a1bc9d55a4922542dffd47914868246a9ff66b":"2020-07-22T21:01:55.248Z","3.2.0":"2020-07-22T21:03:22.970Z","3.3.0-next.1596523709.4369376e2828749b4debb622f7d9c920177acc2f":"2020-08-04T06:48:30.504Z","3.3.0":"2020-08-04T06:49:48.787Z","3.4.0-next.1597702086.ace5a5142f757305a5a3f4c6f0e54da992792ad3":"2020-08-17T22:08:07.943Z","3.4.0-next.1597702165.9c09f00055bf1055a051dbed18e5a8ebab009a87":"2020-08-17T22:09:27.468Z","3.4.0":"2020-08-17T22:09:41.788Z","3.4.0-next.1597702243.ae73d3a79a8565eac60518d131df5005fd75c7cd":"2020-08-17T22:10:44.563Z","3.4.0-next.1597702268.97efbaf2f474a1ef7d81af3447ea6d6b58137590":"2020-08-17T22:11:10.348Z","3.4.0-next.1598184210.36cdf90fd3053a2f06ebca7acccc1b3fe394611b":"2020-08-23T12:03:31.653Z","3.4.0-next.1598187130.15d1af863b78e8861c9d1ca9d7f5796230a74e71":"2020-08-23T12:52:12.012Z","3.4.0-next.1598188023.3778f08c94f82bdeb72faae6c77307b623359c22":"2020-08-23T13:07:04.843Z","3.4.0-next.1598189124.b3597f7b7c569b16eab99b4be83bcde80a9999bb":"2020-08-23T13:25:26.498Z","3.4.0-next.1598779463.67ae4213db8439907f063e1e897ca22789813db3":"2020-08-30T09:24:24.637Z","3.4.0-next.1598780842.3e9c15623485a6fde4500d875161bef249b372cf":"2020-08-30T09:47:23.394Z","3.4.0-next.1598781651.1b8b4d8cfb0142acbd9bc735ed886a4083f24937":"2020-08-30T10:00:53.297Z","3.4.0-next.1599075419.23c4d0e8e8b093eeb2d17a96e0958d6243ff0909":"2020-09-02T19:37:00.933Z","3.5.0-next.1599281306.08a0e240bd214d0b3c5f6edbc5a2392fbfe3d16a":"2020-09-05T04:48:27.607Z","3.5.0":"2020-09-05T04:49:50.613Z","3.5.0-next.1599392962.5afca68cd5085d20079af863922e0b49b4f40c47":"2020-09-06T11:49:24.206Z","3.5.0-next.1599393504.2b4b4462883c153b1a1e80e80ceeae62ce05660d":"2020-09-06T11:58:25.729Z","3.5.0-next.1599394702.0d68eebb1af7ef381017c9eed3963365c3eb7209":"2020-09-06T12:18:23.666Z","3.5.0-next.1599989953.c800f1ddb0fa9051b3164bb94c2be545112d2f61":"2020-09-13T09:39:14.826Z","3.5.0-next.1599992430.e477d8988feae14afecbe7d649fe67d29371aae0":"2020-09-13T10:20:32.675Z","3.5.0-next.1599995383.12c864efbc2bf9af2b96d0434e38417162dea3bb":"2020-09-13T11:09:44.542Z","3.5.0-next.1600598216.1e867f50b7dec84610958cbd2d2b70a06d42ffca":"2020-09-20T10:36:57.937Z","3.5.0-next.1600598853.d78ebcd2fb67bdeb3510cf331c3708738415d81d":"2020-09-20T10:47:35.052Z","3.5.0-next.1600605912.e749faf5cba4f1eddae5cdc33e71e7758c6982cd":"2020-09-20T12:45:13.729Z","3.5.0-next.1601204747.4aa4533765bd40f9ef3ef2474b670202b19be19e":"2020-09-27T11:05:48.910Z","3.5.0-next.1601206325.8cea5be5e6e9c7b54bf602d721d1d47edd5ad0af":"2020-09-27T11:32:07.065Z","3.5.0-next.1601207982.b6a0887af7c7032efb8bde3b9f44530c449ac45d":"2020-09-27T11:59:44.058Z","3.5.0-next.1601213816.23edbd22e1ab6777d0497499579eb9f5d23f17b8":"2020-09-27T13:36:58.382Z","3.5.0-next.1601216256.93aeb9c357bad6c8b7e1e8cfd7a0d3709a934638":"2020-09-27T14:17:37.667Z","3.5.0-next.1601797068.6c50a361fa2333d456ca23f062bf9716b76b0150":"2020-10-04T07:37:50.371Z","3.5.0-next.1601798119.1fd8724e04e2d58ebfb50fd1a62a592fd7509cd0":"2020-10-04T07:55:20.651Z","3.5.0-next.1602405186.d9669b9d1197a15ea63eef34fe821f08559d7df3":"2020-10-11T08:33:07.732Z","3.5.0-next.1602406350.49b56215b2cfeee9f1e81a320ac68f418852f97d":"2020-10-11T08:52:31.671Z","3.5.0-next.1602407621.35af51367df7c827c7714c4f5fc6735fc46a6e7a":"2020-10-11T09:13:42.918Z","3.5.0-next.1603014488.9a5af8fad4b16c5c432999984247585138a7ba6f":"2020-10-18T09:48:10.112Z","3.5.0-next.1603014906.8b0dd7aa8c0f644f56b617cf61d7e127e95924b3":"2020-10-18T09:55:08.328Z","3.5.0-next.1603018997.0e72c5f6a282df1e7634abc18801852230b1cbb7":"2020-10-18T11:03:18.512Z","3.5.0-next.1603620603.14763abb28dee798ec66a624eac7be58e7ddb953":"2020-10-25T10:10:05.245Z","3.5.0-next.1603621650.169fa4584531318a45d733e881f3a1bce5ab3fc1":"2020-10-25T10:27:31.803Z","3.5.0-next.1603629939.e5347dd2ae67f9bf4622b7dea37180c23da049f5":"2020-10-25T12:45:41.081Z","3.5.0-next.1603631843.3694b5595783c8d9c4156349b4db7ef9ec133605":"2020-10-25T13:17:25.147Z","3.6.0-next.1603942939.f8f878fc862e20430aa1d7192238d9551db24581":"2020-10-29T03:42:21.715Z","3.6.0":"2020-10-29T03:42:33.587Z","3.6.0-next.1604234669.f2feb89515bd9450837497b70c70db5cce34b0ec":"2020-11-01T12:44:31.269Z","3.6.0-next.1604234769.c406c9dff133d59ee0dc7302dbddb5ffad697ca4":"2020-11-01T12:46:10.626Z","3.6.0-next.1604234874.19e9abcd806f969fac8ca177e590f6600f4a6676":"2020-11-01T12:47:56.102Z","3.7.0-next.1627431380.1b24f144d4855d5280b15e55b312ebfe38c81840":"2021-07-28T00:16:21.791Z","3.7.0":"2021-07-28T00:17:28.653Z","3.8.0-next.1627672715.24fc0aceb8d8b327392606470c848ccdeb0700d6":"2021-07-30T19:18:37.270Z","3.8.0":"2021-07-30T19:19:20.849Z","3.8.2":"2023-03-01T02:39:21.926Z","3.8.2-next.1677638370.762def177f50c7fbd09922c2103ee46963d2becf":"2023-03-01T02:39:31.887Z","3.9.0-next.1698928756.71381a768fb0ac69fcdc358a812ff67fddfc7157":"2023-11-02T12:39:18.438Z","3.9.0":"2023-11-02T12:40:38.816Z","4.0.0-next.1699896585.caebfd2d4fe88fc034ff5378af2dab1e25c7561c":"2023-11-13T17:29:51.856Z","4.0.0":"2023-11-13T17:30:00.898Z","4.1.0-next.1699958729.7b0c45404c1b9b39f2c3b129656b69ccb06bcad6":"2023-11-14T10:45:31.012Z","4.1.0":"2023-11-14T10:45:49.808Z","4.2.0":"2023-11-15T07:40:49.142Z","4.2.0-next.1700034067.79c9f3470b864d159f0ac15a0f818bbb8e10b5d6":"2023-11-15T07:41:09.200Z","4.3.0":"2023-11-21T13:32:28.307Z","4.3.0-next.1700573548.3265030e51427a3a6c5557722f2e66b227129a6c":"2023-11-21T13:32:30.380Z","4.4.0":"2023-11-24T21:46:48.672Z","4.4.0-next.1700862408.c9520f7c9b852c3ed90541d1267686958a5ece14":"2023-11-24T21:46:50.258Z","4.5.0":"2023-12-06T01:42:03.106Z","4.5.0-next.1701826921.dcea017bc47380a578ee5f76fbf65fdbcae6662c":"2023-12-06T01:43:05.895Z","4.6.0":"2023-12-27T19:00:26.758Z","4.6.0-next.1703703775.7f493d33e2e395d3c0e6a362d9aab071d67573ec":"2023-12-27T19:02:56.918Z","4.7.0-next.1703878030.edf272e71154d6da45fc81c8848ef10772dcb4ca":"2023-12-29T19:27:52.128Z","4.7.0":"2023-12-29T19:28:57.792Z"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"description":"Take a locale and return its start of the week (0 = Sunday, 1 = Monday)","homepage":"https://github.com/bevry/start-of-week","keywords":["allow-env","browser","daet","date","day","deno","deno-edition","deno-entry","denoland","dom","es2022","es5","export-default","locale","module","node","number","start","startweek","typed","types","typescript","week"],"repository":{"type":"git","url":"git+https://github.com/bevry/start-of-week.git"},"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"}],"author":{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"bugs":{"url":"https://github.com/bevry/start-of-week/issues"},"license":"Artistic-2.0","readme":"<!-- TITLE/ -->\n\n# start-of-week\n\n<!-- /TITLE -->\n\n<!-- BADGES/ -->\n\n<span class=\"badge-githubworkflow\"><a href=\"https://github.com/bevry/start-of-week/actions?query=workflow%3Abevry\" title=\"View the status of this project's GitHub Workflow: bevry\"><img src=\"https://github.com/bevry/start-of-week/workflows/bevry/badge.svg\" alt=\"Status of the GitHub Workflow: bevry\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/start-of-week.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/start-of-week\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/start-of-week.svg\" alt=\"NPM downloads\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-thanksdev\"><a href=\"https://thanks.dev/u/gh/bevry\" title=\"Donate to this project using ThanksDev\"><img src=\"https://img.shields.io/badge/thanksdev-donate-yellow.svg\" alt=\"ThanksDev donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-discord\"><a href=\"https://discord.gg/nQuXddV7VP\" title=\"Join this project's community on Discord\"><img src=\"https://img.shields.io/discord/1147436445783560193?logo=discord&amp;label=discord\" alt=\"Discord server badge\" /></a></span>\n<span class=\"badge-twitch\"><a href=\"https://www.twitch.tv/balupton\" title=\"Join this project's community on Twitch\"><img src=\"https://img.shields.io/twitch/status/balupton?logo=twitch\" alt=\"Twitch community badge\" /></a></span>\n\n<!-- /BADGES -->\n\n<!-- DESCRIPTION/ -->\n\nTake a locale and return its start of the week (0 = Sunday, 1 = Monday)\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.start-of-week.bevry.surge.sh/docs/)\n\n```javascript\nimport getSW from 'start-of-week'\nconsole.log(getSW()) // 0 (Sunday) if user is in North American, otherwise 1 (Monday)\nconsole.log(getSW('')) // 1\nconsole.log(getSW('en_AU')) // 1\nconsole.log(getSW('en_US')) // 0\nconsole.log(getSW('en_CA')) // 0\n```\n\nIf you want something comprehensive, use [gamtiq/weekstart](https://github.com/gamtiq/weekstart) instead.\n\n<!-- INSTALL/ -->\n\n## Install\n\n### [npm](https://npmjs.com \"npm is a package manager for javascript\")\n\n-   Install: `npm install --save start-of-week`\n-   Import: `import pkg from ('start-of-week')`\n-   Require: `const pkg = require('start-of-week').default`\n\n### [Deno](https://deno.land \"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js\")\n\n``` typescript\nimport pkg from 'https://unpkg.com/start-of-week@^4.7.0/edition-deno/deno.ts'\n```\n### [Skypack](https://www.skypack.dev \"Skypack is a JavaScript Delivery Network for modern web apps\")\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/start-of-week@^4.7.0'\n</script>\n```\n### [unpkg](https://unpkg.com \"unpkg is a fast, global content delivery network for everything on npm\")\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/start-of-week@^4.7.0'\n</script>\n```\n### [jspm](https://jspm.io \"Native ES Modules CDN\")\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/start-of-week@4.7.0'\n</script>\n```\n### [Editions](https://editions.bevry.me \"Editions are the best way to produce and consume packages you care about.\")\n\nThis package is published with the following editions:\n-   `start-of-week` aliases `start-of-week/index.cjs` which uses the [Editions Autoloader](https://github.com/bevry/editions \"You can use the Editions Autoloader to autoload the appropriate edition for your consumers environment\") to automatically select the correct edition for the consumer's environment\n-   `start-of-week/source/index.ts` is [TypeScript](https://www.typescriptlang.org/ \"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript.\") source code with [Import](https://babeljs.io/docs/learn-es2015/#modules \"ECMAScript Modules\") for modules\n-   `start-of-week/edition-browsers/browser.js` is [TypeScript](https://www.typescriptlang.org/ \"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript.\") compiled against [ES2022](https://en.wikipedia.org/wiki/ES2022 \"ECMAScript 2022\") for web browsers with [Import](https://babeljs.io/docs/learn-es2015/#modules \"ECMAScript Modules\") for modules\n-   `start-of-week/edition-es2022/node.js` is [TypeScript](https://www.typescriptlang.org/ \"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript.\") compiled against [ES2022](https://en.wikipedia.org/wiki/ES2022 \"ECMAScript 2022\") for [Node.js](https://nodejs.org \"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\") 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with [Require](https://nodejs.org/dist/latest-v5.x/docs/api/modules.html \"Node/CJS Modules\") for modules\n-   `start-of-week/edition-es5/node.js` is [TypeScript](https://www.typescriptlang.org/ \"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript.\") compiled against ES5 for [Node.js](https://nodejs.org \"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\") 4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with [Require](https://nodejs.org/dist/latest-v5.x/docs/api/modules.html \"Node/CJS Modules\") for modules\n-   `start-of-week/edition-es2022-esm/node.js` is [TypeScript](https://www.typescriptlang.org/ \"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript.\") compiled against [ES2022](https://en.wikipedia.org/wiki/ES2022 \"ECMAScript 2022\") for [Node.js](https://nodejs.org \"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\") 12 || 14 || 16 || 18 || 20 || 21 with [Import](https://babeljs.io/docs/learn-es2015/#modules \"ECMAScript Modules\") for modules\n-   `start-of-week/edition-types/index.d.ts` is [TypeScript](https://www.typescriptlang.org/ \"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript.\") compiled Types with [Import](https://babeljs.io/docs/learn-es2015/#modules \"ECMAScript Modules\") for modules\n-   `start-of-week/edition-deno/deno.ts` is [TypeScript](https://www.typescriptlang.org/ \"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript.\") source code made to be compatible with [Deno](https://deno.land \"Deno is a secure runtime for JavaScript and TypeScript, it is an alternative to Node.js\")\n\n<!-- /INSTALL -->\n\n<!-- HISTORY/ -->\n\n## History\n\n[Discover the release history by heading on over to the `HISTORY.md` file.](https://github.com/bevry/start-of-week/blob/HEAD/HISTORY.md#files)\n\n<!-- /HISTORY -->\n\n<!-- BACKERS/ -->\n\n## Backers\n\n### Code\n\n[Discover how to contribute via the `CONTRIBUTING.md` file.](https://github.com/bevry/start-of-week/blob/HEAD/CONTRIBUTING.md#files)\n\n#### Authors\n\n-   [Benjamin Lupton](https://balupton.com) — Accelerating collaborative wisdom.\n\n#### Maintainers\n\n-   [Benjamin Lupton](https://balupton.com) — Accelerating collaborative wisdom.\n\n#### Contributors\n\n-   [Benjamin Lupton](https://github.com/balupton) — [view contributions](https://github.com/bevry/start-of-week/commits?author=balupton \"View the GitHub contributions of Benjamin Lupton on repository bevry/start-of-week\")\n\n### Finances\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-thanksdev\"><a href=\"https://thanks.dev/u/gh/bevry\" title=\"Donate to this project using ThanksDev\"><img src=\"https://img.shields.io/badge/thanksdev-donate-yellow.svg\" alt=\"ThanksDev donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n\n#### Sponsors\n\n-   [Andrew Nesbitt](https://nesbitt.io) — Software engineer and researcher\n-   [Balsa](https://balsa.com) — We're Balsa, and we're building tools for builders.\n-   [Codecov](https://codecov.io) — Empower developers with tools to improve code quality and testing.\n-   [Poonacha Medappa](https://poonachamedappa.com)\n-   [Rob Morris](https://github.com/Rob-Morris)\n-   [Sentry](https://sentry.io) — Real-time crash reporting for your web apps, mobile apps, and games.\n-   [Syntax](https://syntax.fm) — Syntax Podcast\n\n#### Donors\n\n-   [Andrew Nesbitt](https://nesbitt.io)\n-   [Armen Mkrtchian](https://mogoni.dev)\n-   [Balsa](https://balsa.com)\n-   [Chad](https://opencollective.com/chad8)\n-   [Codecov](https://codecov.io)\n-   [dr.dimitru](https://veliovgroup.com)\n-   [Elliott Ditman](https://elliottditman.com)\n-   [entroniq](https://gitlab.com/entroniq)\n-   [GitHub](https://github.com/about)\n-   [Hunter Beast](https://cryptoquick.com)\n-   [Jean-Luc Geering](https://github.com/jlgeering)\n-   [Michael Duane Mooring](https://mdm.cc)\n-   [Michael Harry Scepaniak](https://michaelscepaniak.com)\n-   [Mohammed Shah](https://github.com/smashah)\n-   [Mr. Henry](https://mrhenry.be)\n-   [Nermal](https://arjunaditya.vercel.app)\n-   [Pleo](https://pleo.io)\n-   [Poonacha Medappa](https://poonachamedappa.com)\n-   [Rob Morris](https://github.com/Rob-Morris)\n-   [Robert de Forest](https://github.com/rdeforest)\n-   [Sentry](https://sentry.io)\n-   [ServieJS](https://github.com/serviejs)\n-   [Skunk Team](https://skunk.team)\n-   [Syntax](https://syntax.fm)\n-   [WriterJohnBuck](https://github.com/WriterJohnBuck)\n\n<!-- /BACKERS -->\n\n<!-- LICENSE/ -->\n\n## License\n\nUnless stated otherwise all works are:\n\n-   Copyright &copy; [Benjamin Lupton](https://balupton.com)\n\nand licensed under:\n\n-   [Artistic License 2.0](http://spdx.org/licenses/Artistic-2.0.html)\n\n<!-- /LICENSE -->\n\n\n```\n\n```\n","readmeFilename":"README.md"}