List of useful npx (NPM Package Runner) commands.
Using NPX we can execute/run node binaries without the need to install it locally or globally.
| class MyPromise { | |
| callbacks = [] | |
| state = 'pending' | |
| value = null | |
| constructor(fn) { | |
| fn(this._resolve.bind(this)) | |
| } | |
| then(onFulfilled) { | |
| return new Promise(resolve => { | |
| this._handle({ |
| function Queue<T>() { | |
| let data: Record<string, T> = {} | |
| let head = 0 | |
| let tail = 0 | |
| this.enqueue = function(item: T): void { | |
| data[tail] = item; | |
| tail++; | |
| } | |
List of useful npx (NPM Package Runner) commands.
Using NPX we can execute/run node binaries without the need to install it locally or globally.