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

std

utils

Public
Val Town Utilities
Like
6
utils
Home
Code
7
file
1
parseImportMeta
3
serve-file
1
static
1
test
2
README.md
index.ts
Connections
Environment variables
Branches
3
Pull requests
2
Remixes
8
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: v108
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

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
AboutAlternativesPricingBlogNewsletterCareers
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.