Brooooooklyn / xattr

It provides support for manipulating extended attributes (xattrs) on modern Unix filesystems.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

@napi-rs/xattr

https://github.com/Brooooooklyn/xattr/actions

It provides support for manipulating extended attributes (xattrs) on modern Unix filesystems.

Usage

export function getAttribute(path: string, name: string): Promise<Buffer | null>
export function getAttributeSync(path: string, name: string): Buffer | null
export function setAttribute(path: string, name: string, value: Buffer | string): Promise<void>
export function setAttributeSync(path: string, name: string, value: Buffer | string): void
export function removeAttributeSync(path: string, name: string): void
export function removeAttribute(path: string, name: string): Promise<void>
export function listAttributes(path: string): Promise<Array<string>>
export function listAttributesSync(path: string): Array<string>

About

It provides support for manipulating extended attributes (xattrs) on modern Unix filesystems.

License:MIT License


Languages

Language:TypeScript 50.3%Language:Rust 47.1%Language:JavaScript 1.8%Language:Shell 0.8%