0.0.2 • Published 10 months ago
astracms v0.0.2
Official astracms API Client
This is the official typescript client for astracms.
Link to docs: https://astracms.com/docs Link to the official website: https://astracms.com
Install
npm install astracmsUsage example
import { createAstracmsClient } from "astracms";
const cms = createAstracmsClient({
blogId: "MY_BLOG_ID", // Go to your blog settings to get your blog id
});
const posts = await cms.posts.list();
const post = await cms.posts.get({ slug: "post-slug" });