New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@bobfrankston/jgrep

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bobfrankston/jgrep

Recursive grep for TypeScript/JavaScript source trees, with comment-stripping and filename-glob filters

latest
Source
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

@bobfrankston/jgrep

Recursive grep tailored for TypeScript / JavaScript source trees.

By default jgrep searches .ts files (and .js files only when no sibling .ts exists), skips node_modules, prev, recycle bins, and hidden directories, and follows real paths to avoid revisiting the same directory through symlinks/junctions.

Install

npm install -g @bobfrankston/jgrep

Usage

jgrep [options] pattern [startdir ...]

If no starting directories are given, jgrep searches y:\dev, y:\inetpub, and y:\x\bin (with WSL-style path translation when not on Windows).

Options

FlagMeaning
-cInclude comments when matching lines (default: strip // from non-TS files)
-s / -showShow each matching line with the match highlighted
-v / -verboseVerbose output (line text after each hit)
-d<n>Print directory names up to depth n while traversing
-ext .x .yAdd file extensions to consider (in addition to .ts)
-n / -name / -namesMatch filenames against glob patterns (e.g. *.json, package.*)

Examples

jgrep "TODO" y:\dev\utils
jgrep -ext .json -n package.* "homepage"
jgrep -s "RMFLogger"

Develop

tsc -w        # rebuild on save
node .        # run locally

The compiled index.js is the bin entry, so npm link or npm install -g . makes jgrep available on PATH.

Keywords

grep

FAQs

Package last updated on 30 Apr 2026

Related posts