
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.
@tdreyno/pretty-please
Advanced tools
Pretty Please is a TypeScript library provides Tasks an alternative to Promises.
Pretty Please is a TypeScript library provides Tasks an alternative to Promises.
Documentation of this project is a work in progress. For now, take a look at the example below and lean heavily on TypeScript's information around the public API.
yarn add @tdreyno/pretty-please
npm install --save @tdreyno/pretty-please
const getFriendsNames = id =>
// Load data.
Task.fromPromise(fetch(`/user/${id}.json`))
// Parse JSON text into valid Person type.
.chain(parseUserData)
// Load all of a user's friends in parallel.
.chain(user =>
user.friends
.map(id => HTTP.get(`/user/${id}.json`).chain(parseUserData))
.chain(Task.all)
)
// Map to an array of friend's names.
.map(friends => friends.map(f => f.name));
// Prepares the task, but does not run anything.
const task = getFriendsNames(1);
// Run the task.
task.fork(
e => console.error(e),
names => console.log("Friend names", names)
);
Pretty Please is licensed under the the Hippocratic License. It is an Ethical Source license derived from the MIT License, amended to limit the impact of the unethical use of open source software.
FAQs
[](https://codeclimate.com/github/tdreyno/pretty-please/test_coverage) [](https:
The npm package @tdreyno/pretty-please receives a total of 1 weekly downloads. As such, @tdreyno/pretty-please popularity was classified as not popular.
We found that @tdreyno/pretty-please 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.