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.1.tar.gz (50.7 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.1-py3-none-any.whl (55.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: w3av-1.0.1.tar.gz
  • Upload date:
  • Size: 50.7 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.1.tar.gz
Algorithm Hash digest
SHA256 019f6c75040b4401af36c710e8250de2ade8d0623415f808f7f9b3121a855ee5
MD5 7eb491093c228f176b169dceab7e5e96
BLAKE2b-256 7c971517c381c11536a9176ebeb028b27f5f7b726c27885e6b62e2e9cacf3ab6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: w3av-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 55.1 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e2d2e9a879265a2d763f2c3db8612f4bca7d679e811ab9427ef114b039143669
MD5 c93708fc15e8ef21e46e65be97a3ac8a
BLAKE2b-256 3d228ad9627b3791dd1ae123697bee1908181ae0fb4509220a1e7668b06a1a28

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