Socket
Socket
Sign inDemoInstall

cmsdriven

Package Overview
Dependencies
8
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    cmsdriven

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


Version published
Weekly downloads
14
Maintainers
1
Created
Weekly downloads
 

Readme

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 --save

Use our SDK

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

// 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

Last updated on 10 Oct 2019

Did you know?

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc