Skip to main content

extract URLs, strings, and more from JavaScript code

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

w3av

Extract URLs, strings, and more from JavaScript code using tree-sitter.

Features

  • URLs Mode - Extract API endpoints, URLs, and paths with intelligent variable resolution
  • Strings Mode - Extract all string literals and template strings
  • Tree Mode - Visualize Abstract Syntax Tree structure
  • Inspect Mode - Discover node types and code patterns
  • Query Mode - Custom tree-sitter queries for pattern matching

Installation

w3av requires at least Python 3.11

pip install w3av

Usage

Read more in the documentation

Extract URLs and API endpoints

w3av urls app.js --include-templates
w3av urls bundle.js --context '{"API_URL":"https://api.example.com"}'

Find potential secrets

w3av strings app.js --min 20 | grep -i "key\|token\|secret"

Visualize code structure

w3av tree app.js --only-named

Custom pattern matching

w3av query app.js --query '(function_declaration name: (identifier) @name)'

Related Tools

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

w3av-1.0.5.tar.gz (54.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

w3av-1.0.5-py3-none-any.whl (63.4 kB view details)

Uploaded Python 3

File details

Details for the file w3av-1.0.5.tar.gz.

File metadata

  • Download URL: w3av-1.0.5.tar.gz
  • Upload date:
  • Size: 54.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.9 Darwin/21.6.0

File hashes

Hashes for w3av-1.0.5.tar.gz
Algorithm Hash digest
SHA256 949ee48a643380f5576d9d7497652ecbf70832261af09eddb05c29cf892d58bc
MD5 a85ee5f2f8ce7bd056a3c432f61cbd71
BLAKE2b-256 e3a42022544d7fece74c96d07a1c6a5f618e10fa937a101a2f33c054e9d3858b

See more details on using hashes here.

File details

Details for the file w3av-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: w3av-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 63.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.9 Darwin/21.6.0

File hashes

Hashes for w3av-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 5293772fcc47cd92bb23b892e3d4b00f77d73d46f3f496fda127fcb1f832c7c5
MD5 bc06730e42882270102ce70739766bb1
BLAKE2b-256 282d1d574b4b5b99424001743c91de8cc011769750277682e4f33e6208f9b44e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page