uawdijnntqw1x1x1
IP : 216.73.217.47
Hostname : srv913213
Kernel : Linux srv913213 5.15.0-179-generic #189-Ubuntu SMP Tue May 5 18:20:56 UTC 2026 x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
OS : Linux
PATH:
/
var
/
www
/
yapwebtv.com
/
..
/
talentgenesis_admin_backend
/
node_modules
/
constantinople
/
README.md
/
/
# constantinople Determine whether a JavaScript expression evaluates to a constant (using Babylon). Here it is assumed to be safe to underestimate how constant something is. [](https://travis-ci.org/pugjs/constantinople) [](https://david-dm.org/pugjs/constantinople) [](https://www.npmjs.org/package/constantinople) ## Installation npm install constantinople ## Usage ```js var isConstant = require('constantinople'); if (isConstant('"foo" + 5')) { console.dir(isConstant.toConstant('"foo" + 5')); } if (isConstant('Math.floor(10.5)', {Math: Math})) { console.dir(isConstant.toConstant('Math.floor(10.5)', {Math: Math})); } ``` ## API ### isConstant(src, [constants, [options]]) Returns `true` if `src` evaluates to a constant, `false` otherwise. It will also return `false` if there is a syntax error, which makes it safe to use on potentially ES6 code. Constants is an object mapping strings to values, where those values should be treated as constants. Note that this makes it a pretty bad idea to have `Math` in there if the user might make use of `Math.random` and a pretty bad idea to have `Date` in there. Options are directly passed-through to [Babylon](https://github.com/babel/babylon#options). ### toConstant(src, [constants, [options]]) Returns the value resulting from evaluating `src`. This method throws an error if the expression is not constant. e.g. `toConstant("Math.random()")` would throw an error. Constants is an object mapping strings to values, where those values should be treated as constants. Note that this makes it a pretty bad idea to have `Math` in there if the user might make use of `Math.random` and a pretty bad idea to have `Date` in there. Options are directly passed-through to [Babylon](https://github.com/babel/babylon#options). ## License MIT
/var/www/yapwebtv.com/../talentgenesis_admin_backend/node_modules/constantinople/README.md