Current collected state Current
Observed since 20 Oct, 19:59 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
420kit-utils
Shared utilities for 420kit projects - phrase system and media generation
Shared utilities for 420kit projects providing phrase system and media generation functionality.
npm install 420kit-shared
import { BuildTimePhraseSystem } from '420kit-shared';
const phraseSystem = new BuildTimePhraseSystem();
const selections = phraseSystem.getBuildSelections();
const phrase = phraseSystem.getPhrase('group', 'key', selections);
import { DynamicPhraseSystem } from '420kit-shared';
const phraseSystem = new DynamicPhraseSystem();
phraseSystem.addPhraseGroup('example', {
greeting: ['Hello', 'Hi', 'Hey']
});
const randomGreeting = phraseSystem.getPhrase('example', 'greeting');
import { MediaGenerator } from '420kit-shared';
const mediaGenerator = new MediaGenerator({
baseDir: process.cwd(),
imageDir: 'images',
videoDir: 'videos',
outputDir: process.cwd()
});
const result = await mediaGenerator.generateAllLists();
BuildTimePhraseSystem - Build-time phrase selection with seeded randomizationDynamicPhraseSystem - Runtime phrase management with random selectionMediaGenerator - Generate media lists for images and videosDownload counts and popularity will appear here as the collector receives them.
Declarations describe requirements; they are not a resolved dependency graph.
Source distribution
{
"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="
}
]
}Observed since 20 Oct, 19:59 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:0cb382442074bce0f39fcbf4e44ef7448d47a18a950a9cfcd8dae161528dda92