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.

Moved to https://pypi.org/project/sawari

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.6.tar.gz (54.3 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.6-py3-none-any.whl (63.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: w3av-1.0.6.tar.gz
  • Upload date:
  • Size: 54.3 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.6.tar.gz
Algorithm Hash digest
SHA256 32b105595ce59ef5255c9c7eca03c36ae6bae5f8dd9888487032cd9d83e1bea1
MD5 372c77cfda628416590b75dd615f8118
BLAKE2b-256 6353a9d43880c490ba4ee714b55eb7feda3cb85528af877c16f0e0144cdbf110

See more details on using hashes here.

File details

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

File metadata

  • Download URL: w3av-1.0.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 d8fb445453f784d916aa6990fbbc4a67a7a2ada882f173c3f0fb76bbeb38eff4
MD5 36f1fc7736b94c0c3e0442cedfb1e6b5
BLAKE2b-256 2c8005e22b734705d0937d6d9f2ecf15d533db00293d2fc08970ae1a8ea2d11c

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