Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Latest commit

 

History

15 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

portbind

portbind mark

Scan source trees for deploy-safe 0.0.0.0 host binding and environment-driven PORT configuration.

JSR version 1.1.0 license MIT

Package: @theworker02/portbind · Site: GitHub Pages · Source: theworker02/portbind

Add from JSR

deno add jsr:@theworker02/portbind
import { scanPaths, scanText, DEFAULT_PATTERNS } from "@theworker02/portbind";

console.log(scanText('server.listen(process.env.PORT, "0.0.0.0")'));
console.log(scanPaths(["./src"]));
console.log(DEFAULT_PATTERNS);

Public API

  • scanText(text) — inspect one text value.
  • scanPaths(targets, options) — scan files, directories, and globs.
  • collectFiles(targets) — expand scan targets.
  • walk(path) — recursively enumerate files.
  • matchGlob(path, pattern) — compact glob matching.
  • formatHuman(result) — terminal-friendly output.
  • DEFAULT_PATTERNS, SKIP_DIRS, PACKAGE — documented configuration metadata.
  • ScanTextResult, FileMatch, ScanOptions, ScanResult — TypeScript interfaces.

CLI from source

git clone https://github.com/theworker02/portbind.git
cd portbind
node src/cli.js ./src

Development

node --test

Publishing

The canonical public package is JSR @theworker02/portbind, published using GitHub Actions trusted publishing.

License

MIT © 2026 theworker02

About

Scan source files and globs for 0.0.0.0 and PORT bind patterns. npm: https://www.npmjs.com/package/%40magnexis/portbind

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages