![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
react-screen-capture-v2
Advanced tools
A tiny React library allows you to take a snapshot of the webpage's screen or part of the screen.
A tiny React library which allows you to take a snapshot of part of the screen.
This is a fork of Bunlong's react-screen-capture.
My changes are to:
- Support more recent react versions
- Rewrite as a functional component
- Restrict the capturable screen (namely to the children of the ScreenCapture component)
- Clean up the code
npm i react-screen-capture-v2
import React, { useState } from 'react';
import ScreenCapture from 'react-screen-capture-v2';
const App = () => {
const [on, setOn] = useState(false);
const [img, setImg] = useState("");
return (
<>
<button onClick={() => setOn(!on)}>
Click here to toggle ScreenCapture
</button>
<h1>ScreenCapture is {on ? "on" : "off"}</h1>
<h2>Only the following three paragraphs may be captured:</h2>
<ScreenCapture
on={on}
onEndCapture={(b64: string) => setImg(b64)}
>
<div style={{border: '1px solid black', padding: '2px 10px'}}>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Fugit dolore laborum neque ipsa nulla rem est cum eveniet sed voluptates, perspiciatis inventore nemo ducimus accusantium temporibus, quisquam cumque earum! Velit.</p>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Fugit dolore laborum neque ipsa nulla rem est cum eveniet sed voluptates, perspiciatis inventore nemo ducimus accusantium temporibus, quisquam cumque earum! Velit.</p>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Fugit dolore laborum neque ipsa nulla rem est cum eveniet sed voluptates, perspiciatis inventore nemo ducimus accusantium temporibus, quisquam cumque earum! Velit.</p>
</div>
</ScreenCapture>
<hr />
<h2>Your screen capture will appear below:</h2>
<img src={img} alt='The screen capture appears here' />
</>
);
}
export default App;
See the example react project in my Github
MIT © CaitanyaDurley
FAQs
A tiny React library allows you to take a snapshot of the webpage's screen or part of the screen.
The npm package react-screen-capture-v2 receives a total of 0 weekly downloads. As such, react-screen-capture-v2 popularity was classified as not popular.
We found that react-screen-capture-v2 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.