Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

is-dotfile

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-dotfile

Return true if a file path is (or has) a dotfile. Returns false if the path is a dot directory.

  • 2.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created

What is is-dotfile?

The is-dotfile npm package is a utility that helps determine if a given filename is a dotfile. Dotfiles are typically hidden files in Unix-like operating systems, often used for configuration purposes.

What are is-dotfile's main functionalities?

Check if a filename is a dotfile

This feature allows you to check if a given filename is a dotfile. A dotfile is a file whose name begins with a dot ('.'). The code sample demonstrates checking two filenames: '.gitignore' (which is a dotfile) and 'index.js' (which is not).

const isDotfile = require('is-dotfile');
console.log(isDotfile('.gitignore')); // true
console.log(isDotfile('index.js')); // false

Other packages similar to is-dotfile

Keywords

FAQs

Package last updated on 30 May 2017

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