Installations
npm install remark-smartypants
Score
97.2
Supply Chain
84.7
Quality
78.6
Maintenance
100
Vulnerability
100
License
Releases
Contributors
Developer
silvenon
Developer Guide
Module System
ESM
Min. Node Version
>=16.0.0
Typescript Support
Yes
Node Version
22.4.1
NPM Version
10.8.1
Statistics
58 Stars
154 Commits
3 Forks
4 Watching
5 Branches
8 Contributors
Updated on 23 Nov 2024
Languages
TypeScript (99.71%)
JavaScript (0.29%)
Total Downloads
Cumulative downloads
Total Downloads
18,106,564
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
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
4
remark-smartypants
remark plugin to implement SmartyPants. Now with 100% more ESM!
Installing
1# using npm 2npm install remark-smartypants 3 4# using yarn 5yarn add remark-smartypants
Usage
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 (---)");
License
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: license:0
- Info: FSF or OSI recognized license: MIT License: license:0
Reason
1 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
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
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/silvenon/remark-smartypants/main.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/silvenon/remark-smartypants/main.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/silvenon/remark-smartypants/main.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/silvenon/remark-smartypants/main.yml/main?enable=pin
- Info: 0 out of 4 GitHub-owned GitHubAction dependencies pinned
- Info: 2 out of 2 npmCommand dependencies pinned
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/main.yml:1
- Info: no jobLevel write permissions found
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
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
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 22 are checked with a SAST tool
Score
4.5
/10
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