# fs-mode-to-string

> Create a Unix-like permissions string from an fs.stat file or directory mode, eg `0777` to `-rwxrwxrwx`

Latest version **0.0.2** (published 2016-01-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install fs-mode-to-string
pnpm add fs-mode-to-string
yarn add fs-mode-to-string
bun add fs-mode-to-string
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2016-01-04 |
| First published | 2016-01-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Andreas Pizsa |
| Maintainers | andreaspizsa |
| Keywords | file,directory, attributes,access,rights,permissions,symbolic,numeric,owner,group,fs,stat,mode,string,rwx,read,write,execute,directory,ls,file system,chmod |

## Links

- npm: https://www.npmjs.com/package/fs-mode-to-string
- Repository: https://github.com/AndreasPizsa/fs-mode-to-string
- Homepage: https://github.com/AndreasPizsa/fs-mode-to-string#readme
- Issues: https://github.com/AndreasPizsa/fs-mode-to-string/issues
- npm.io page: https://npm.io/package/fs-mode-to-string

## Alternatives

- [unionfs](https://npm.io/package/unionfs.md) — 2.2M weekly downloads
- [path-starts-with](https://npm.io/package/path-starts-with.md) — 35.9K weekly downloads
- [redzip](https://npm.io/package/redzip.md) — 1.2K weekly downloads
- [vscode-anymatch](https://npm.io/package/vscode-anymatch.md) — 848 weekly downloads
- [@ledgerhq/coin-filecoin](https://npm.io/package/@ledgerhq/coin-filecoin.md) — 793 weekly downloads

## Recent versions

- 0.0.2 (latest) — 2016-01-04
- 0.0.1 — 2016-01-02

## README

fs-mode-to-string
=================
> Create a Unix-like permissions string from an `fs.stat` file or directory `mode`, eg `0777`to `-rwxrwxrwx`

![Travis](https://img.shields.io/travis/AndreasPizsa/fs-mode-to-string.svg?style=flat-square)
![Downloads](https://img.shields.io/npm/dm/fs-mode-to-string.svg?style=flat-square)


# Install

    npm i -S fs-mode-to-string

# Usage

```` javascript
var fs = require('fs');
var modeString = require('fs-mode-to-string');

// Pass an fs.stat object
var dirMode = fs.statSync('.');
console.log(modeString(dirMode));
// -> 'drwxr--r--'

// Pass an integer
console.log(modeString(0777));
// -> '-rwxrwxrwx'

````

# License
[MIT](README.md)

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