{"id":15048787,"url":"https://github.com/greybax/md-date","last_synced_at":"2026-02-09T10:31:56.453Z","repository":{"id":57293166,"uuid":"62535282","full_name":"greybax/md-date","owner":"greybax","description":null,"archived":false,"fork":false,"pushed_at":"2019-04-19T01:32:31.000Z","size":23,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-20T04:57:16.354Z","etag":null,"topics":["date","datetime","helper","js","markdown","markdown-article","md-article","momentjs"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/greybax.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-07-04T05:58:13.000Z","updated_at":"2017-06-15T17:08:29.000Z","dependencies_parsed_at":"2022-09-01T08:40:38.012Z","dependency_job_id":null,"html_url":"https://github.com/greybax/md-date","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/greybax/md-date","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greybax%2Fmd-date","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greybax%2Fmd-date/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greybax%2Fmd-date/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greybax%2Fmd-date/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/greybax","download_url":"https://codeload.github.com/greybax/md-date/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greybax%2Fmd-date/sbom","scorecard":{"id":445350,"data":{"date":"2025-08-18","repo":{"name":"github.com/greybax/md-date","commit":"9310bf1d0d73b1c7e8997f47c53a2bb3e646c3c3"},"scorecard":{"version":"v5.2.1-41-g40576783","commit":"40576783fda6698350fcbbeaea760ff827433034"},"score":2.6,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/5 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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#code-review"}},{"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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#packaging"}},{"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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#dangerous-workflow"}},{"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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#token-permissions"}},{"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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#pinned-dependencies"}},{"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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#binary-artifacts"}},{"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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#maintained"}},{"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/40576783fda6698350fcbbeaea760ff827433034/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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#vulnerabilities"}},{"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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/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/40576783fda6698350fcbbeaea760ff827433034/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/40576783fda6698350fcbbeaea760ff827433034/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 7 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-19T06:35:13.195Z","repository_id":57293166,"created_at":"2025-08-19T06:35:13.195Z","updated_at":"2025-08-19T06:35:13.195Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29261920,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-09T04:11:57.159Z","status":"ssl_error","status_checked_at":"2026-02-09T04:11:56.117Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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","datetime","helper","js","markdown","markdown-article","md-article","momentjs"],"created_at":"2024-09-24T21:16:15.412Z","updated_at":"2026-02-09T10:31:56.437Z","avatar_url":"https://github.com/greybax.png","language":"JavaScript","readme":"# md-date\n\n[![Greenkeeper badge](https://badges.greenkeeper.io/greybax/md-date.svg)](https://greenkeeper.io/)\n\n[![NPM version][npm-image]][npm-url]\n[![Build Status][travis-image]][travis-url]\n[![Coveralls Status][coveralls-image]][coveralls-url]\n[![Dependency Status][depstat-image]][depstat-url]\n\n\u003e get date from markdown article\n\n## Install\n\n    npm install --save md-date\n\n## Usage\n\n```js\nimport getDate from 'md-date';\n\nconst input = `\n# title\n\n21 asd qwe\n\n22 *Dec* 2016\n\n23 December 2016\n\n24 Décembre 2016`;\n\ngetDate('DD MMM YYYY',  'en', input).text;   // 21 Dec 2016\ngetDate('DD MMM YYYY',  'en', input).html;   // 22 \u003cem\u003eDec\u003c/em\u003e 2016\ngetDate('DD MMM YYYY',  'en', input).unix;   // 1482364800\ngetDate('DD MMMM YYYY', 'en', input).text;   // 23 December 2016\ngetDate('DD MMMM YYYY', 'fr', input).text;   // 24 Décembre 2016\ngetDate('DD MMMM YYYY', 'en', input).moment; // moment instance\ngetDate('DD MMMM YYYY', 'en', input).node;   // MDAST node, see remark API\ngetDate('DD MMMM YYYY', 'en', '');           // undefined\n```\n\n## API\n\n### getDate(format, locale, input)\n\n#### format\n\n*Required*  \nType: `String`\n\nMomentjs [format][format] for date, e.g. `DD MMMM YYYY`.\n\n[format]: http://momentjs.com/docs/#/displaying/format/\n\n#### locale\n\n*Required*  \nType: `String`\n\nOne of 83 available in momentjs [locales][i18n], e.g. `en` or `fr`.\n\n[i18n]: http://momentjs.com/docs/#/i18n/\n\n#### input\n\n*Required*  \nType: `String`\n\nMarkdown string.\n\n## Related\n\n* [md-article][md-article] - extract data from your markdown article\n    * [md-content][md-content] - get content from markdown article\n    * [md-tags][md-tags] - get tags from markdown article\n    * [md-title][md-title] - get title from markdown article\n\n## License\n\nMIT © [Aleksandr Filatov](https://alfilatov.com)\n\n[npm-url]: https://npmjs.org/package/md-date\n[npm-image]: https://img.shields.io/npm/v/md-date.svg?style=flat-square\n\n[travis-url]: https://travis-ci.org/greybax/md-date\n[travis-image]: https://img.shields.io/travis/greybax/md-date.svg?style=flat-square\n\n[coveralls-url]: https://coveralls.io/r/greybax/md-date\n[coveralls-image]: https://img.shields.io/coveralls/greybax/md-date.svg?style=flat-square\n\n[depstat-url]: https://david-dm.org/greybax/md-date\n[depstat-image]: https://david-dm.org/greybax/md-date.svg?style=flat-square\n\n[md-article]: https://github.com/greybax/md-article\n[md-content]: https://github.com/greybax/md-content\n[md-tags]: https://github.com/greybax/md-tags\n[md-title]: https://github.com/greybax/md-title","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgreybax%2Fmd-date","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgreybax%2Fmd-date","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgreybax%2Fmd-date/lists"}