Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
rc-new-window
Advanced tools
React New Window Component to show content in a popup browser window. Ported from react-new-window
npm install
npm start
online example: https://ticlo.github.io/rc-new-window/
import React from 'react';
import ReactDOM from 'react-dom';
import NewWindow from 'rc-new-window';
ReactDOM.render((
<NewWindow>
Content to show in the new window
</NewWindow>
), container);
name | type | default | description |
---|---|---|---|
url | String | Use url instead of children content If cross domain url is used, callbacks might not work | |
name | String | Name of new window | |
title | String | title of current window | Title of new window |
copyStyles | Boolean | true | Copy the styles from main window |
width | Number | 640 | Window inner width |
height | Number | 480 | Window inner height |
initPopupInnerRect | Function | init the window client area return {left,top,width,height} | |
initPopupOuterRect | Function | init the window position and size return {left,top,width,height} | |
top | Number | center of current window | Window position |
onOpen | (w: Window) => void | callback when window is opened | |
onClose | () => void | callback when window is closed by user | |
onBlock | () => void | callback when window.open failed |
rc-new-window is released under the Apache license version 2.0.
0.1.2 / 2020-12-13
FAQs
popup new browser window with react
The npm package rc-new-window receives a total of 4,914 weekly downloads. As such, rc-new-window popularity was classified as popular.
We found that rc-new-window 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.