
Research
Malicious fezbox npm Package Steals Browser Passwords from Cookies via Innovative QR Code Steganographic Technique
A malicious package uses a QR code as steganography in an innovative technique.
factory-mysql-fixtures
Advanced tools
Factory to load fixtures on mysql database. Based on Factory Girl and Factory Lady.
Install via npm:
$ npm install factory-mysql-fixtures
var Factory = require('factory-mysql-fixtures');
var dbConf = {
host: 'localhost',
user: 'root',
database: 'db-test',
password: 'db-password', // optional
timezone: 'utc',
dbStructureFile: './build/structure.sql' // set your own script to reload initial data when calling clean method
};
Factory.config(dbConf);
var _nameIndex = 0;
Factory.define('person', {
name: function(cb) { cb('Jack - ' + _nameIndex++ ); } // lazy attribute
email: 'jack@mail.com'
});
Factory.define('device', {
hash: 'hash1',
person_id: Factory.assoc('person', 'id') // simply Factory.assoc('person') for person object itself
});
Factory.create('person', { name: 'Fred', email: 'fred@mail.com' }, function(err, result) {
// result is the saved person id
});
Factory.create('device', null, function(err, result) {
// result is the saved device id
});
Factory.clean(function(err) {
// data reloaded
});
Copyright (c) 2014 Max Claus Nunes. This software is licensed under the MIT License.
FAQs
Factory to load fixtures on mysql database
The npm package factory-mysql-fixtures receives a total of 3 weekly downloads. As such, factory-mysql-fixtures popularity was classified as not popular.
We found that factory-mysql-fixtures 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
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.
Application Security
/Research
/Security News
Socket detected multiple compromised CrowdStrike npm packages, continuing the "Shai-Hulud" supply chain attack that has now impacted nearly 500 packages.