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-article
Advanced tools
Readme
Extract data from your markdown article
npm install --save md-article
import extract from 'md-article';
const input = `
# title
_24 june 2016_
#tag1 #tag2 #tag3;
desc
content1
content2`;
const article = extract(input, 'D MMMM YYYY', 'en');
article.title.text; // title
article.date.text; // 24 june 2016
article.tags.text; // tag1 tag2 tag3
article.content.html; // <p>desc</p>
// <p>content1</p>
// <p>content2</p>
Return object { title, date, tags, content }
.
I hope that all fields have self-explanatory names.
Anyway, tags
and content
should be explained further: desc
— paragrapgh with elements like #tag1 #tag2;
, content
input without title, tags and date. All the fields are objects with such fields:
text
and html
list
, text
and html
text
, html
, unix
and moment
Also everything in returned mdast
object node, see MDAST.
Required
Type: String
Markdown string.
Required
Type: String
Momentjs format for date, e.g. D MMMM YYYY
.
Required
Type: String
One of 83 available in momentjs locales, e.g. en
or fr
.
remark
instead of commonmark
for all markdown helpersMIT © Aleksandr Filatov
FAQs
Extract data from markdown article
The npm package md-article receives a total of 2 weekly downloads. As such, md-article popularity was classified as not popular.
We found that md-article 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.