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.0.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.0-py3-none-any.whl (55.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: w3av-1.0.0.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.0.tar.gz
Algorithm Hash digest
SHA256 2de0cbff163ca4d44d45d0cd48af85a61b15583a729f9cf0e11eed13e2a1e343
MD5 08a244b9ac208d9ee90a5b06cac952b8
BLAKE2b-256 960aa30d7ec29c225fd26693526c759ff078fff2b3d00cea27eeb829229979de

See more details on using hashes here.

File details

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

File metadata

  • Download URL: w3av-1.0.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fb6a9fb3a1ef08406c90f706296492273caae31ec4dc639fa40a2bd8c930df1e
MD5 f9ed59736390bd14f4d9972bee542bb6
BLAKE2b-256 a896402d2dfdd0c7e1fd4d006cffaa515c1ed3b4ab6199ae6a7804e9caa3301f

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