• Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
std

std

utils

Val Town Utilities
Public
Like
5
utils
Home
Code
7
file
1
parseImportMeta
3
serve-file
1
static
1
test
2
README.md
index.ts
Connections
Environment variables
Branches
2
Pull requests
1
Remixes
7
History
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
parseImportMeta
/
README.md
Code
/
parseImportMeta
/
README.md
Search
8/7/2025
Viewing readonly version of main branch: v114
View latest version
README.md

Utilities for parsing import.meta.url

parseVal tests

If you're running code in Val Town, sometimes you want to know information about the val that's running. This module has functions for that.

Usage

Create val
import { parseVal } from "https://esm.town/v/std/utils/index.ts"; const val = parseVal(import.meta.url); console.log(val);

Prior art

  • @pomdtr/extractValInfo
  • @easrng/whoami
FeaturesVersion controlCode intelligenceCLIMCP
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
© 2026 Val Town, Inc.