FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
stevekrouse
stevekrouseutils
Remix of std/utils
Public
Like
utils
Home
Code
6
file
1
parseImportMeta
3
serve-file
1
test
2
README.md
S
index.ts
Branches
1
Pull requests
Remixes
History
Environment variables
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in miliseconds.
Sign up now
Code
/
parseImportMeta
/
README.md
Code
/
parseImportMeta
/
README.md
Search
4/30/2025
README.md

Utilities for parsing import.meta.url

parseProject 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 { parseProject } from 'https://esm.town/v/std/utils@71-main/index.ts' const projectVal = parseProject(import.meta.url) console.log(projectVal)

Prior art

  • @pomdtr/extractValInfo
  • @easrng/whoami
Go to top
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Product
FeaturesPricing
Developers
DocsStatusAPI ExamplesNPM Package Examples
Explore
ShowcaseTemplatesNewest ValsTrending ValsNewsletter
Company
AboutBlogCareersBrandhi@val.town
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.