JSPM

@napi-rs/xattr

1.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7711
  • Score
    100M100P100Q142717F
  • License MIT

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

Package Exports

  • @napi-rs/xattr
  • @napi-rs/xattr/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@napi-rs/xattr) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@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>