Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Table of Contents generated with DocToc
cnd
, intertype
)guy.${library_name}
guy.props.def_oneoff()
, therefore dependencies (which are declared
peer dependencies) will only be require()
d when needed.guy.props
: Define Propertiesguy.props.def: ( target, name, cfg ) ->
is just another name for Object.defineProperty()
.
guy.props.def_oneoff: ()
guy.async
: Asynchronous Helpersguy.async.defer: ( f ) ->
—equivalent to setImmediate f
guy.async.after: ( dts, f ) ->
—equivalent to setTimeout f, dts * 1000
. Observe that Δt must be
given in seconds (not milliseconds).
guy.async.sleep: ( dts ) ->
—await sleep 1
will resume after one second.
guy.nowait
: De-Asyncify JS Async FunctionsPeer Dependencies: abbr/deasync
guy.nowait.for_callbackable: ( fn_with_callback ) ->
—given an asynchronous function afc
that
accepts a NodeJS-style callback (as in afc v1, v2, ..., ( error, result ) -> ...
), returns a synchronous
function sf
that can be used without a callback (as in result = sf v1, v2, ...
).
guy.nowait.for_awaitable: ( fn_with_promise ) ->
—given an asynchronous function afp
that can be
used with await
(as in result = await afp v1, v2, ...
) returns a synchronous function f
that can be
used without await
(as in result = sf v1, v2, ...
).
FAQs
npm dependencies checker
The npm package guy receives a total of 40 weekly downloads. As such, guy popularity was classified as not popular.
We found that guy demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.