@nuskin/contentstack-utils
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

@nuskin/contentstack-utils

A set of boiler plate classes that provide getter functions for contentstack

Installing

Usng npm:

npm add @nuskin/contentstack-utils

Usng yarn:

yarn add @nuskin/contentstack-utils

Example usage

import { WebsiteService } = require('@nuskin/contentstack-utils')

const websiteService = new WebsiteService({
  api_key: '<your_api_key>',
  delivery_token: '<your_delivery_token>',
  environment: '<your_environment>'
}); 

const getPage = async () => {
  return await websiteService.getPage('abc123');
};

const myPageEntry = getPage();

Resources

  • Changelog could go here

License

MIT

Package Sidebar

Install

npm i @nuskin/contentstack-utils

Weekly Downloads

1

Version

1.1.0

License

MIT

Unpacked Size

8.63 kB

Total Files

11

Last publish

Collaborators

  • nkranendonk
  • emoore
  • nuskin-cws
  • klau
  • rellenberger