stack-size
v1.0.0
Published
Get Maximum Call Stack Size of JS runtime
Downloads
12
Maintainers
Readme
stack-size
Get Maximum Call Stack Size
Highlights
Super Fast
Written in Typescript
Async and Sync methods
Returns Promise
Usage
Get Maximum Call Stack Size that causes stack overflow
// async
const { stackSize } = require('stack-size');
stackSize();
.then((result) => {
console.log(result); //15339
});
// sync
const { stackSizeSync } = require('stack-size');
let result = stackSizeSync();
console.log(result) // 15339
License
MIT © Nivrith Mandayam Gomatam