
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
SafeView is a component that allows you to hide senstive information in your app visually.

SafeView is a component that allows you to hide sensitive information in your app visually, for presentation purposes, and more.

with NPM:
npm install safeview
with Yarn:
yarn add safeview
A basic example of using the base component, all you need to do is import and then wrap your app with it.
import SafeView from 'safeview';
const App = () => {
return (
<SafeView>
// Your React App
</SafeView>;
)
};
Specify which element you would like to hide with the property data-safe="true".
const MyComponent = () => {
return (
<div>
<span data-safe>
// Sensitive info
<span>
</div>
)
}
After you mark the chosen elements you can press Shift + S to filter them out.
S is the default key, but you can change that in the component's props.
<SafeView>The <SafeView> component is the main element of the library and where you control all the functionality besides which element to hide.
// SafeView has the following properties
interface SafeViewProps {
// Determines which the key will toggle the "SafeMode".
accessKey?: React.HTMLAttributes<HTMLButtonElement>['accessKey']; // string
// Determines the filter applied on the targeted elements.
filter?: 'hidden' | 'blur' | 'black';
// Allows you to insert a class to the div <SafeView> creates.
className?: string;
}
In order to specify to SafeView which element you would like to hide, you need to target it with the property data-safe="true".
<p data-safe>{ sensitive information }</p>
SafeView is freely distributable under the terms of the MIT license.
FAQs
SafeView is a component that allows you to hide senstive information in your app visually.
We found that safeview 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.