Non-Partisan Magicians

    stack-size

    1.0.0 • Public • Published

    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

    Install

    npm i stack-size

    DownloadsWeekly Downloads

    3

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    3.56 kB

    Total Files

    4

    Last publish

    Collaborators

    • nivrith