Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Core library for bharyang extensions.
This is the core library that provides functions to rearrange the block of lines.
It was mainly written due the OCD nature of mine and my colleagues.
// Before: | // After:
|
import get from 'lodash/get'; | import React from 'react';
import { browserHistory } from 'react-router'; | import moment from 'moment';
import moment from 'moment'; | import get from 'lodash/get';
import React from 'react'; | import camelize from 'camelize';
import { connect } from 'react-redux'; | import { connect } from 'react-redux';
import { bindActionCreators } from 'redux'; | import { bindActionCreators } from 'redux';
import camelize from 'camelize'; | import { browserHistory } from 'react-router';
Whenever we see imports like this, we can't help but give it a little cringe. It's not wrong in any way, but its just... not pretty. How about arranging them in a way so that you would want to give a second look at your code?
Waste of time? Totally. We actually spend ridiculous amount of time just to make the code "look pretty". But hey, once it's done, that satisfaction is totally worth it.
Actually, we are just so used to this ladder styled code that we can't go back 😅.
Anyways, "Bharyang" (Nepali) translates to -> "Ladder".
Yup, so creative! Thank you. 👏
Currently it is implemented for Visual Studio Code only. Check here for the actual use.
import {sortImports} from 'bharyang';
sortImports(selection);
FAQs
Core library for bharyang extensions.
We found that bharyang 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
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.