
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
super-react
Advanced tools
Opinionated Command Line Tool for Scaffolding out Nested React Components Into Files
#Super React
Opinionated Command Line Tool for Scaffolding out Nested React Components Into Files
##Install
npm install -g super-react
##Usage
super-react "[emmet_string]" [--hybrid|--es5] [--ext=js]
##Scaffold Components From Emmet Syntax
This tool uses Emmet style syntax for scaffolding out components in a nested fashion. In this early version of this module, all components are dumped into a single folder but, the React component calls the nested children we specify.
###Basic Example
super-react "App>components/Description+ListContainer>List"
The >
denotes a parent component, +
denotes a sibling component, and /
denotes a folder.
The command results in the following:
created: ./components/
created: components/Description.js
created: App.js
created: components/List.js
created: components/ListContainer.js
App.js
has the following contents:
import React, {PropTypes, Component} from 'react';
import Description from './components/Description'
import ListContainer from './components/ListContainer'
class App extends Component {
constructor(props) {
super(props)
this.state = {};
}
render() {
let styles = {};
return (
<div>
<Description />
<ListContainer />
</div>
);
}
}
App.propTypes = {
}
export default App;
###Hybrid Mode
super-react "App>components/Description+ListContainer>List" --hybrid
Outputs the following ES6 createClass template.
created: ./components/
created: components/Description.js
created: App.js
created: components/List.js
created: components/ListContainer.js
import React, {PropTypes} from 'react';
import Description from './components/Description';
import ListContainer from './components/ListContainer';
const App = React.createClass({
propTypes: {
},
render() {
const styles = {};
return (
<div>
<Description />
<ListContainer />
</div>
);
}
});
export default App;
###ES5 Mode
super-react "App>components/Description+ListContainer>List" --es5
Outputs the following ES5 createClass template.
created: ./components/
created: components/Description.js
created: App.js
created: components/List.js
created: components/ListContainer.js
var React = require('react');
var Description = require('./components/Description');
var ListContainer = require('./components/ListContainer');
var App = React.createClass({
mixins : [],
propTypes: {
},
render: function() {
var styles = {};
return (
<div>
<Description />
<ListContainer />
</div>
);
}
});
module.exports = App;
###Custom Extension
super-react "App>components/Description+ListContainer>List" --ext=jsx --es5
Outputs the following ES5 createClass template with jsx extensions.
created: ./components/
created: App.jsx
created: components/ListContainer.jsx
created: components/Description.jsx
created: components/List.jsx
var React = require('react');
var Description = require('./components/Description.jsx');
var ListContainer = require('./components/ListContainer.jsx');
var App = React.createClass({
mixins : [],
propTypes: {
},
render: function() {
var styles = {};
return (
<div>
<Description />
<ListContainer />
</div>
);
}
});
module.exports = App;
##Changelog
##Roadmap
##Contribute?
I <3 Pull Requests, suggestions, and Issue reports.
FAQs
Opinionated Command Line Tool for Scaffolding out Nested React Components Into Files
We found that super-react 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.