Nearly Picked Makefiles

    my-node-fp
    TypeScript icon, indicating that this package has built-in type declarations

    0.5.0 • Public • Published

    Simple node programming utility

    Download Status Github Star Github Issues NPM version License

    Simple utility functions that can use node.

    Function list

    fs

    name description
    exists check file or directory exist, return boolean. exactly same depreciated fs.promise.exists funciton
    existsSync check file or directory exist, return boolean. exactly same depreciated fs.existsSync funciton
    getDirname get directory name. If targetPath is already directory return targetPath(not parent directory)
    getDirnameSync get directory name. If targetPath is already directory return targetPath(not parent directory)
    isDirectory if targetPath is directory, return true
    isDirectorySync if targetPath is directory, return true
    isEmptyDir check directory is empty
    isEmptyDirSync check directory is empty
    isDescendant check target directory is descendant of parent directory

    path

    | replaceSepToPosix | change sep to posix.sep | | replaceSepToWin32 | change sep to win32.sep | | startSepAppend | starts sep(or you can pass sep character) append if not start sep | | endSepAppend | ends sep(or you can pass sep character) append if not end sep | | startSepRemove | starts sep(or you can pass sep character) remove if start sep | | endSepRemove | ends sep(or you can pass sep character) remove if end sep |

    Keywords

    none

    Install

    npm i my-node-fp

    DownloadsWeekly Downloads

    164

    Version

    0.5.0

    License

    MIT

    Unpacked Size

    31.1 kB

    Total Files

    7

    Last publish

    Collaborators

    • jooni