finki-main
main
|
Last change
on this file since 81bc7da was 81bc7da, checked in by Klimentina Efremova <klimentina08642@…>, 3 months ago |
|
Initial commit
|
-
Property mode
set to
100644
|
|
File size:
528 bytes
|
| Line | |
|---|
| 1 | # fs-constants
|
|---|
| 2 |
|
|---|
| 3 | Small module that allows you to get the fs constants across
|
|---|
| 4 | Node and the browser.
|
|---|
| 5 |
|
|---|
| 6 | ```
|
|---|
| 7 | npm install fs-constants
|
|---|
| 8 | ```
|
|---|
| 9 |
|
|---|
| 10 | Previously you would use `require('constants')` for this in node but that has been
|
|---|
| 11 | deprecated and changed to `require('fs').constants` which does not browserify.
|
|---|
| 12 |
|
|---|
| 13 | This module uses `require('constants')` in the browser and `require('fs').constants` in node to work around this
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 | ## Usage
|
|---|
| 17 |
|
|---|
| 18 | ``` js
|
|---|
| 19 | var constants = require('fs-constants')
|
|---|
| 20 |
|
|---|
| 21 | console.log('constants:', constants)
|
|---|
| 22 | ```
|
|---|
| 23 |
|
|---|
| 24 | ## License
|
|---|
| 25 |
|
|---|
| 26 | MIT
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.