Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
A parser for embedded annotations of functions and modules
Anno parses DocBlocks, ignores any regular comment, and returns an object containing the parsed annotations.
npm install anno --save-dev
/**
* This function does something.
* @hello world
* @valueless
*/
function doSomething () {
console.log('Did something.');
}
var anno = require('anno');
var result = anno(fs.readFileSync('test.js', 'utf8'));
console.log(result);
});
{
"doSomething": {
"hello": "world",
"valueless": true
}
}
function <name> (…) { … }
var <name> = function (…) { … }
let <name> = function (…) { … }
const <name> = function (…) { … }
var <name> = new Function (…)
let <name> = new Function (…)
const <name> = new Function (…)
var <name> = (…) => { … }
let <name> = (…) => { … }
const <name> = (…) => { … }
module.exports = function (…) { … }
exports.<name> = function (…) { … }
exports[<name>] = function (…) { … }
Copyright (c) 2016 Thomas Rasshofer
Licensed under the MIT license.
See LICENSE for more info.
FAQs
A parser for embedded annotations of functions and modules
The npm package anno receives a total of 1 weekly downloads. As such, anno popularity was classified as not popular.
We found that anno 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
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
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.