Skip to content

codehz/bun-xattr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bun-xattr

Bun wrapper for getting, setting, removing and listing extended attributes on files.

OS Support: macOS and Linux (I will try to add support for windows via NtSetEaFile/NtQueryEaFile in future)

usage:

import { setxattr, listxattr, getxattr, removexattr } from "bun-xattr";

const file = "./path/to/file";
setxattr(file, "user.mime", "text/html");
console.log(listxattr(file));
console.log(getxattr(file, "user.mime"));
removexattr(file, "user.mime");

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages