Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
react-npm-skeleton
Advanced tools
A skeleton project for creating react components packaged with npm
Basic React app. An ES6 skeleton project for creating react components packaged with npm. This project just aim to display Hello World with React.
import React,{Component} from 'react';
import ReactDOM from 'react-dom';
import HelloWorld from 'react-npm-skeleton';
class App extends Component {
constructor(props){
super(props);
}
render() {
return(
<div>
<HelloWorld />
</div>
);
}
}
ReactDOM.render(<App />,document.querySelector('.container'));
This example would render: "Hello World" in H2 tag into the container element on the page.
Clone the repo as a new project:
git clone https://github.com/lobdev/react-npm-skeleton.git <shiny-new-project>
Start Server:
First you have to replace the lib/component/hello_world.js to server.js in package.json
cd shiny-new-project
npm i
npm start
Run App:
npm start command automatically initiate browser at 3000 port
http:://localhost:3000
Run tests:
cd shiny-new-project
npm i
npm test
Make sure you configure your editor/IDE to use:
.editorconfig
.eslintrc
FAQs
A skeleton project for creating react components packaged with npm
We found that react-npm-skeleton 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 found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.