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.
paste-html-to-govspeak
Advanced tools
Changelog
0.4.0
Readme
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:
# NPM
npm install paste-html-to-govspeak --save
# Yarn
yarn add paste-html-to-govspeak
Download paste-html-to-markdown.js and add it to your application assets.
import { pasteListener } from 'paste-html-to-govspeak'
element.addEventListener('paste', pasteListener)
element.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
FAQs
Converts HTML formatted rich content to govspeak format (a markdown extension library for government editors) when pasted from clipboard into a form input or textarea.
The npm package paste-html-to-govspeak receives a total of 98 weekly downloads. As such, paste-html-to-govspeak popularity was classified as not popular.
We found that paste-html-to-govspeak demonstrated a healthy version release cadence and project activity because the last version was released less than 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.