2.1.0 • Published 2 years ago

@meteor-it/fs v2.1.0

Weekly downloads
7
License
MIT
Repository
-
Last release
2 years ago

FS

Wrapper around node.js native fs library. Have same methods as fs, but promisified

Addictional methods

walkDir(dir, cb)

Asynchonously walks directory. Returns file list when done, cb is called when any directory was discovered

let filesAwaited = [];
let filesCont = [];
filesAwaited = await walkDir(__dirname, (file)=>{
    filesCont.push(file);
});

// filesAwaited will be same as filesCont

exists(file)

Returns true if file exists

isFile(file)

Returns true if 'file' is file

isDirectory(file)

Returns true if 'file' is directory

getReadStream/getWriteStream

Same as fs.createReadStream/fs.createWriteStream

2.1.0

2 years ago

1.2.20

5 years ago

1.2.19

5 years ago

1.2.18

5 years ago

1.2.17

5 years ago

1.2.16

5 years ago

1.2.14

5 years ago

1.2.13

5 years ago

1.2.11

5 years ago

1.2.9

5 years ago

1.2.8

5 years ago

1.2.7

5 years ago

1.2.6

6 years ago

1.2.4

6 years ago

1.2.3

6 years ago

1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.8

6 years ago

1.1.7

6 years ago

1.1.5

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.11

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

0.3.4

7 years ago

0.3.1

7 years ago

0.3.2

7 years ago

0.2.3

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.0.1

8 years ago

1.0.0

8 years ago