
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
fortune-fs
Advanced tools
This is a file system adapter for Fortune.js.
$ npm install fortune-fs --save
const path = require('path')
const fortune = require('fortune')
const fsAdapter = require('fortune-fs')
const store = fortune(recordTypes, {
adapter: [ fsAdapter, {
// Absolute path to database directory.
path: path.join(__dirname, 'db')
} ]
})
Option | Default | |
---|---|---|
concurrentReads | 128 | limits how many files can be read concurrently by Adapter.find() |
const path = require('path')
const fortune = require('fortune')
const fsAdapter = require('fortune-fs')
const store = fortune(recordTypes, {
adapter: [ fsAdapter, {
// Absolute path to database directory.
path: path.join(__dirname, 'db'),
concurrentReads: 32
} ]
})
If you have a large number of records (files), you may encounter Error: EMFILE: too many open files
. Set the concurrentReads
option to a lower value to resolve this.
This software is licensed under the MIT license.
FAQs
File system adapter for Fortune.
The npm package fortune-fs receives a total of 12 weekly downloads. As such, fortune-fs popularity was classified as not popular.
We found that fortune-fs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.