You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

fs-io

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fs-io

Promise fs

1.0.0
Source
npmnpm
Version published
Maintainers
1
Created
Source

fs-io

###Russian Promise fs стандартного модуля

npm зависимости

  • base-io
  • bluebird

Использование

Инициализация

'use strict';

var fs = require('fs-io');

Пример использования

fs.readdir('')
.then((files) => {
	// Работа с данными
})
.catch((error) => {
	// Обработка ошибки
});

Список методов

appendFile,
open,
close,
ftruncate,
chown,
fchown,
lchown,
chmod,
fchmod,
lchmod,
stat,
fstat,
lstat,
link,
symlink,
readlink,
realpath,
unlink,
rmdir,
mkdir,
readdir,
utimes,
futimes,
fsync,
write,
read,
writeFile,
readFile

Не обязательно использовать полные пути так как занимается метод fs.normalize('relative path') -> absolute path или можно использовать полный путь. ###English Promise fs standard module

npm depending

  • base-io
  • bluebird

Using

Initialization

'use strict';

var fs = require('fs-io');

Example using

fs.readdir('')
.then((files) => {
	// Data handling
})
.catch((error) => {
	// Error processing
});

List of methods

appendFile,
open,
close,
ftruncate,
chown,
fchown,
lchown,
chmod,
fchmod,
lchmod,
stat,
fstat,
lstat,
link,
symlink,
readlink,
realpath,
unlink,
rmdir,
mkdir,
readdir,
utimes,
futimes,
fsync,
write,
read,
writeFile,
readFile

It is not necessary to use the full path as it takes fs.normalize method ( 'relative path') -> absolute path, or you can use the full path.

Keywords

fs

FAQs

Package last updated on 08 May 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts