is-hidden-file
    TypeScript icon, indicating that this package has built-in type declarations

    1.1.2 • Public • Published

    is-hidden-file

    npm version

    Check if a file/folder is hidden on all platforms.

    • Unix: Check file name starts with ..
    • Windows: Check if file hidden using native code.

    Installation

    • npm: npm i is-hidden-file
    • yarn: yarn add is-hidden-file

    Usage

    Node js

    const { isHiddenFile } = require("is-hidden-file");
    
    console.log(isHiddenFile(".git")) // true
    console.log(isHiddenFile("README.md")) // false

    Node js with typescript

    import { isHiddenFile } from "is-hidden-file";
    
    console.log(isHiddenFile(".git")) // true
    console.log(isHiddenFile("README.md")) // false

    License

    MIT

    Install

    npm i is-hidden-file

    DownloadsWeekly Downloads

    48

    Version

    1.1.2

    License

    MIT

    Unpacked Size

    6.92 kB

    Total Files

    11

    Last publish

    Collaborators

    • avatar