bun-scripts
Installation
$ curl https://bun.sh/install | bash
after this i opened my .bashrc and added the following line:
BUN_INSTALL="/root/.bun"
PATH="$BUN_INSTALL/bin:$PATH"
# as it wasn't added automatically, i added it manually
i restarted my terminal and it worked! ๐
working with .env and bun
# then i did a fancy stuff
echo PORT=5000 >> .env
touch http.js
// http.js
console.log(process.env.PORT)
// USING ENVIRONMENT VARIABLES WITHOUT DOTENV MODULES.
bun run http.js
checkout the code @repo
sugggest me what should i try next with bun
๐ค๐พConnect me on:
Twitter: ๐๏ธ@Abhayprajapati_
Github: ๐ง@theabhayprajapati
Top comments (4)
PSA: Running everything (but especially shell scripts from the web) as root is dangerous. It's not a coincidence that on Linux, user accounts have limited permissions.
And?
it was great ๐
Cool! ^.^ I think your post should've been about the "it was great" part and why it was great, but all fine. :P