Naughty Pterodactyl Maid

    assert-warning

    0.0.2 • Public • Published

    I assail my code with assertions and sometimes an assertion is wrong while the code itself is fine.

    For these cases I don't want assert to stop execution in production.

    Still, an exception is thrown in a setTimeout so that error logging can still be used.

    In dev (window.location.hostname==='localhost' or process.env['NODE_ENV'] !== 'production') require('assert-warning') behaves like expected and stops execution.

    Check the source code for more information, it's only couples of lines big.

    Keywords

    none

    Install

    npm i assert-warning

    DownloadsWeekly Downloads

    10

    Version

    0.0.2

    License

    none

    Last publish

    Collaborators

    • brillout