Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
extra-filesystem
Advanced tools
Readme
npm install --save extra-filesystem
# or
yarn add extra-filesystem
function createTempDir(): Promise<string>
function createTempDirSync(): string
function createTempFile(): Promise<string>
function createTempFileSync(): string
function createTempName(): Promise<stirng>
function createTempNameSync(): string
function emptyDir(dirname: string): Promise<void>
function emptyDirSync(dirname: string): void
function ensureDir(dirname: string): Promise<void>
function ensureDirSync(dirname: string): void
function ensureFile(filename: string): Promise<void>
function ensureFileSync(filename: string): void
function pathExists(path: string): Promise<boolean>
function pathExistsSync(path: string): boolean
function readNDJSONFile<T>(
filename: string
, encoding: BufferEncoding = 'utf-8'
): AsyncIterableIterator<T>
function readNDJSONFileSync<T>(
filename: string
, encoding: BufferEncoding = 'utf-8'
): IterableIterator<T>
function readYAMLFile<T>(
filename: string
, encoding: BufferEncoding = 'utf-8'
): Promise<T>
function readYAMLFileSync<T>(
filename: string
, encoding: BufferEncoding = 'utf-8'
): T
function readJSONFile<T>(
filename: string
, encoding: BufferEncoding = 'utf-8'
): Promise<T>
function readJSONFileSync<T>(
filename: string
, encoding: BufferEncoding = 'utf-8'
): T
function writeJSONFile(
filename: string
, data: unknown
, options?: { spaces?: number }
): Promise<void>
function writeJSONFileSync(
filename: string
, data: unknown
, options?: { spaces?: number }
): void
function writeYAMLFile(filename: string, data: unknown): Promise<void>
function writeYAMLFileSync(filename: string, data: unknown): void
function move(oldPath: string, newPath: string): Promise<void>
function moveSync(oldPath: string, newPath: string): void
function copy(sourcePath: string, destinationPath: string): Promise<void>
function copySync(sourcePath: string, destinationPath: string): void
function remove(path: string): Promise<void>
function removeSync(path: string): void
function isDirectory(path: string): Promise<boolean>
function isFile(path: string): Promise<boolean>
function isWritable(path: string): Promise<boolean>
function isReadable(path: string): Promise<boolean>
function findAllFilenames(
dirname: string
, predicate: (dirname: string) => boolean = _ => true
): AsyncIterableIterator<string>
function findAllDirnames(
dirname: string
, predicate: (dirname: string) => boolean = _ => true
): AsyncIterableIterator<string>
function getLongExtension(filename: string): string
Get the longest possible extension.
getLongExtension('file.tar.gz') // '.tar.gz'
function getShortBasename(filename: string): string
Get the shortest possible basename.
getShortBasename('file.tar.gz') // 'file'
function readFileLineByLine(
filename: string
, encoding: BufferEncoding = 'utf-8'
): AsyncIterable<string>
function* readFileLineByLineSync(
filename: string
, encoding: BufferEncoding = 'utf-8'
): IterableIterator<string>
function writeIterableToFile(
filename: string
, iterable: Iterable<string> | AsyncIterable<string>
): Promise<void>
function isSubPathOf(subject: string, object: string): boolean
function checksumFile(algorithm: string, filename: string): Promise<string>
function findUpPackageFilename(pathname: string): Promise<string | undefined>
function findUpPackageFilenameSync(pathname: string): string | undefined
FAQs
```sh npm install --save extra-filesystem # or yarn add extra-filesystem ```
The npm package extra-filesystem receives a total of 20 weekly downloads. As such, extra-filesystem popularity was classified as not popular.
We found that extra-filesystem demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.