Skip to content

hville/browse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

browse

because it should not be so complicated - run code in browser with watch mode and reload

WhyHowLicense

Why

  • need to just run a file in browser with no side effects (cache and temp files)
  • Parcel CLI always creates .parcel-cache folders, even with --no-cache
  • Vite CLI creates .parcel-cache folders
  • Snowpack CLI serves a whole folder

How

Global

Once: npm i -g @hugov/browse Anywhere: browse pathToMyScript.js

Local

Once: npm i -D @hugov/browse Anywhere: npx browse pathToMyScript.js

Limitations

  • Only chrome (uses Chrom Launcher and flags)
  • no html entry for now (script/modules only)

License

MIT © Hugo Villeneuve

About

run code in browser

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published