Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
docs-soap is a small (1.5kb minified/gzipped), simple library that can be used to transform clipboard contents from Google Docs into readable HTML. This library was born from the need to parse clipboard content from Google Docs into a DraftJS Rich Text Editor and fits nicely into Draft's handlePastedText
hook.
This project was developed for use in a client-side project. To use in a Node environment, your project will also require jsdom-global.
module.exports = {
default: docsSoap,
docsSoap,
parseHTML
};
Tests are written in Mocha, using expect
for assertions. npm run test
will run all tests in the test/
directory, allowing you to test the entire library's functionality at once. All contributions to the repository are expected to contain accompanying tests.
In the examples/
directory, there's a simple HTML example that, after running npm run build
in the project root, can be used to test your changes or just see the library in action.
yarn add docs-soap
import docsSoap from 'docs-soap';
yarn add docs-soap
const docsSoap = require('docs-soap').default;
<script src="https://unpkg.com/docs-soap@1.2.1/dist/docs-soap.min.js"></script>
var docsSoap = window.docsSoap;
const html =
'<body id="docs-internal-guid-1234"><b><span style="font-weight:700">bold text</span><span style="font-style:italic">some italic text</span></b></body>';
const clean = docsSoap(html);
console.log(
clean
); /* "<body><strong>some bold text</strong><i>some italic text</i></body>" */
FAQs
A utility for cleaning Google Docs clipboard content into valid HTML
The npm package docs-soap receives a total of 593 weekly downloads. As such, docs-soap popularity was classified as not popular.
We found that docs-soap 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
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.