Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/awesome-opencode/awesome-opencode
/ functions
Functions
24 in github.com/awesome-opencode/awesome-opencode
⨍
Functions
24
◇
Types & classes
0
↓ 3 callers
Function
formatValidationErrors
* Format validation errors for display * @param {object} result - Result from validateEntry * @returns {string} Formatted error message
scripts/utils/validation.js:64
↓ 3 callers
Function
log
(...args)
scripts/export-json.js:112
↓ 3 callers
Function
validateEntry
* Validate an entry against the schema * @param {object} data - Parsed YAML data * @param {string} filePath - File path for error messages * @retur
scripts/utils/validation.js:36
↓ 2 callers
Function
readYamlDir
* Read all YAML files from a directory * @param {string} dirPath - Directory containing YAML files * @returns {Promise<object[]>} Array of parsed YA
scripts/utils/yaml.js:29
↓ 2 callers
Function
sanitizeArray
(value, fallback)
scripts/export-json.js:35
↓ 1 callers
Function
buildProductId
(entry)
scripts/export-json.js:25
↓ 1 callers
Function
generateCategorySection
* Generate HTML for a single category * @param {string} categoryName - Category directory name * @returns {Promise<string>} Generated HTML for all e
scripts/generate-readme.js:32
↓ 1 callers
Function
generateEntryHtml
* Generate HTML for a single entry * @param {object} entry - Parsed YAML data * @returns {string} HTML string for the details element
scripts/utils/template.js:34
↓ 1 callers
Function
getAllYamlFiles
* Get all YAML files in the data directory * @returns {string[]} Array of file paths
scripts/validate.js:20
↓ 1 callers
Function
getValidator
* Get the compiled validation function * @returns {Function} AJV validate function
scripts/utils/validation.js:21
↓ 1 callers
Function
loadEntries
()
scripts/export-json.js:75
↓ 1 callers
Function
loadYamlFile
* Load and parse a YAML file * @param {string} filePath - Path to the YAML file * @returns {object|null} Parsed YAML object or null on error
scripts/validate.js:30
↓ 1 callers
Function
main
* Main function to generate the README
scripts/generate-readme.js:82
↓ 1 callers
Function
main
* Main validation function
scripts/validate.js:64
↓ 1 callers
Function
main
()
scripts/export-json.js:109
↓ 1 callers
Function
mapEntry
(entry, category)
scripts/export-json.js:42
↓ 1 callers
Function
parseArgs
(args)
scripts/export-json.js:16
↓ 1 callers
Function
readTemplate
* Read the README template * @returns {string} Template content
scripts/utils/template.js:12
↓ 1 callers
Function
readYamlFile
* Read and parse a single YAML file * @param {string} filePath - Path to YAML file * @returns {object} Parsed YAML object
scripts/utils/yaml.js:15
↓ 1 callers
Function
replacePlaceholder
* Replace a placeholder in the template * @param {string} template - Template content * @param {string} placeholder - Placeholder name (without brac
scripts/utils/template.js:24
↓ 1 callers
Function
slugify
* Convert a name to a filename-safe slug * @param {string} name - Entry name * @returns {string} Slugified filename (without extension)
scripts/utils/yaml.js:45
↓ 1 callers
Function
stripUndefined
(data)
scripts/export-json.js:65
↓ 1 callers
Function
validateFile
* Validate a single file * @param {string} filePath - Path to the YAML file * @returns {boolean} True if valid, false otherwise
scripts/validate.js:45
↓ 1 callers
Function
writeReadme
* Write the final README * @param {string} content - Generated README content
scripts/utils/template.js:75