
Security News
OWASP 2025 Top 10 Adds Software Supply Chain Failures, Ranked Top Community Concern
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.
@hilesystem/local
Advanced tools

Filesystem abstraction layer and common function wrappers.
import {
HileSystemLocal,
absolutePathFrom, pathFrom,
createDirectory, createFile,
readFileToBase64, readFileToBuffer, readFileToString,
dirIsEmpty, dirIsExecutable, dirIsReadable, dirIsVisible, dirIsWritable,
fileIsExecutable, fileIsReadable, fileIsVisible, fileIsWritable,
getStatus, isDirExists, isFileExists, isPathExists,
fileExtension, fileName, fileNameExt, filePath,
listContents, listDirectories, listFiles,
move,
remove, removeNonBlocking, removeSilent,
fileTruncate, writeFile, writeFileTail, writeJSON,
hash, hashCrc32, hashMd5, hashSha1, hashSha256, hashSha512, size,
} from "@hilesystem/local";
import * as hileSystem from "@hilesystem/local";
const isDirectoryCreated = await hileSystem.createDirectory("./test/");
If you prefer object-oriented style.
import { HileSystemLocal } from "@hilesystem/local";
const hileSystem = new HileSystemLocal();
const isDirectoryCreated = await hileSystem.createDirectory("./test/");
const paths = ["path", "to", "file.txt"];
const str = absolutePathFrom(paths) // "/user/me/path/to/file.txt"
const str = fileExtension("path/to/file.txt"); // "txt"
const str = fileName("path/to/file.txt"); // "file"
const str = fileNameExt("path/to/file.txt"); // "file.txt"
const str = filePath("path/to/file.txt"); // "path/to"
const str = pathFrom(["path", "to", "file.txt"]) // "path/to/file.txt"
const trueOrError = await createDirectory("path/to/dir", "0777", true);
const trueOrError = await createFile("path/to/dir", "0777");
const stringOrError = await readFileToBase64("path/to/img.png");
const bufferOrError = await readFileToBuffer("path/to/file.txt");
const stringOrError = await readFileToString("path/to/file.txt");
const trueOrError = await move("path/to/file.ext", "path/to-another/file.ext");
const trueOrError = await fileTruncate("path/to/file.ext");
const filePath = "./file.txt";
const data = "Text";
const options = { encoding: "utf8" };
const trueOrError = await writeFile(filePath, data, options);
const filePath = "./file.txt";
const data = "Text to add to the end of the file.";
const options = { encoding: "utf8" };
const trueOrError = await writeFileTail(filePath, data, options);
const filePath = "./file.json";
const data = { key: "value" };
const options = { encoding: "utf8" };
const config = {
sort: true,
space: "\t"
};
const trueOrError = await writeJSON(filePath, data, options, config);
const voidOrError = await remove("path/to/file.txt");
removeNonBlocking("path/to/file.txt");
removeSilent("path/to/file.txt");
const [status, error] = await getStatus("path/to/file.ext");
const trueOrFalse = await isDirExists("path/to/");
const trueOrFalse = await isFileExists("path/to/file.ext");
const trueOrFalse = await isPathExists("path/to/file_or_directory");
const booleanOrError = await dirIsEmpty("path/to/dir", true);
const trueOrError = await dirIsExecutable("path/to/dir");
const trueOrError = await dirIsReadable("path/to/dir");
const trueOrError = await dirIsVisible("path/to/dir");
const trueOrError = await dirIsWritable("path/to/dir");
const trueOrError = await fileIsExecutable("path/to/file.ext");
const trueOrError = await fileIsReadable("path/to/file.ext");
const trueOrError = await fileIsVisible("path/to/file.ext");
const trueOrError = await fileIsWritable("path/to/file.ext");
const arrayOfStringsOrError = await listContents("path/to/dir");
const arrayOfStringsOrError = await listDirectories("path/to/dir");
const arrayOfStringsOrError = await listFiles("path/to/dir");
const hash = await hash("path/to/file", "md5");
const hash = await hashCrc32("path/to/file");
const hash = await hashMd5("path/to/file");
const hash = await hashSha1("path/to/file");
const hash = await hashSha256("path/to/file");
const hash = await hashSha512("path/to/file");
const sizeInBytes = await size("path/to/file");
const sizeAsString = await size("path/to/file", true);
FAQs
Filesystem abstraction layer and common function wrappers
We found that @hilesystem/local 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
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.