Socket
Book a DemoInstallSign in
Socket

@cmsdriven/headless

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cmsdriven/headless

npm package for cmsdriven content managment system build for any modern web app

latest
npmnpm
Version
3.0.1
Version published
Maintainers
1
Created
Source

Headless CMS

Create content in our platform and fetch it from our SDK

Visit the website: cmsdriven.io

Note: There is an online chat support ready to help you with any question

Install the dependancies

npm i @cmsdriven/headless --save

Use our SDK

// Import the cmsdriven sdk
const cmsdriven = require("@cmsdriven/headless");

// Create a client for your token
const client = cmsdriven.createClient({
    accessToken: "YOUR_ACCESS_TOKEN_HERE"
});

// Ask for a specific page
this.pageComponents = await client.getPage('/test/page', 'http://dev.mydomain.com');

// Get all the pages by environment
this.pageComponents = await client.getAllPages('prod');

// Get all the pages by environment and specific tag 
this.pageComponents = await client.getPagesByTag('MY_CUSTOM_TAG', 'staging');

FAQs

Package last updated on 31 Oct 2019

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.