Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
I will write a better readme later.
This project was started just to learn the gist api.
This project is Unlicensed
I will make this better, for now look at the examples.
ID - Your gist id. (optional)
Timeout - Request timeout. (optional, defaults to 5 seconds)
Example: gdb = new GistDB('USERNAME','PASSWORD',{id:"9cb6f8b7baa8300af0d7",timeout:1000});
var GistDB = require('gistdb');
var gdb = new GistDB('USERNAME','PASSWORD',{id:"9cb6f8b7baa8300af0d7",timeout:1000});
gdb.create(object,'database.name');
var GistDB = require('gistdb');
var gdb = new GistDB('USERNAME','PASSWORD',{id:"9cb6f8b7baa8300af0d7",timeout:1000});
var content = {example:'This is an example database!'};
gdb.create(content,'example.db');
gdb.on('created',function (data) {
console.log('New database created! ('+data.id+')');
init(gdb);
});
gdb.on('error',function (data) {
console.log('There was an error! (Error: '+data.msg+')');
});
gdb.on('saved',function (data) {
console.log('Content saved to database!');
});
console.log('Init called: '+gdb.get('Initcalled')); // will return false, as the DB isn't loaded.
function init (gdb) {
gdb.set('Initcalled',true);
console.log('Init called: '+gdb.get('Initcalled')); // SHOULD return true if you loaded the DB correctly.
this.save(); // Save when ever you feel like it. (probably best after adding content to the object.)
// Run your project...
};
FAQs
Use gist's from GitHub as database files.
The npm package gistdb receives a total of 0 weekly downloads. As such, gistdb popularity was classified as not popular.
We found that gistdb 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
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.