1.0.4 • Published 2 years ago

umbraco-client v1.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

umbraco-client

npm stat npm version

JavaScript client for Umbraco using the Content Delivery API.

Quickstart

Install the client from npm:

npm install umbraco-client

# Alternative package managers
yarn add umbraco-client
pnpm install umbraco-client

Import umbraco-client, and create a new client instance. Below is a simple example in JavaScript.

// umbraco-client.js
import createClient from 'umbraco-client'

export const client = createClient('https://example.com')

Usage

import { client } from './umbraco-client'

const homepage = await client.getContentById('homePage')

const blogPosts = await client.getContentByType('blogPost', {
  sort: { type: 'createDate', order: 'asc' }
})
1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago