1.0.0 • Published 5 years ago

stack-size v1.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

stack-size

CircleCI NPM Downloads node License MIT

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