# fs-constants

> Require constants across node and the browser

Latest version **1.0.0** (published 2018-04-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install fs-constants
pnpm add fs-constants
yarn add fs-constants
bun add fs-constants
```

## 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.0 |
| Published | 2018-04-26 |
| First published | 2018-04-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 11 |
| Author | Mathias Buus |
| Maintainers | mafintosh |

## Links

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

## Recent versions

- 1.0.0 (latest) — 2018-04-26

## README

# fs-constants

Small module that allows you to get the fs constants across
Node and the browser. 

```
npm install fs-constants
```

Previously you would use `require('constants')` for this in node but that has been
deprecated and changed to `require('fs').constants` which does not browserify.

This module uses `require('constants')` in the browser and `require('fs').constants` in node to work around this


## Usage

``` js
var constants = require('fs-constants')

console.log('constants:', constants)
```

## License

MIT

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