Skip to content

Instantly share code, notes, and snippets.

View bjbagher's full-sized avatar
👀

Bahram Bagher bjbagher

👀
View GitHub Profile
/**
@func
log how long it takes to run a block of code
- for a supplied number of times
@warning
the supplied func runs in a loop
- so first make sure there are no log statements in the func
- either comment them out, or replace them with lMock...
- const l = s => undefined; //lMock
@LongLiveCHIEF
LongLiveCHIEF / README.md
Last active July 21, 2025 20:37
Run node, npm, npx, yarn as container

Developing with Node, without installing node!

Note: currently only works on *nix systems (until a powershell script can be created)

With the technique below, you can run node, npm, npx, or yarn commands as if the programs were installed natively on your system, and you won't even know the difference! This includes any ports that your app or dev process will start up and use for development, as well as compatibility with persistent npm config --global cli usage.

See more in the Usage section below.