Gathering detailed insights and metrics for extra-filesystem
Gathering detailed insights and metrics for extra-filesystem
Gathering detailed insights and metrics for extra-filesystem
Gathering detailed insights and metrics for extra-filesystem
npm install extra-filesystem
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
160 Commits
3 Watching
1 Branches
1 Contributors
Updated on 21 Sept 2024
TypeScript (98.26%)
JavaScript (1.74%)
Cumulative downloads
Total Downloads
Last day
1,100%
12
Compared to previous day
Last week
27.5%
1,221
Compared to previous week
Last month
1,049.1%
2,597
Compared to previous month
Last year
12%
5,693
Compared to previous year
23
1npm install --save extra-filesystem 2# or 3yarn add extra-filesystem
1function createTempDir(): Promise<string>
1function createTempDirSync(): string
1function createTempFile(): Promise<string>
1function createTempFileSync(): string
1function createTempName(): Promise<stirng>
1function createTempNameSync(): string
1function emptyDir(dirname: string): Promise<void>
1function emptyDirSync(dirname: string): void
1function ensureDir(dirname: string): Promise<void>
1function ensureDirSync(dirname: string): void
1function ensureFile(filename: string): Promise<void>
1function ensureFileSync(filename: string): void
1function pathExists(path: string): Promise<boolean>
1function pathExistsSync(path: string): boolean
1function readNDJSONFile<T>( 2 filename: string 3, encoding: BufferEncoding = 'utf-8' 4): AsyncIterableIterator<T>
1function readNDJSONFileSync<T>( 2 filename: string 3, encoding: BufferEncoding = 'utf-8' 4): IterableIterator<T>
1function readYAMLFile<T>( 2 filename: string 3, encoding: BufferEncoding = 'utf-8' 4): Promise<T>
1function readYAMLFileSync<T>( 2 filename: string 3, encoding: BufferEncoding = 'utf-8' 4): T
1function readJSONFile<T>( 2 filename: string 3, encoding: BufferEncoding = 'utf-8' 4): Promise<T>
1function readJSONFileSync<T>( 2 filename: string 3, encoding: BufferEncoding = 'utf-8' 4): T
1function writeJSONFile(
2 filename: string
3, data: unknown
4, options?: { spaces?: number }
5): Promise<void>
1function writeJSONFileSync(
2 filename: string
3, data: unknown
4, options?: { spaces?: number }
5): void
1function writeYAMLFile(filename: string, data: unknown): Promise<void>
1function writeYAMLFileSync(filename: string, data: unknown): void
1function move(oldPath: string, newPath: string): Promise<void>
1function moveSync(oldPath: string, newPath: string): void
1function copy(sourcePath: string, destinationPath: string): Promise<void>
1function copySync(sourcePath: string, destinationPath: string): void
1function remove(path: string): Promise<void>
1function removeSync(path: string): void
1function isDirectory(path: string): Promise<boolean>
1function isFile(path: string): Promise<boolean>
1function isWritable(path: string): Promise<boolean>
1function isReadable(path: string): Promise<boolean>
1function findAllFilenames(
2 dirname: string
3, predicate: (dirname: string) => boolean = _ => true
4): AsyncIterableIterator<string>
1function findAllDirnames(
2 dirname: string
3, predicate: (dirname: string) => boolean = _ => true
4): AsyncIterableIterator<string>
1function getLongExtension(filename: string): string
Get the longest possible extension.
1getLongExtension('file.tar.gz') // '.tar.gz'
1function getShortBasename(filename: string): string
Get the shortest possible basename.
1getShortBasename('file.tar.gz') // 'file'
1function readFileLineByLine(
2 filename: string
3, encoding: BufferEncoding = 'utf-8'
4): AsyncIterable<string>
1function* readFileLineByLineSync(
2 filename: string
3, encoding: BufferEncoding = 'utf-8'
4): IterableIterator<string>
1function writeIterableToFile( 2 filename: string 3, iterable: Iterable<string> | AsyncIterable<string> 4): Promise<void>
1function isSubPathOf(subject: string, object: string): boolean
1function checksumFile(algorithm: string, filename: string): Promise<string>
1function findUpPackageFilename(pathname: string): Promise<string | undefined>
1function findUpPackageFilenameSync(pathname: string): string | undefined
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
15 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More