How to use the @geut/chast.createGroup function in @geut/chast

To help you get started, we’ve selected a few @geut/chast examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github geut / chan / packages / chan-core / transformer.js View on Github external
function findGroupOrCreate(group, action) {
  let groupNode = select(`group[name=${group}]`, action);

  if (groupNode) {
    return groupNode;
  }

  groupNode = createGroup({ name: group });
  action.children.push(groupNode);
  return groupNode;
}

@geut/chast

Unist compatible spec for changelogs and helpers to nodes creation

ISC
Latest version published 3 years ago

Package Health Score

46 / 100
Full package analysis

Similar packages