Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
react-runner
Advanced tools
##react-runner
Goal: Abstract running / building assets on web and native so tht you can rely on the same commands for all platforms. Hide the need for webpack and babel, but allow using custom .babelrc
and webpack configs.
###Todo
A tool to quickly get started on building a react app. The end goal is to run any jsx file in dev mode, output to production, or even a production ready way to server render your app. Provides a uniform api for running reactjs and native apps
npm install react-runner -g
Commands can be ran by react-runner
or rr
for short.
###init
Run this command in a new project folder, or even an existing react app. It wil install the required dependencies needed to run your app. You don't need to worry about making a webpack config. If you need to use a custom config, this will use that instead (coming soon).
###development
rr index.jsx
runs your react code using a webpack dev server on localhost:8080
rr ios
to run an ios apprr android
to run react native android project###build
build assets for native and web (coming soon)
###Example
Run rr init
in a new folder, create a file like this:
import React from 'react'
import ReactDOM from 'react-dom'
class App extends React.Component {
render() {
return (
<div>Hey thereyrrrt</div>
)
}
}
ReactDOM.render(<App />, document.getElementById('app'))
run rr dev index.js
and boom, you have the app in your browser ready to go. I know there are other tools for this, most make everything a hard dependency, but this installs everything as a peer so that you can control the version.
FAQs
Run your React code on the go
The npm package react-runner receives a total of 12,904 weekly downloads. As such, react-runner popularity was classified as popular.
We found that react-runner demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.