Gathering detailed insights and metrics for paste-html-to-govspeak
Gathering detailed insights and metrics for paste-html-to-govspeak
Gathering detailed insights and metrics for paste-html-to-govspeak
Gathering detailed insights and metrics for paste-html-to-govspeak
JavaScript event to convert pasted HTML into govspeak
npm install paste-html-to-govspeak
Typescript
Module System
Node Version
NPM Version
75.5
Supply Chain
98.1
Quality
76.8
Maintenance
100
Vulnerability
100
License
HTML (85.82%)
JavaScript (14.18%)
Total Downloads
30,035
Last Day
42
Last Week
220
Last Month
1,204
Last Year
10,560
MIT License
6 Stars
653 Commits
4 Forks
41 Watchers
6 Branches
157 Contributors
Updated on Jun 03, 2025
Minified
Minified + Gzipped
Latest Version
0.5.0
Package Id
paste-html-to-govspeak@0.5.0
Unpacked Size
67.17 kB
Size
18.89 kB
File Count
8
NPM Version
10.9.2
Node Version
22.14.0
Published on
Feb 28, 2025
Cumulative downloads
Total Downloads
Last Day
35.5%
42
Compared to previous day
Last Week
20.2%
220
Compared to previous week
Last Month
16.2%
1,204
Compared to previous month
Last Year
40.4%
10,560
Compared to previous year
This package provides an event listener that will convert pasted HTML content on form inputs and textareas into Govspeak (a markdown extension library for government publishers).
The HTML data available to the browser clipboard is complicated and inconsistent, learn more about this functionality and its limitations.
Add this project to your package.json file via NPM or Yarn:
1# NPM 2npm install paste-html-to-govspeak --save 3# Yarn 4yarn add paste-html-to-govspeak
Download paste-html-to-markdown.js and add it to your application assets.
1import { pasteListener } from 'paste-html-to-govspeak' 2 3element.addEventListener('paste', pasteListener)
1element.addEventListener('paste', window.pasteHtmlToGovspeak.pasteListener)
This package triggers events at different stages in the conversion process
which can be monitored to understand how a particular scenario is occurring.
These events are triggered on the element the pasteListener
has been applied
to.
These are:
htmlpaste
- which is the received HTML from the paste eventtextpaste
- which is the received text from the paste eventgovspeak
- which is the resultant govspeak of the HTML conversion, this
will only be triggered if HTML was present in the paste event.There is also a htmlToGovspeak
method that is exposed by the package. Given
a HTML string input this will return Govspeak.
This repo contains example usages of these debugging tools.
npm install
npm test
To continuously build files while developing run:
npm run watch
The npmjs.com hosted module paste-html-to-govspeak is automatically updated when there is a merge to main
that updates the version
property in package.json.
No vulnerabilities found.
Reason
all changesets reviewed
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
16 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10
Reason
license file detected
Details
Reason
security policy file detected
Details
Reason
packaging workflow detected
Details
Reason
SAST tool is run on all commits
Details
Reason
dependency not pinned by hash detected -- score normalized to 6
Details
Reason
4 existing vulnerabilities detected
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
Score
Last Scanned on 2025-06-23
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