npm

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

2.9.1 • 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.

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

27

Version

2.9.1

License

MIT

Unpacked Size

266 kB

Total Files

132

Last publish

Collaborators

  • banez
  • becomes