magicalstrings

constants and a few incantations for dealing with genies

Usage no npm install needed!

<script type="module">
  import magicalstrings from 'https://cdn.skypack.dev/magicalstrings';
</script>

README

A lot of constants and some incantations for working with genies. Used with geenee tools.

magicalstrings gif

You probably won't need to include this directly. It would make more sense to use tools that access it, such as copyKat.

:pushpin: API

{This will be filled out soon.}

:paperclip: Types

Interfaces.

Configuration

Configuration and subTypes

Settings (nsInfo)

NsInfo and subTypes

Backend (schema)

Schema and subTypes

Custom

CustomCodeByFile and subTypes

General

  • Delimiter
  • BoilerPlateInfoType

:file_folder: Config Files

There are 3 functions for working with config files.

const {getConfig} = require('magicalstrings').configs 
const {setConfig} = require('magicalstrings').configs 
const {getIgnoredList} = require('magicalstrings').configs 

:wrench: Settings

These functions are for retrieving and updating settings.

getNsInfo
setNsInfo

:triangular_ruler: Constants

A lot of these constants are being moved out gradually to more relevant packages.

chalkColors

A number of terms used consistently in the UI.

fileOptions

parseSpecName

configuration

Other Constants

Types

custom

custom

schema

Please note: the Schema type has been moved to the stack-info package. This is a Breaking Change!!!

dingbats

dingKats 

nsInfo

nsInfo

:bookmark: RegEx

A number of Regex utilities.

  • regExCleanupText
  • regExCustomCleanup
  • regExCustomLocation
  • regExFileInfo
  • regExNewCustomLocation
  • regExReplacedCodeSection
  • regExObjectValueString
  • regExShared
  • regExTemplateAbbreviation

:memo: Functions

Several functions used by genies and copykats.

  • inflections
  • testCodeDir
  • isRequired
  • ensureDirectory
  • codeNameFromPath
  • resolveDir
  • inflections
  • dirOptions
  • removeNpmDependencyPrefix
  • copyCodeBaseToNewDir
  • fileMatchesCustomFileFilter
  • moveOverIgnored
  • errorMessage