1.1.0 • Published 3 years ago

@nuskin/contentstack-utils v1.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

@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

1.1.0

3 years ago

1.0.0

3 years ago