Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
md-date
Advanced tools
Readme
get date from markdown article
npm install --save md-date
import getDate from 'md-date';
const input = `
# title
21 asd qwe
22 *Dec* 2016
23 December 2016
24 Décembre 2016`;
getDate('DD MMM YYYY', 'en', input).text; // 21 Dec 2016
getDate('DD MMM YYYY', 'en', input).html; // 22 <em>Dec</em> 2016
getDate('DD MMM YYYY', 'en', input).unix; // 1482364800
getDate('DD MMMM YYYY', 'en', input).text; // 23 December 2016
getDate('DD MMMM YYYY', 'fr', input).text; // 24 Décembre 2016
getDate('DD MMMM YYYY', 'en', input).moment; // moment instance
getDate('DD MMMM YYYY', 'en', input).node; // MDAST node, see remark API
getDate('DD MMMM YYYY', 'en', ''); // undefined
Required
Type: String
Momentjs format for date, e.g. DD MMMM YYYY
.
Required
Type: String
One of 83 available in momentjs locales, e.g. en
or fr
.
Required
Type: String
Markdown string.
MIT © Aleksandr Filatov
FAQs
get date from markdown article
The npm package md-date receives a total of 3 weekly downloads. As such, md-date popularity was classified as not popular.
We found that md-date demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.