{"id":32259223,"url":"https://github.com/nicompte/edtfy","last_synced_at":"2025-10-22T19:59:39.183Z","repository":{"id":1084756,"uuid":"39343774","full_name":"nicompte/edtfy","owner":"nicompte","description":"Javascript date parser","archived":false,"fork":false,"pushed_at":"2022-12-08T15:15:26.000Z","size":1721,"stargazers_count":10,"open_issues_count":22,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-22T19:59:32.861Z","etag":null,"topics":["date","edtf","javascript","parser"],"latest_commit_sha":null,"homepage":"https://edtfy.barbotte.net","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/nicompte.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-19T18:13:44.000Z","updated_at":"2024-02-25T08:05:02.000Z","dependencies_parsed_at":"2022-08-16T12:00:27.148Z","dependency_job_id":null,"html_url":"https://github.com/nicompte/edtfy","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/nicompte/edtfy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicompte%2Fedtfy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicompte%2Fedtfy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicompte%2Fedtfy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicompte%2Fedtfy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nicompte","download_url":"https://codeload.github.com/nicompte/edtfy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicompte%2Fedtfy/sbom","scorecard":{"id":686243,"data":{"date":"2025-08-11","repo":{"name":"github.com/nicompte/edtfy","commit":"5158dc80022a30413843833629569879c66c7e8d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/13 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: MIT License: LICENSE.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 18 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"68 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-6chw-6frg-f759","Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-42xw-2xvc-qx8m","Warn: Project is vulnerable to: GHSA-4w2v-q235-vp99","Warn: Project is vulnerable to: GHSA-cph5-m8f7-6c5x","Warn: Project is vulnerable to: GHSA-wf5p-g6vw-rhxx","Warn: Project is vulnerable to: GHSA-jr5f-v2jv-69x6","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-x9w5-v3q2-3rhw","Warn: Project is vulnerable to: GHSA-wg6g-ppvx-927h","Warn: Project is vulnerable to: GHSA-897m-rjf5-jp39","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-vh7m-p724-62c2","Warn: Project is vulnerable to: GHSA-r9p9-mrjm-926w","Warn: Project is vulnerable to: GHSA-434g-2637-qmqr","Warn: Project is vulnerable to: GHSA-49q7-c7j4-3p7m","Warn: Project is vulnerable to: GHSA-977x-g7h5-7qgw","Warn: Project is vulnerable to: GHSA-f7q4-pwc6-w24p","Warn: Project is vulnerable to: GHSA-fc9h-whq2-v747","Warn: Project is vulnerable to: GHSA-vjh7-7g9h-fjfh","Warn: Project is vulnerable to: GHSA-4gmj-3p3h-gm8h","Warn: Project is vulnerable to: GHSA-74fj-2j2h-c42q","Warn: Project is vulnerable to: GHSA-pw2r-vq6v-hr8c","Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc","Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-8r6j-v8pm-fqw3","Warn: Project is vulnerable to: MAL-2023-462","Warn: Project is vulnerable to: GHSA-4q6p-r6v2-jvc5","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-896r-f27r-55mw","Warn: Project is vulnerable to: GHSA-6c8f-qphg-qjgp","Warn: Project is vulnerable to: GHSA-jf85-cpcp-j695","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-fhjf-83wg-r2j9","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-g6ww-v8xp-vmwg","Warn: Project is vulnerable to: GHSA-h7cp-r72f-jxh6","Warn: Project is vulnerable to: GHSA-v62p-rq8g-8h59","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-4g88-fppr-53pp","Warn: Project is vulnerable to: GHSA-4jqc-8m5r-9rpr","Warn: Project is vulnerable to: GHSA-g4rg-993r-mgx7","Warn: Project is vulnerable to: GHSA-wpg7-2c88-r8xv","Warn: Project is vulnerable to: GHSA-3jfq-g458-7qm9","Warn: Project is vulnerable to: GHSA-5955-9wpr-37jh","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-r628-mhmh-qjhw","Warn: Project is vulnerable to: GHSA-9r2w-394v-53qc","Warn: Project is vulnerable to: GHSA-qq89-hq3f-393p","Warn: Project is vulnerable to: GHSA-pq67-2wwv-3xjx","Warn: Project is vulnerable to: GHSA-8cj5-5rvv-wf4v","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh","Warn: Project is vulnerable to: GHSA-p9pc-299p-vxgp"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-22T00:55:23.284Z","repository_id":1084756,"created_at":"2025-08-22T00:55:23.284Z","updated_at":"2025-08-22T00:55:23.284Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280503208,"owners_count":26341693,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-22T02:00:06.515Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","edtf","javascript","parser"],"created_at":"2025-10-22T19:59:35.665Z","updated_at":"2025-10-22T19:59:39.177Z","avatar_url":"https://github.com/nicompte.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# edtfy (bring your own pronunciation)\n\n[![Circle CI](https://circleci.com/gh/nicompte/edtfy.svg?style=svg)](https://circleci.com/gh/nicompte/edtfy)\n\nedtfy is a parser that transforms user input into the [edtf](http://www.loc.gov/standards/datetime/pre-submission.html) format.\n\n## Install\n\n```\nnpm install edtfy   #npm\nbower install edtfy #bower\n```\n\n## Usage\n\n### parse\n\n```js\nedtfy = require('edtfy');\nedtfy.locale('fr');\nedtfy('29 mars 1988'); // 1988-03-29\n```\n\n### locale\n\n`edtfy.locale(locale)`: define the locale\n\n`edtfy.locale()`: retrieve the locale\n\n## Compatibility\n\n### Level 0\n\n#### 5.1.1 Date\n\ninput|output\n-----|------\n2008 | 2008\ndecember 1988 | 2008-12\n02/03/1988 | 2001-02-03\n\n#### 5.1.2 Date and Time\n\nNot supported for now.\n\n#### 5.1.3 Interval\n\ninput|output\n-----|------\nfrom 1964 to 2008 | 1964/2008\nJune 2004 - August 2008 | 2004-06/2008-08\n2/1/2004 / 2/8/2005 | 2004-02-01/2008-02-08\n02/01/2004-2005 | 2004-02-01/2005\nfrom 2005 to June 2006 | 2005/2006-02\n\n### Level 1\n\n#### 5.2.1 Uncertain/Approximate\n\ninput|output\n-----|------\n1984? | 1984?\nJune 2004? | 2004-06?\nJune the 11th, 2004? | 2004-06-11?\naround 1984 | 1984~\nabout 1984? | 1984?~\n\n#### 5.2.2 Unspecified\n\ninput|output\n-----|------\n199u | 199u\n1999-uu | 1999-uu\n1999-01-uu | 1999-01-uu\n1999-uu-uu | 1999-uu-uu\n\n#### 5.2.3. Extended Interval (L1)\n\ninput|output\n-----|------\nfrom 06/01/2004 to unknown | 2004-06-01/unknown\nfrom 01/01/2004 to open | 2004-01-01/open\nfrom around 1984 to June 2004 | 1984~/2004-06\n1984 - around June 2004 | 1984/2004-06~\n1984? - ~2004? | 1984?/2004?~\n\n#### 5.2.4 Year Exceeding Four Digits (L1)\n\ninput|output\n-----|------\n170000002 | y170000002\n-170000002 | y-170000002\n\n#### 5.2.5 Season\n\ninput|output\n-----|------\nSpring 2001 | 2001-21\n\n### Level 2\n\n#### 5.3.1 Partial Uncertain/Approximate\n\nNot supported for now.\n\n#### 5.3.2 Partial Unspecified\n\ninput|output\n-----|------\n12/25/156u | 156u-12-25\n12/25/156uu | 15uu-12-25\n12/uu/15uu | 15uu-12-uu\nuu/25/1560 | 1560-uu-25\n\n#### 5.3.3 One of a Set\n\nThe `..` feature is only supported of `before` and `after` for now.\n\ninput|output\n-----|------\n1667 or 1668 or 1670 | [1667,1668,1670]\nJan 1760 or Feb 1760 or December 1760 | [1760-01,1760-02,1760-12]\n1667 or 12/1760 | [1667,1760-12]\nbefore 1930 | [..,1930]\nafter march 2004 | [2004-03,..]\n\n#### 5.3.4 Multiple Dates\n\nThe `..` feature is not supported for now.\n\ninput|output\n-----|------\n1667 and 1668 and 1670 | {1667,1668,1670}\n1960 and December 1961 | {1960,1961-12}\n\n#### 5.4.5 Masked Precision\n\ninput|output\n-----|------\n196x | 196x\n19xx  | 19xx\n\n#### 5.3.6 Extended Interval (L2)\n\nNot supported for now.\n\n## License\n\nMIT © [Nicolas Barbotte](http://barbotte.net)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicompte%2Fedtfy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnicompte%2Fedtfy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicompte%2Fedtfy/lists"}