Catalog npm
Back to packageRELEASE DETAILS

1.0.0

npm

420kit-utils

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

cmscontentgeneratormediaphrase
Published11 Oct 2025
Direct dependencies0
Transitive dependenciesNot calculated

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.

Declared dependencies 0

Native requirements
0 direct targetsNot calculated transitive count
No declared dependencies in this collected response

Declarations describe requirements; they are not a resolved dependency graph.

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-OG/rWJ68DuTo/0Ce6s/nf6ObcOmNL6zhM4q3xvIC5Yil+qIRfGKfqx3XltBaBHiv2N0D4X6JYe+FcqcRoWeStQ==",
  "shasum": "d40f735bf5b9171f96c068440ed8a1caadb1cf07",
  "tarball": "https://registry.npmjs.org/420kit-utils/-/420kit-utils-1.0.0.tgz",
  "fileCount": 3,
  "unpackedSize": 11301,
  "signatures": [
    {
      "keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U",
      "sig": "MEUCICjeMdbGYfVwhWwv3ftsUjRNb8w4eawwZNq3CPsAUc8EAiEAifLDjNgGAARyGtVXxawEVzYKow+WPaQEjX5S33BR+C4="
    }
  ]
}

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_version:0cb382442074bce0f39fcbf4e44ef7448d47a18a950a9cfcd8dae161528dda92

Other collected versions

View all collected versions →