This document describes how to use this library to extract page content from a Zesty page.
npm install zesty-content-jsThis document describes how to use this library to extract page content from a Zesty page.
---
```
npm install zesty-content-js
`
const { getContent } = require('zesty-content-js');
async function foo() {
const url = 'https://mnhh997z-dev.preview.zestyio.com/z/content/511.json'; // your zesty website URL
const content = await getContent(url);
}
`
The resulting content would look something like this:
` A Simple Page is often the most common page template on a website and is used for pages with general information. This layout is great for pages such as "About Us," "Mission Statement," "Basic Team Pages," "Service pages," and other simpler pages which don't require a unique layout. A standrad page can have: Paragraphs can have italic and bold styles with the WYSIWIG. They may also have inline images along side tables. A standrad page can use indented text for quotes or establishing lists without bullets, And links and centered text or right aligned text. Horizontal Rules: ``Like Headers

Here is a Table:
A B C 1 A1 B1 C1 2 A2 B2 C2 3 A3 B3 C3
---