Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
vs-diff
is a diff algorithm extracted from VS Code with the latest updates.
If you find this package useful for your projects, please consider supporting me by Patreon, KO-FI or Paypal. It's a great way to help me maintain and improve this tool in the future. Your support is truly appreciated!
npm
npm install vs-diff
import {
DiffComputer,
ICharChange,
IDiffComputerOpts,
ILineChange,
} from "vs-diff";
const options: IDiffComputerOpts = {
shouldPostProcessCharChanges: true,
shouldIgnoreTrimWhitespace: true,
shouldMakePrettyDiff: true,
shouldComputeCharChanges: true,
maxComputationTime: 0
};
let diffComputer = new DiffComputer(originalLines, modifiedLines, options);
let lineChanges: ILineChange[] = diffComputer.computeDiff().changes;
console.log(lineChanges);
/*
[
{
"originalStartLineNumber": 14,
"originalEndLineNumber": 0,
"modifiedStartLineNumber": 15,
"modifiedEndLineNumber": 15
},
{
"originalStartLineNumber": 16,
"originalEndLineNumber": 0,
"modifiedStartLineNumber": 18,
"modifiedEndLineNumber": 18
}
]
*/
If you discover a bug, or have a suggestion for a feature request, please submit an issue.
This extension is licensed under the MIT License
0.0.9
FAQs
Diff algorithm extracted from Visual Studio Code
The npm package vs-diff receives a total of 18 weekly downloads. As such, vs-diff popularity was classified as not popular.
We found that vs-diff 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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.