{"id":28164010,"url":"https://github.com/patrickpissurno/date-fns-extras","last_synced_at":"2026-05-18T06:37:47.188Z","repository":{"id":59246328,"uuid":"536180986","full_name":"patrickpissurno/date-fns-extras","owner":"patrickpissurno","description":"Some extra utilities not found in date-fns","archived":false,"fork":false,"pushed_at":"2022-09-13T16:47:22.000Z","size":145,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-25T14:23:27.240Z","etag":null,"topics":["date","date-fns","extended","extras","helper","minute","nodejs","utils"],"latest_commit_sha":null,"homepage":"http://npm.im/date-fns-extras","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/patrickpissurno.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-09-13T15:03:42.000Z","updated_at":"2022-09-13T16:36:15.000Z","dependencies_parsed_at":"2022-09-14T18:50:28.158Z","dependency_job_id":null,"html_url":"https://github.com/patrickpissurno/date-fns-extras","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/patrickpissurno/date-fns-extras","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickpissurno%2Fdate-fns-extras","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickpissurno%2Fdate-fns-extras/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickpissurno%2Fdate-fns-extras/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickpissurno%2Fdate-fns-extras/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/patrickpissurno","download_url":"https://codeload.github.com/patrickpissurno/date-fns-extras/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickpissurno%2Fdate-fns-extras/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33167809,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T05:43:36.989Z","status":"ssl_error","status_checked_at":"2026-05-18T05:43:19.133Z","response_time":71,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["date","date-fns","extended","extras","helper","minute","nodejs","utils"],"created_at":"2025-05-15T11:14:57.784Z","updated_at":"2026-05-18T06:37:47.164Z","avatar_url":"https://github.com/patrickpissurno.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# date-fns-extras\n[![npm-version](https://img.shields.io/npm/v/date-fns-extras.svg)](https://www.npmjs.com/package/date-fns-extras)\n[![coverage status](https://coveralls.io/repos/github/patrickpissurno/date-fns-extras/badge.svg?branch=main)](https://coveralls.io/github/patrickpissurno/date-fns-extras?branch=main)\n[![known vulnerabilities](https://snyk.io/test/github/patrickpissurno/date-fns-extras/badge.svg)](https://snyk.io/test/github/patrickpissurno/date-fns-extras)\n[![downloads](https://img.shields.io/npm/dt/date-fns-extras.svg)](https://www.npmjs.com/package/date-fns-extras)\n[![license](https://img.shields.io/github/license/patrickpissurno/date-fns-extras.svg?maxAge=1800)](https://github.com/patrickpissurno/date-fns-extras/blob/main/LICENSE)\n\nSome extra utilities not found in date-fns\n\n## Install\n\n```\nnpm i date-fns-extras\n```\n\n## How to import\n\n```js\nconst addBusinessMinutes = require('date-fns-extras/addBusinessMinutes');\n// or\nconst { addBusinessMinutes } = require('date-fns-extras');\n// or\nconst addBusinessMinutes = require('date-fns-extras').addBusinessMinutes;\n// or\nimport { addBusinessMinutes } from 'date-fns-extras';\n```\n\n## addBusinessMinutes(date, minutes, opts = { start: 9, end: 17 })\n\n```js\nconst parse = require('date-fns/parse');\nconst addBusinessMinutes = require('date-fns-extras/addBusinessMinutes');\n\nconst date = parse('2022-09-02 16:30:00', 'yyyy-MM-dd HH:mm:ss', new Date());\nconsole.log(addBusinessMinutes(date, 32));\n// 2022-09-05 09:02:00\n```\n\nThe `start` and the `end` options allow the working hours to be specified. By default: 9am to 5pm.\nIt doesn't take breaks (eg. lunch) into account, keep that in mind.\n\n## Production-ready?\nYes. This library has a strict 100% coverage policy. Tests are run for every commit to ensure safety.\n\n## License\n\nMIT License\n\nCopyright (c) 2022 Patrick Pissurno\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrickpissurno%2Fdate-fns-extras","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatrickpissurno%2Fdate-fns-extras","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrickpissurno%2Fdate-fns-extras/lists"}