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.
@cher-ami/mfs
Advanced tools
mfs
(micro-fs) is a nodejs fs wrapper that provides a collection of high-level functions for manipulating files and directories.
npm install @cher-ami/mfs
import { * as mfs } from '@cher-ami/mfs';
(async () => {
// create a new file in a non-existing directory
await mfs.createFile('/test/foo.txt', 'Hello World');
const content = await mfs.readFile('/test/foo.txt');
console.log(content); // -> "Hello World"
})();
function fileExists(path: string): Promise<boolean>
function createFile(path: string, content?: string): Promise<void>
function readFile(path: string): Promise<string>
function removeFile(path: string): Promise<boolean>
function copyFile(
src: string,
dest: string,
{
transform,
force,
}: { transform?: (content: string) => Promise<string>; force?: boolean }
): Promise<void>
function dirExists(path: string): Promise<boolean>
function readDir(path: string, recursive = true): Promise<string[]>
function removeDir(path: string): Promise<void>
function createDir(path: string): Promise<string | undefined>
function copyDir(
src: string,
dest: string,
{ force }: { force?: boolean } = {}
): Promise<void>
MIT
© Willy Brauner
FAQs
nodejs fs wrapper
The npm package @cher-ami/mfs receives a total of 309 weekly downloads. As such, @cher-ami/mfs popularity was classified as not popular.
We found that @cher-ami/mfs demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 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
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.