Catalog npm
PACKAGE EXPLORERView in registry

420kit-utils

npm

Shared utilities for 420kit projects - phrase system and media generation

cmscontentgeneratormediaphrase
Versions collected1
Direct dependencies0From release 1.0.0
Last observed20 Oct, 19:59 UTC

README

Current package documentation

420kit-shared

Shared utilities for 420kit projects providing phrase system and media generation functionality.

Installation

npm install 420kit-shared

Usage

BuildTimePhraseSystem

import { BuildTimePhraseSystem } from '420kit-shared';

const phraseSystem = new BuildTimePhraseSystem();
const selections = phraseSystem.getBuildSelections();
const phrase = phraseSystem.getPhrase('group', 'key', selections);

DynamicPhraseSystem

import { DynamicPhraseSystem } from '420kit-shared';

const phraseSystem = new DynamicPhraseSystem();
phraseSystem.addPhraseGroup('example', {
  greeting: ['Hello', 'Hi', 'Hey']
});
const randomGreeting = phraseSystem.getPhrase('example', 'greeting');

MediaGenerator

import { MediaGenerator } from '420kit-shared';

const mediaGenerator = new MediaGenerator({
  baseDir: process.cwd(),
  imageDir: 'images',
  videoDir: 'videos',
  outputDir: process.cwd()
});

const result = await mediaGenerator.generateAllLists();

Classes

  • BuildTimePhraseSystem - Build-time phrase selection with seeded randomization
  • DynamicPhraseSystem - Runtime phrase management with random selection
  • MediaGenerator - Generate media lists for images and videos

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
1.0.0Registry latest11 Oct 20250

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 19:59 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:7bce41588600f4ff432f28d21d8f7a5eaa0b06d2aed2231ee239addefa9e0d2a