Gathering detailed insights and metrics for remark-smartypants
Gathering detailed insights and metrics for remark-smartypants
Gathering detailed insights and metrics for remark-smartypants
Gathering detailed insights and metrics for remark-smartypants
npm install remark-smartypants
97.2
Supply Chain
84.7
Quality
78.6
Maintenance
100
Vulnerability
100
License
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
58 Stars
154 Commits
3 Forks
4 Watching
5 Branches
8 Contributors
Updated on 23 Nov 2024
TypeScript (99.71%)
JavaScript (0.29%)
Cumulative downloads
Total Downloads
Last day
1%
62,212
Compared to previous day
Last week
5.8%
379,145
Compared to previous week
Last month
8.5%
1,525,977
Compared to previous month
Last year
189.3%
12,902,410
Compared to previous year
4
remark plugin to implement SmartyPants. Now with 100% more ESM!
1# using npm 2npm install remark-smartypants 3 4# using yarn 5yarn add remark-smartypants
Example using remark:
1import remark from "remark"; 2import smartypants from "remark-smartypants"; 3 4const result = await remark().use(smartypants).process("# <<Hello World!>>"); 5 6console.log(String(result)); 7// # «Hello World!»
I created this plugin because I wanted to add SmartyPants to MDX:
1import mdx from "@mdx-js/mdx"; 2import smartypants from "remark-smartypants"; 3 4const result = await mdx("# ---Hello World!---", { 5 remarkPlugins: [smartypants], 6});
Note that angle quotes in the former example (<<...>>
) are probably impossible in MDX because there they are invalid syntax.
This plugin uses retext-smartypants under the hood, so it takes the same options:
1const result = await remark() 2 .use(smartypants, { dashes: "oldschool" }) 3 .process("en dash (--), em dash (---)");
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
1 existing vulnerabilities detected
Details
Reason
Found 4/12 approved changesets -- score normalized to 3
Reason
4 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 3
Reason
dependency not pinned by hash detected -- score normalized to 3
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More