@becomes/cms-most
TypeScript icon, indicating that this package has built-in type declarations

2.8.0 • Public • Published

BCMS Most

This project is connecting BCMS Client and BCMS Backend API and providing useful tools for website frameworks like Gatsby, Nuxt and Next.

Framework implementations

BCMS Most has its implementation for 3 major frameworks at the moment (this number increase over time):

Those packages are just wrappers around the BCMS Most. If your favorite framework is not listed, you can always make custom implementation using BCMS Most API.

API Documentation

import { createBcmsMost } from '@becomes/cms-most';

async function main() {
  const most =
    /**
     * You can provide client and configuration object
     * if you have them. If not, the BCMS Most will
     * create a client get configuration from `bcms.config.js`
     * file located at PWD location.
     */
    createBcmsMost();

  await most.content.pull();
  console.log(
    await most.content.entry.findOne(
      'my_template',
      async (item) => item.meta.en.slug === 'my_entry_slug',
    ),
  );
}

main().catch((err) => {
  console.error(err);
  process.exit(1);
});

Readme

Keywords

Package Sidebar

Install

npm i @becomes/cms-most

Weekly Downloads

104

Version

2.8.0

License

MIT

Unpacked Size

264 kB

Total Files

91

Last publish

Collaborators

  • banez
  • becomes