@becomes/cms-most

Utility for Becomes CMS used for client framework applications like Nuxt and Gatsby.
2,973
Install
npm install @becomes/cms-most
Latest Version:2.9.1
License:MIT
Last Updated:May 15, 2024
Links: npm
Maintainer: banez

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);
});

Version History

Version Released License
2.9.1 MIT
2.9.0 MIT
2.8.0 MIT
2.7.2 MIT
2.7.1 MIT
Pre-releases (14)
Version Released License
2.0.0-alpha.9 MIT
2.0.0-alpha.8 MIT
2.0.0-alpha.7 MIT
2.0.0-alpha.6 MIT
2.0.0-alpha.5 MIT