Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@joe-sh/pnpm-api-adapters-todos

This package uses the axios api adapter. It doesn't do much since it's a simple example, but in the real world this could provide a simpler interface for what the bare api adapter does.

readme

Example Package For Loading Todos using JSONPlaceholder API Adapters

This package uses the axios api adapter. It doesn't do much since it's a simple example, but in the real world this could provide a simpler interface for what the bare api adapter does.

Installation

pnpm i @joe-sh/pnpm-api-adapters-todos

Usage

const loadTodos = require('@joe-sh/pnpm-api-adapters-todos');
loadTodos().then((data) => console.log(data));

// Optionally load a single todo by passing its ID
loadTodos(2).then((data) => console.log(data));