
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
A node utility to handle saving text files.
This makes it easier to save text content to disk - for instance when a payload of content in an API request needs to be saved to the server as a static file.
Instantiate the FSDocs
class with the basePath
for the save location - must be an absolute path
const FSDocs = require('fsdocs')
const docsManager = new FSDocs('/path/to/save/loation)
docsManager.createFile(path, name, ext, content)
returns a promise with the absolute path of the created file
await docsManager.createFile('path', 'file-name', '.txt', 'File Content')
docsManager.readFile(path)
returns a promise with the content of the file
await docsManager.readFile('path/to/file.txt')
docsManager.listFiles(path)
returns a promise with an array of filenames
await docsManager.listFiles('path/to/dir')
docsManager.updateFile(path, content)
returns a promise with the absolute path of the created file
await docsManager.updateFile('path/to/file.txt', 'Updated File Content')
docsManager.deleteFile(path)
returns a promise with the absolute path of the deleted file
await docsManager.deleteFile('path/to/file.txt')
Read the JSDocs
2020 Adam Davis (ICS)
gi
FAQs
manager for saving provided doc to a filesystem
We found that fsdocs 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
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.