Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Very tiny (100 LOC) textdownwn formatter
npm install --save textdown
# Header 1 (heading1)
## Heading 2 (heading2)
### Heading 3 (heading3)
**Bold** (bold)
_Italic_ (italic)
[link](url) (link)
> Quote (quote)
- Bullted list (bulletedList)
1. Ordered list (orderedList)
[ ] Task list (taskList)
import textdown from "textdown";
/**
* textdown(text: string, style: string, cursorPosition: {start: number, end: number});
*/
const line = "Think of RxJS as Lodash for events.";
console.log(textdown(line, "bulletedList", { start: 13, end: 13 }));
/*
Think of
- RxJS
as Lodash for events.
*/
// you can specify selection of the text as range
console.log(textdown(line, "bold", { start: 9, end: 13 }));
// Think of **RxJS** as Lodash for events.
FAQs
Tiny markdown formatter
The npm package textdown receives a total of 1 weekly downloads. As such, textdown popularity was classified as not popular.
We found that textdown 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
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.