Socket
Socket
Sign inDemoInstall

@absolunet/fss

Package Overview
Dependencies
Maintainers
2
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@absolunet/fss

graceful-fs / fs-extra sync wrapper


Version published
Weekly downloads
133
decreased by-1.48%
Maintainers
2
Weekly downloads
 
Created
Source

@absolunet/fss

npm npm dependencies npms Travis CI Code style

graceful-fs / fs-extra sync wrapper

Install

$ npm install @absolunet/fss

Usage

const fss = require('@absolunet/fss');

fss.move('/path1/path2/path3', '/path4');

API mapper

fs is graceful-fs

fse is fs-extra

access

Maps fs.accessSync

appendFile

Maps fs.appendFileSync

chmod

Maps fs.chmodSync

chown

Maps fs.chownSync

close

Maps fs.closeSync

copy

Maps fse.copySync

copyFile

Maps fs.copyFileSync

emptyDir

Maps fse.emptyDirSync

ensureFile

Maps fse.ensureFileSync

ensureDir

Maps fse.ensureDirSync

Maps fse.ensureLinkSync

Maps fse.ensureSymlinkSync

exists

Maps fs.existsSync

fchmod

Maps fs.fchmodSync

fchown

Maps fs.fchownSync

fdatasync

Maps fs.fdatasyncSync

fstat

Maps fs.fstatSync

fsync

Maps fs.fsyncSync

ftruncate

Maps fs.ftruncateSync

futimes

Maps fs.futimesSync

lchmod

Maps fs.lchmodSync

lchown

Maps fs.lchownSync

Maps fs.linkSync

lstat

Maps fs.lstatSync

mkdir

Maps fs.mkdirSync

mkdirp

Maps fse.mkdirpSync

mkdirs

Maps fse.mkdirsSync

mkdtemp

Maps fs.mkdtempSync

move

Maps fse.moveSync

open

Maps fs.openSync

outputFile

Maps fse.outputFileSync

outputJson

Maps fse.outputJsonSync

pathExists

Maps fse.pathExistsSync

readdir

Maps fs.readdirSync

readFile

Maps fs.readFileSync

Maps fs.readlinkSync

read

Maps fs.readSync

readJson

Maps fse.readJsonSync

realpath

Maps fs.realpathSync

realpath.native

Maps fs.realpathSync.native

rename

Maps fs.renameSync

remove

Maps fse.removeSync

rmdir

Maps fs.rmdirSync

stat

Maps fs.statSync

Maps fs.symlinkSync

truncate

Maps fs.truncateSync

Maps fs.unlinkSync

utimes

Maps fs.utimesSync

writeFile

Maps fs.writeFileSync

write

Maps fs.writeSync

writeJson

Maps fse.writeJsonSync

API custom

scandir(root, type, [options])

Uses klaw-sync to scan directory for files or directories.
Return Array of files / directories

root

Required
Type: string
Path of directory to scan.

type

Required
Type: string
Scan for file or dir

options.recursive

Type: Boolean
Scan in subdirectories
Default: false

options.fullPath

Type: String
Return full absolute path instead of relative path from scanned directory
Default: false

options.pattern

Type: String
Filter results with minimatch pattern
Default: '**'

options.keepJunk

Type: Boolean
Keep junk files (also filters out .gitkeep)
Default: false

License

MIT © Absolunet

Keywords

FAQs

Package last updated on 21 Aug 2018

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc