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.
awesome-react-repl
Advanced tools
Readme
Display or interact with a REPL (Read Eval Print Loop). Create an interactive terminal for Python, Javascript or whatever in React.
npm install awesome-react-repl
import { ReactReplJS } from "awesome-react-repl"
const JavascriptRepl = () => {
return (
<ReactReplJS
title="My Javascript Repl!"
height={300}
initiallyExecute={["a = 3", "b = 4", "a * b"]}
/>
)
}
import { ReactReplView } from "awesome-react-repl"
const GeneralPurposeReplUI = () => {
return (
<ReactReplView
title={`My Awesome Repl!`}
tabs={["Javascript", "Python"]}
selectedTab="Javascript"
onChangeTab={action("onChangeTab")}
onSubmit={action("onSubmit")}
onClear={action("onClear")}
height={200}
lines={[
{ type: "input", value: "obj = { something: 2 }" },
{ type: "output", value: '{ "something": 2 }' },
{ type: "input", value: "b" },
{ type: "error", value: "TypeError: b is not defined" },
]}
/>
)
}
import { useReactReplJS } from "awesome-react-repl"
const JavascriptRepl = () => {
const { submitCode, ReactRepl } = useReactReplJS()
return (
<div>
<ReactRepl
title="My Javascript Repl!"
height={300}
initiallyExecute={["a = 3", "b = 4", "a * b"]}
/>
<button onClick={() => submitCode('alert(`Button pressed! a=${a}! This will appear in the REPL!`)')}>Alert!</button>
</div>
)
}
yarn install
yarn storybook
FAQs
Display or interact with a REPL (Read Eval Print Loop). Create an interactive terminal for Python, Javascript or whatever in React.
The npm package awesome-react-repl receives a total of 2,763 weekly downloads. As such, awesome-react-repl popularity was classified as popular.
We found that awesome-react-repl 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
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.