Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
arango-tools
Advanced tools
ArangoJS describes itself as "The official ArangoDB low-level JavaScript client". The "low-level" part never really meant much to me in my inital usage. Over time I've been finding patterns in my own usage and accumulated workarounds, which I kept telling myself I would extract into a library. This is that library.
The makeDatabase
call returns a set of functions that allow you to query,
truncate and drop the database you just created.
Databases and collections that are asked for via makeDatabase
will be created
if they don't already exist.
let { makeDatabase } = await ArangoTools({ rootPass, url })
let {query, truncate, drop, collections} = await makeDatabase({
dbname: 'foo',
user,
password,
documentCollections: ['widgets'],
})
await collections.widgets.save({foo: "bar"})
let cursor = await query`
FOR widget IN widgets
FILTER widget.foo === "bar"
RETURN widget
`
await cursor.all()
// [{foo: "bar"}]
await drop()
Arango-tools also provides a helper function that generates a database name from the current file which is helpful for tests:
var response = await makeDatabase({
dbname: dbNameFromFile(__filename),
user: 'mike',
password: 'secret',
documentCollections: ['foos'],
})
This library is very focused on smoothing out the process of using Arango as a document store in a TDD workflow. Much of the other functionality of Arango will still require ArangoJS to access. TODO:
FAQs
tools for working with ArangoDB
The npm package arango-tools receives a total of 79 weekly downloads. As such, arango-tools popularity was classified as not popular.
We found that arango-tools 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
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.