# fs-extended-attributes

> Native module to set fs extended attributes cross platform

Latest version **1.0.1** (published 2018-05-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install fs-extended-attributes
pnpm add fs-extended-attributes
yarn add fs-extended-attributes
bun add fs-extended-attributes
```

Provides the command `fsx`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2018-05-18 |
| First published | 2018-03-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 198.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 16 |
| Author | Mathias Buus |
| Maintainers | mafintosh |

## Links

- npm: https://www.npmjs.com/package/fs-extended-attributes
- Repository: https://github.com/mafintosh/fs-extended-attributes
- Issues: https://github.com/mafintosh/fs-extended-attributes/issues
- npm.io page: https://npm.io/package/fs-extended-attributes

## Dependencies (2)

- [napi-macros](https://npm.io/package/napi-macros.md) ^1.3.0
- [node-gyp-build](https://npm.io/package/node-gyp-build.md) ^3.3.0

## Recent versions

- 1.0.1 (latest) — 2018-05-18
- 1.0.0 — 2018-05-18
- 0.0.0 — 2018-03-27

## README

# fs-extended-attributes

Native module to do cross platform file attributes.

```
npm install fs-extended-attributes
```

Uses setxattr, getxattr on Linux / Mac and Alternate Data Streams on Windows (NTFS)

[![build status](https://travis-ci.org/mafintosh/fs-extended-attributes.svg?branch=master)](https://travis-ci.org/mafintosh/fs-extended-attributes)
[![Build status](https://ci.appveyor.com/api/projects/status/os507604sys2dbj8/branch/master?svg=true)](https://ci.appveyor.com/project/mafintosh/fs-extended-attributes/branch/master)

## Usage

``` js
const fsx = require('fs-extended-attributes')

// assuming index.js exists as a file
fsx.set('./index.js', 'user.foo', 'hello', function () {
  fsx.get('./index.js', 'user.foo', console.log)
})
```

## CLI

There is also a CLI

```
npm install -g fs-extended-attributes
fsx set ./index.js user.foo hello
fsx get ./index.js user.foo # prints hello
```

## License

MIT

---
_Source: https://npm.io/package/fs-extended-attributes · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
