Skip to content
Eugene Lazutkin edited this page Aug 15, 2024 · 6 revisions

meta-toolkit

meta-toolkit is a toolkit to help with meta programming and OOP. It is a no-dependency, no-nonsense collection of small bits my projects accumulated over the years. They deal with helping to generate classes, objects, prototypes, iterators, and more.

The cheat sheet

The list of files and their exports:

  • Names:
    • toCamelCase(), fromCamelCase()
    • toPascalCase(), fromPascalCase()
    • toSnakeCase(), fromSnakeCase(), toAllCapsSnakeCase()
    • toKebabCase(), fromKebabCase()
    • capitalize()
  • Descriptors:
    • makeGetter(), makeSetter(), makeAccessors()
    • addDescriptor(), addDescriptors()
    • addAccessor(), addGetters()
    • copyDescriptors()
  • Aliases (based in Descriptors above):
    • addAlias(), addAliases()
  • Iterators:
    • augmentIterator(), normalizeIterator()
    • mapIterator(), filterIterator()
  • Prototypes:
    • prototypes()
    • getPropertyDescriptor()
  • Path:
    • get(), set(), remove()
    • forceSet()
  • Options:
    • copyOptions()

Clone this wiki locally