
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
file-file-system
Advanced tools
File File System works similarly to the fs module but everything is saved inside a file on the disk
Currently it supports:
To setup simply type npm install file-file-system --save in a console
Then in your script add const { FileFileSystem } = require("file-file-system")
To create a file system you just need to instantiate a FileFileSystem object. const fileSystem = FileFileSystem.createIfNotExist(fileName)
You may also use FileFileSystem.create(fileName) and FileFileSystem.load(fileName) but you must check if the filesystem exists or not first.
Get disk meta - var meta = fileSystem.diskMeta()
Save to disk - fileSystem.save()
Reload from disk - fileSystem.reload()
Check if file exists - var exists = fileSystem.exists(file)
Get file info - var stat = fileSystem.statFile(file)
Create file - fileSystem.createFile(file)
delete file - fileSystem.deleteFile(file)
Read from file - var content = fileSystem.readFile(file)
Read directory contents - var files = fileSystem.readDir(dir)
Write to file - fileSystem.writeFile(file, content)
Append to file - fileSystem.appendFile(file, content)
Rename/Move file - fileSystem.rename(file, newFile)
Copy file - fileSystem.copy(source, dest)
autoSave - Wether or not to automatically save the file to disk for you whenever you modify a file - Default true
format - The file system format (Normal, Flat) - Default normal
fileSize - The size the file is allowed to take up on the real disk (In kilobytes) - Default 64000 (64mb)
FAQs
A filesystem, but in a file
We found that file-file-system 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.