Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
scuttle-testbot
Advanced tools
Spins up an empty, temporary ssb-server server that stores data in your temp folder
Spins up an empty, temporary ssb-server that stores data in your temp folder
var CreateTestSbot = require('scuttle-testbot')
var ssbKeys = require('ssb-keys')
var pietKeys = ssbKeys.generate()
var katieKeys = ssbKeys.generate()
var myTempSbot = CreateTestSbot({name: 'testBotName', keys: pietKeys})
var katie = myTempSbot.createFeed(katieKeys)
var piet = myTempSbot.createFeed(pietKeys)
piet.add({type: 'test', content: "a test message"},function(err, data) {
myTempSbot.close() //don't forget to close your sbot otherwise your script will never exit. ;)
console.log(data)
})
Outputs:
{
key: '%FQ2auS8kVY9qPgpTWNY3le/JG5+IlO6JHDjBIQcSPSc=.sha256',
value: {
previous: null,
sequence: 1,
author: '@UreG2i/rf4mz7QAVOtg0OML5SRRB42Cwwl3D1ct0mbU=.ed25519',
timestamp: 1517190039755,
hash: 'sha256',
content: { type: 'test', content: 'a test message' },
signature: '0AxMJ7cKjHQ6vJDPkVNWcGND4gUwv2Z8barND5eha7ZXH/s5T0trFqcratIqzmhE3YJU2FY61Rf1S/Za2foLCA==.sig.ed25519'
},
timestamp: 1517190039758
}
var CreateTestSbot = require('scuttle-testbot')
Returns a ssb-server instance.
By default, CreateTestSbot deletes an existing database of the same name
before starting.
Valid opts
keys include:
name
(default: ssb-test + Number(new Date)
) - myTestName
: Sets the database in /tmp/myTestName
startUnclean
(default: false
) - true
: Don't delete an existing database before starting up.
keys
(default: scuttle-testbot generates a new set of random keys) - keys
: generated by ssb-keys.
CreateTestSbot.use
lets you add ssb-server plugins. use
can be chained the same as the ssb-server api.
With npm installed, run
$ npm install scuttle-testbot
MIT
FAQs
Spins up an empty, temporary ssb-server server that stores data in your temp folder
The npm package scuttle-testbot receives a total of 18 weekly downloads. As such, scuttle-testbot popularity was classified as not popular.
We found that scuttle-testbot demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers 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
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.