
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
a toolbelt of deceit
npm install liar
var promise = require('liar');
###all
promise.all(array of promises)
returns a promise for an array of all the responses, returns an error if any of the promises throw errors. Returned values are in the same order as the input array.
###some
promise.some(array of promises)
Similar to all but will only throw an error if all of the promises throw errors, otherwise returns an array of whichever values succeded in the order that they completed, on error returns an array of errors.
###map
promise.map(array of promises, function)
Takes the array of values, applies function to them, and returns a promise for all the values. Function will be called with a value (not a promise) and may return either a promise or a value, array can filled with promises or values or a mixture.
###race
promise.race(array of promises)
resolved with whatever value or error that resolves first.
###cast
promise.cast(value or promise)
If it's a promise, returns it, if it's a value, returns a promise that resolves to it.
###use
promise.use(value or promise, function)
If the value is a promise, apply the function to the value it resolves into and return a promise for that, otherwise apply the function to the value and return the result.
###resolve
promise.resolve(value)
create a promise that is resolved with this value.
###reject
promise.reject(value)
create a promise that is rejected with this value.
MIT
FAQs
cast a lie
The npm package lie-cast receives a total of 4 weekly downloads. As such, lie-cast popularity was classified as not popular.
We found that lie-cast demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.