New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

my-node-fp

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

my-node-fp

Simple node programming utility

  • 0.10.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5.7K
decreased by-10.91%
Maintainers
1
Weekly downloads
 
Created
Source

Simple node programming utility

ts Download Status Github Star Github Issues NPM version License code style: prettier

Simple utility functions that can use node.

Function list

fs

namedescription
existscheck file or directory exist, return boolean. exactly same depreciated fs.promise.exists funciton
existsSynccheck file or directory exist, return boolean. exactly same depreciated fs.existsSync funciton
getDirnameget directory name. If targetPath is already directory return targetPath(not parent directory)
getDirnameSyncget directory name. If targetPath is already directory return targetPath(not parent directory)
isDirectoryif targetPath is directory, return true
isDirectorySyncif targetPath is directory, return true
isEmptyDircheck directory is empty
isEmptyDirSynccheck directory is empty
isDescendantcheck target directory is descendant of parent directory

path

namedescription
basenamesReturn the last portion of a path, suffix can be string, string[]
replaceSepToPosixchange sep to posix.sep
replaceSepToWin32change sep to win32.sep
win32DriveLetterUpdownchange win32 drive letter (ex> c:) to upper or lower
startSepAppendstarts sep(or you can pass sep character) append if not start sep
endSepAppendends sep(or you can pass sep character) append if not end sep
startSepRemovestarts sep(or you can pass sep character) remove if start sep
endSepRemoveends sep(or you can pass sep character) remove if end sep

FAQs

Package last updated on 25 Feb 2024

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