
Research
/Security News
npm Package Uses Prompt Injection and Token Flooding to Disrupt AI Malware Scanners
A new npm package tests AI malware scanners with prompt injection, safety-triggering comments, context flooding, and obfuscated JavaScript.
vdata-parser
Advanced tools

Parse vdata (ics, vcal, vcard) to javscript objects.
Install the module with: npm install vdata-parser
var parser = require('vdata-parser');
fromString(string)Parse a string and return a object which contains the data which parsed.
Return: Object - The parsed data
stringStringThe string contains the vdata which should be parsed.
fromFile(filename, callback)Parse the file and execute the given callback.
filenameStringThe file which should be parsed.
callbackFunctionThe function which is called if file is successful finished or an error was occurred. The callback is called with two arguments: err and data. The argument err is null and data is an object if no error is occurred.
fromFileSync(filename)Parse a file synchronic.
Return: Object - The parsed data
filenameStringThe file which should be parsed.
var parser = require('vdata-parser');
// ... define variable `string` ...
var data = parser.fromString(string);
console.dir(data);
var parser = require('vdata-parser');
parser.fromFile(__dirname + '/file', function (err, data) {
if (err) throw err;
console.dir(data);
});
var parser = require('vdata-parser');
var data = parser.fromFileSync(__dirname + '/file');
console.dir(data);
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.
Copyright (c) 2014 Florian Goße. Licensed under the MIT license.
FAQs
Parse vdata (ics, vcal, vcard) to javscript objects.
We found that vdata-parser 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 new npm package tests AI malware scanners with prompt injection, safety-triggering comments, context flooding, and obfuscated JavaScript.

Product
Socket now detects supply chain risks in project manifests, starting with missing lockfiles that can make dependency installs non-reproducible.

Research
/Security News
The trojanized extensions use TinyGo-compiled WebAssembly and Solana transaction memos to resolve command-and-control infrastructure.