Socket
Book a DemoInstallSign in
Socket

detect-indent-cli

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

detect-indent-cli

Detect the indentation of code

latest
Source
npmnpm
Version
3.1.0
Version published
Maintainers
1
Created
Source

detect-indent-cli

Detect the indentation of code

Install

npm install --global detect-indent-cli

Usage

$ detect-indent --help

  Usage
    $ detect-indent <file>
    echo <string> | detect-indent

  Options
    --verbose  Show indent type and amount

  Example
    $ echo '  foo\n  bar' | detect-indent | wc --chars
    2

    $ echo '  foo\n  bar' | detect-indent --verbose
    Type: space
    Amount: 2
  • detect-indent - API for this package
  • detect-newline-cli - Detect the dominant newline character

Keywords

cli-app

FAQs

Package last updated on 15 Sep 2025

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