From 0b2fe87f295eab3f741da7e5be441d9965cafd05 Mon Sep 17 00:00:00 2001 From: Phillip Hartin Date: Tue, 14 May 2024 11:51:35 +1000 Subject: [PATCH] Remove duplicated docs --- nuxt-web/content/2.docs/2.formatters.md | 77 ------- nuxt-web/content/2.docs/3.modifiers.md | 126 ------------ nuxt-web/content/2.docs/4.detections.md | 116 ----------- nuxt-web/content/2.docs/5.generators.md | 41 ---- nuxt-web/content/2.docs/6.numbers.md | 92 --------- nuxt-web/content/2.docs/7.data.md | 41 ---- nuxt-web/content/2.docs/8.validators.md | 261 ------------------------ nuxt-web/content/2.docs/9.animations.md | 21 -- nuxt-web/content/2.docs/9.goodies.md | 31 --- 9 files changed, 806 deletions(-) delete mode 100644 nuxt-web/content/2.docs/2.formatters.md delete mode 100644 nuxt-web/content/2.docs/3.modifiers.md delete mode 100644 nuxt-web/content/2.docs/4.detections.md delete mode 100644 nuxt-web/content/2.docs/5.generators.md delete mode 100644 nuxt-web/content/2.docs/6.numbers.md delete mode 100644 nuxt-web/content/2.docs/7.data.md delete mode 100644 nuxt-web/content/2.docs/8.validators.md delete mode 100644 nuxt-web/content/2.docs/9.animations.md delete mode 100644 nuxt-web/content/2.docs/9.goodies.md diff --git a/nuxt-web/content/2.docs/2.formatters.md b/nuxt-web/content/2.docs/2.formatters.md deleted file mode 100644 index 873932f4..00000000 --- a/nuxt-web/content/2.docs/2.formatters.md +++ /dev/null @@ -1,77 +0,0 @@ ---- -id: formatters -title: Formatters -description: Wrangle wild data types into submission. Spruce up numbers, give strings smarts, and make complex content dazzle. -lead: Format misbehaving content ---- -::page-title -# Formatters -Wrangle wild data types into submission. Spruce up numbers, give strings smarts, and make complex content dazzle. -:: - -::page-function{name="formatNumber" description="Format numbers into neat and formatted strings for people" params="number: number, options?: { decimals?: number; locale?: string }" } -:::formatNumber -::: -:: - -::page-function{name="formatCurrency" description="Format numbers into local currency with extra smarts" params="number: number, options?: { decimals?: number; locale?: string }" } -:::formatCurrency -::: -:: - -::page-function{name="formatValuation" description="Format numbers into valuations displayed in thousands, millions or billions" params="number: number, options?: { decimals?: number; locale?: string }" } -:::formatValuation -::: -:: - -::page-function{name="formatPercentage" description="Format a number into a percentage" params="value: number, options?: { decimals?: number; locale?: string }" } -:::formatPercentage -::: -:: - -::page-function{name="formatDurationLabels" description="Format time into a human-readable string" params="seconds: number, options?: { labels?: 'short' | 'long'; round?: boolean }" } -:::formatDurationLabels -::: -:: - -::page-function{name="formatDurationNumbers" description="Format time into duration 00:00:00" params="seconds: number" } -:::formatDurationNumbers -::: -:: - -::page-function{name="formatNumberToWords" description="Format numbers into words" params="value: number" } -:::formatNumberToWords -::: -:: - -::page-function{name="formatInitials" description="Generate initials from any string while ignoring common titles" params="text: string, options?: { length?: number }" } -:::formatInitials -::: -:: - -::page-function{name="formatUnixTime" description="Format Unix timestamp into a datetime string" params="timestamp: number" } -:::formatUnixTime -::: -:: - -::page-function{name="formatList" description="Create a string of comma-separated values from an array, object or string with an optional limit and conjunction" params="items: string | object | any[], options?: { limit?: number; conjunction?: string }" } -:::formatList -::: -:: - -::page-function{name="formatTitle" description="Converts a string to title case following the Chicago Manual of Style rules. - @reference https://www.chicagomanualofstyle.org/book/ed17/frontmatter/toc.html" params="text: string" } -:::formatTitle -::: -:: - -::page-function{name="formatSentenceCase" description="Format a sentence case string" params="text: string" } -:::formatSentenceCase -::: -:: - -::page-function{name="formatTextWrap" description="Adds a space between the last two words in a string to prevent lonely words." params="value: string" } -:::formatTextWrap -::: -:: - diff --git a/nuxt-web/content/2.docs/3.modifiers.md b/nuxt-web/content/2.docs/3.modifiers.md deleted file mode 100644 index dc110394..00000000 --- a/nuxt-web/content/2.docs/3.modifiers.md +++ /dev/null @@ -1,126 +0,0 @@ ---- -id: modifiers -title: Modifiers -description: Modify and transform your content with our collection of efficient and easy-to-use functions designed to dicipher, manipulate, and transform strings. -lead: Bend content to your will ---- -::page-title -# Modifiers -Modify and transform your content with our collection of efficient and easy-to-use functions designed to dicipher, manipulate, and transform strings. -:: - -::page-function{name="startWith" description="Adds a prefix to a string if it doesn't already start with the prefix." params="value: string, start: string" } -:::startWith -::: -:: - -::page-function{name="startWithout" description="Removes a prefix from a string if it starts with the prefix." params="value: string, start: string" } -:::startWithout -::: -:: - -::page-function{name="endWith" description="Adds a suffix to a string if it doesn't already end with the suffix." params="text: string, end: string" } -:::endWith -::: -:: - -::page-function{name="endWithout" description="Removes a suffix from a string if it ends with the suffix." params="text: string, end: string" } -:::endWithout -::: -:: - -::page-function{name="surroundWith" description="Adds a prefix and suffix to a string if it doesn't already start and end with them." params="text: string, start: string, end: string" } -:::surroundWith -::: -:: - -::page-function{name="pluralize" description="Adds plurals to a string except for excluded words." params="value: string, count: number" } -:::pluralize -::: -:: - -::page-function{name="singularize" description="Removes plurals from a string." params="value: string" } -:::singularize -::: -:: - -::page-function{name="ordinalize" description="Converts a number to a string with ordinal suffix." params="value: number" } -:::ordinalize -::: -:: - -::page-function{name="stripHtml" description="Strip HTML tags from a string." params="text: string" } -:::stripHtml -::: -:: - -::page-function{name="stripWhitespace" description="Strips whitespace from a string." params="text: string" } -:::stripWhitespace -::: -:: - -::page-function{name="stripNumbers" description="Strips numbers from a string." params="text: string" } -:::stripNumbers -::: -:: - -::page-function{name="stripPunctuation" description="Strips punctuation from a string." params="text: string" } -:::stripPunctuation -::: -:: - -::page-function{name="stripSymbols" description="Strips symbols from a string." params="text: string" } -:::stripSymbols -::: -:: - -::page-function{name="stripEmojis" description="Strips emojis from a string (requires ES6 Unicode support) 🦊." params="text: string" } -:::stripEmojis -::: -:: - -::page-function{name="slugify" description="Converts a string to-a-slug." params="text: string" } -:::slugify -::: -:: - -::page-function{name="deslugify" description="Converts a slug to a string." params="text: string" } -:::deslugify -::: -:: - -::page-function{name="camelCase" description="Removes spaces and capitalizes the first letter of each word except for the first word." params="text: string" } -:::camelCase -::: -:: - -::page-function{name="pascalCase" description="Removes spaces and capitalizes the first letter of each word." params="text: string" } -:::pascalCase -::: -:: - -::page-function{name="snakeCase" description="Replaces spaces with underscores and converts to lowercase." params="text: string" } -:::snakeCase -::: -:: - -::page-function{name="kebabCase" description="Replaces spaces with hyphens and converts to lowercase." params="text: string" } -:::kebabCase -::: -:: - -::page-function{name="titleCase" description="Converts to title case by capitalizing the first letter of each word." params="text: string" } -:::titleCase -::: -:: - -::page-function{name="escapeHtml" description="Escape HTML entities in a string." params="text: string" } -:::escapeHtml -::: -:: - -::page-function{name="unescapeHtml" description="Unescape HTML entities in a string." params="text: string" } -:::unescapeHtml -::: -:: - diff --git a/nuxt-web/content/2.docs/4.detections.md b/nuxt-web/content/2.docs/4.detections.md deleted file mode 100644 index f520dcea..00000000 --- a/nuxt-web/content/2.docs/4.detections.md +++ /dev/null @@ -1,116 +0,0 @@ ---- -id: detections -title: Detections -description: Client-side detections for various user and browser information. Perfect for personalisation, analytics or debugging weird and wonderful bugs. Please note we're working on making our examples reactive! 🚀 -lead: Listen to your clients ---- -::page-title -# Detections -Client-side detections for various user and browser information. Perfect for personalisation, analytics or debugging weird and wonderful bugs. Please note we're working on making our examples reactive! 🚀 -:: - -::page-function{name="detectScrollPosition" description="Detect the current scroll position of the window" params="" } -:::detectScrollPosition -::: -:: - -::page-function{name="detectMousePosition" description="Detect the absolute mouse position with the page" params="event: MouseEvent" } -:::detectMousePosition -::: -:: - -::page-function{name="detectRelativeMousePosition" description="Detect the relative mouse position with the window size and returns a percentage value" params="event: MouseEvent" } -:::detectRelativeMousePosition -::: -:: - -::page-function{name="detectWindowSize" description="Detect the browser's window size" params="" } -:::detectWindowSize -::: -:: - -::page-function{name="detectScreenSize" description="Detect the screen or monitor size" params="" } -:::detectScreenSize -::: -:: - -::page-function{name="detectDevice" description="Detect the current device type (Mobile or Desktop)" params="" } -:::detectDevice -::: -:: - -::page-function{name="detectOS" description="Detect the current operating system" params="" } -:::detectOS -::: -:: - -::page-function{name="detectActiveBrowser" description="Detect if the browser window is currently active or hidden." params="" } -:::detectActiveBrowser -::: -:: - -::page-function{name="detectColorScheme" description="Detect the current color scheme (Light or Dark)" params="" } -:::detectColorScheme -::: -:: - -::page-function{name="detectUserTimezone" description="Detect the current user's Timezone" params="" } -:::detectUserTimezone -::: -:: - -::page-function{name="detectDeviceOrientation" description="Detect the currect device orientation" params="" } -:::detectDeviceOrientation -::: -:: - -::page-function{name="detectBreakpoint" description="Detect the container size via ID" params="" } -:::detectBreakpoint -::: -:: - -::page-function{name="detectContainerBreakpoint" description="Detect any container breakpoint based on Tailwind CSS breakpoints" params="element: HTMLElement" } -:::detectContainerBreakpoint -::: -:: - -::page-function{name="detectNetworkStatus" description="Detect the current network status of the user (Online or Offline)" params="" } -:::detectNetworkStatus -::: -:: - -::page-function{name="detectUrl" description="Returns the current URL" params="" } -:::detectUrl -::: -:: - -::page-function{name="detectUrlPath" description="Returns the path of the current URL in an array" params="" } -:::detectUrlPath -::: -:: - -::page-function{name="detectUrlParams" description="Returns a value from the URL by name" params="" } -:::detectUrlParams -::: -:: - -::page-function{name="detectUrlHash" description="Returns a value from the URL hash by name" params="" } -:::detectUrlHash -::: -:: - -::page-function{name="detectHost" description="Returns the current host or domain name from the URL" params="" } -:::detectHost -::: -:: - -::page-function{name="detectHostName" description="Returns the current hostname from the URL" params="" } -:::detectHostName -::: -:: - -::page-function{name="detectPort" description="Returns the current port" params="" } -:::detectPort -::: -:: - diff --git a/nuxt-web/content/2.docs/5.generators.md b/nuxt-web/content/2.docs/5.generators.md deleted file mode 100644 index 8bdd5f71..00000000 --- a/nuxt-web/content/2.docs/5.generators.md +++ /dev/null @@ -1,41 +0,0 @@ ---- -id: generators -title: Generators -description: A collection of magical functions that conjure data out of thin air. -lead: Conjure data out of thin air ---- -::page-title -# Generators -A collection of magical functions that conjure data out of thin air. -:: - -::page-function{name="generateNumber" description="Generate a random number" params="length: number" } -:::generateNumber -::: -:: - -::page-function{name="generateNumberBetween" description="Generate a random number between two values" params="min: number, max: number" } -:::generateNumberBetween -::: -:: - -::page-function{name="generateUuid" description="Generate a universally unique identifier (UUID)." params="" } -:::generateUuid -::: -:: - -::page-function{name="generateShortId" description="Generate a unique short ID based on the current timestamp" params="length: number = 19" } -:::generateShortId -::: -:: - -::page-function{name="generatePassword" description="Generate a random, secure password with a mix of character types." params="length: number = 8" } -:::generatePassword -::: -:: - -::page-function{name="generateLoremIpsum" description="Generate Lorem Ipsum text in various formats." params="count: number = 5, format: string = 'words'" } -:::generateLoremIpsum -::: -:: - diff --git a/nuxt-web/content/2.docs/6.numbers.md b/nuxt-web/content/2.docs/6.numbers.md deleted file mode 100644 index dd52d09d..00000000 --- a/nuxt-web/content/2.docs/6.numbers.md +++ /dev/null @@ -1,92 +0,0 @@ ---- -id: numbers -title: Numbers -description: This file contains functions that are related to numbers. -lead: Crunch crunchy numbers ---- -::page-title -# Numbers -This file contains functions that are related to numbers. -:: - -::page-function{name="sum" description="Calculates the sum of an array of numbers." params="numbers: number[]" } -:::sum -::: -:: - -::page-function{name="mean" description="Calculates the mean of an array of numbers." params="numbers: number[]" } -:::mean -::: -:: - -::page-function{name="average" description="Calculates the mean of an array of numbers." params="numbers: number[]" } -:::average -::: -:: - -::page-function{name="margin" description="Calculates the margin based on a percentage." params="value: number, percentage: number" } -:::margin -::: -:: - -::page-function{name="addMargin" description="Adds the margin to the value." params="value: number, percentage: number" } -:::addMargin -::: -:: - -::page-function{name="subtractMargin" description="Subtracts the margin from the value." params="value: number, percentage: number" } -:::subtractMargin -::: -:: - -::page-function{name="subtractMarkup" description="Calculates the markup based on a percentage." params="value: number, percentage: number" } -:::subtractMarkup -::: -:: - -::page-function{name="addMarkup" description="Adds the markup to the value." params="value: number, percentage: number" } -:::addMarkup -::: -:: - -::page-function{name="median" description="Calculates the median of an array of numbers." params="numbers: number[]" } -:::median -::: -:: - -::page-function{name="mode" description="Calculates the mode of an array of numbers." params="numbers: number[]" } -:::mode -::: -:: - -::page-function{name="min" description="Finds the minimum value in an array of numbers." params="numbers: number[]" } -:::min -::: -:: - -::page-function{name="max" description="Finds the maximum value in an array of numbers." params="numbers: number[]" } -:::max -::: -:: - -::page-function{name="minMax" description="Returns the minimum and maximum values in an array of numbers." params="numbers: number[]" } -:::minMax -::: -:: - -::page-function{name="range" description="Returns the difference between two values, expressed as a positive number." params="numbers: number[]" } -:::range -::: -:: - -::page-function{name="standardDeviation" description="Returns the standard deviation of an array of numbers." params="numbers: number[]" } -:::standardDeviation -::: -:: - -::page-function{name="skewness" description="Returns the measure of asymmetry of the probability distribution of an array of numbers. - The skewness value can be positive, zero, negative, or undefined." params="numbers: number[]" } -:::skewness -::: -:: - diff --git a/nuxt-web/content/2.docs/7.data.md b/nuxt-web/content/2.docs/7.data.md deleted file mode 100644 index d4646aee..00000000 --- a/nuxt-web/content/2.docs/7.data.md +++ /dev/null @@ -1,41 +0,0 @@ ---- -id: data -title: Data -description: A collection of functions for formatting, filtering and taming wild arrays and objects. -lead: Arrays and objects, oh my! ---- -::page-title -# Data -A collection of functions for formatting, filtering and taming wild arrays and objects. -:: - -::page-function{name="dataShuffle" description="Shuffles your data in a random order." params="items: object | any[]" } -:::dataShuffle -::: -:: - -::page-function{name="dataReverse" description="Reverse an array." params="items: object | any[]" } -:::dataReverse -::: -:: - -::page-function{name="dataSortBy" description="Sort an array or object by a property." params="items: object | any[], options?: { property?: string; order?: 'asc' | 'desc' }" } -:::dataSortBy -::: -:: - -::page-function{name="dataRemoveDuplicates" description="Returns single unique values within an array or object" params="...arrays: any[][]" } -:::dataRemoveDuplicates -::: -:: - -::page-function{name="dataFlatten" description="Flatten an array of arrays or an object of objects into a single array or object. That was hard to say." params="items: object | any[]" } -:::dataFlatten -::: -:: - -::page-function{name="dataWithout" description="Returns an array without a property or properties." params="items: object | any[], properties: any | any[]" } -:::dataWithout -::: -:: - diff --git a/nuxt-web/content/2.docs/8.validators.md b/nuxt-web/content/2.docs/8.validators.md deleted file mode 100644 index 86d0ea50..00000000 --- a/nuxt-web/content/2.docs/8.validators.md +++ /dev/null @@ -1,261 +0,0 @@ ---- -id: validators -title: Validators -description: A collection of validators for common data types -lead: Hmmmm what is that? ---- -::page-title -# Validators -A collection of validators for common data types -:: - -::page-function{name="isEmail" description="Check if any given value is a valid email address." params="value: any" } -:::isEmail -::: -:: - -::page-function{name="isNumber" description="Check if any given value is a valid number." params="value: any" } -:::isNumber -::: -:: - -::page-function{name="isUrl" description="Check if any given value is a valid URL." params="value: any" } -:::isUrl -::: -:: - -::page-function{name="isEmpty" description="Check if any given string, array or object is empty." params="value: any" } -:::isEmpty -::: -:: - -::page-function{name="isUuid" description="Check if any given value is a valid UUID." params="value: any" } -:::isUuid -::: -:: - -::page-function{name="isJson" description="Check if any given value is a valid JSON string." params="value: any" } -:::isJson -::: -:: - -::page-function{name="isObject" description="Check if any given value is an object." params="value: any" } -:::isObject -::: -:: - -::page-function{name="isArray" description="Check if any given value is an array." params="value: any" } -:::isArray -::: -:: - -::page-function{name="isHex" description="Check if any given value is a valid hexadecimal color code." params="value: any" } -:::isHex -::: -:: - -::page-function{name="isAlphabetic" description="Check if any given value contains only alphabetic characters." params="value: any" } -:::isAlphabetic -::: -:: - -::page-function{name="isAlphanumeric" description="Check if any given value contains only alphanumeric characters." params="value: any" } -:::isAlphanumeric -::: -:: - -::page-function{name="isBoolean" description="Check if any given value is a boolean value." params="value: any" } -:::isBoolean -::: -:: - -::page-function{name="isUndefined" description="Check if any given value is undefined." params="value: any" } -:::isUndefined -::: -:: - -::page-function{name="isNull" description="Check if any given value is null." params="value: any" } -:::isNull -::: -:: - -::page-function{name="isDate" description="Check if any given value is a valid Date object." params="value: any" } -:::isDate -::: -:: - -::page-function{name="isTime" description="Check if any given value is a valid time in HH:mm format." params="value: any" } -:::isTime -::: -:: - -::page-function{name="isLeapYear" description="Check if any given value year is a leap year." params="value: number" } -:::isLeapYear -::: -:: - -::page-function{name="isEven" description="Check if the number is even." params="value: number" } -:::isEven -::: -:: - -::page-function{name="isOdd" description="Check if the number is odd." params="value: number" } -:::isOdd -::: -:: - -::page-function{name="isPositive" description="Check if the number is positive." params="value: number" } -:::isPositive -::: -:: - -::page-function{name="isNegative" description="Check if the number is negative." params="value: number" } -:::isNegative -::: -:: - -::page-function{name="isZero" description="Check if the number is zero." params="value: number" } -:::isZero -::: -:: - -::page-function{name="isOver9000" description="Check if the number is over 9000." params="value: number" } -:::isOver9000 -::: -:: - -::page-function{name="isPrime" description="Check if the number is a prime number." params="value: number" } -:::isPrime -::: -:: - -::page-function{name="isInteger" description="Check if the number is an integer." params="value: any" } -:::isInteger -::: -:: - -::page-function{name="isFloat" description="Check if the number is a float." params="value: any" } -:::isFloat -::: -:: - -::page-function{name="isBetween" description="Check if the number is between the specified range." params="value: number, min: number, max: number" } -:::isBetween -::: -:: - -::page-function{name="isDivisibleBy" description="Check if the number is divisible by the specified number." params="value: number, divisor: number" } -:::isDivisibleBy -::: -:: - -::page-function{name="isCreditCard" description="Check if any given value is a valid credit card number." params="value: any" } -:::isCreditCard -::: -:: - -::page-function{name="isLatLng" description="Check if any given value is a valid latitude-longitude coordinate in the format lat,lng or lat,lng." params="value: any" } -:::isLatLng -::: -:: - -::page-function{name="isLatitude" description="Check if any given value is a valid latitude coordinate." params="value: any" } -:::isLatitude -::: -:: - -::page-function{name="isLongitude" description="Check if any given value is a valid longitude coordinate." params="value: any" } -:::isLongitude -::: -:: - -::page-function{name="isIpAddress" description="Check if any given value is a valid IP address." params="value: any" } -:::isIpAddress -::: -:: - -::page-function{name="isPort" description="Check if any given value is a valid port number." params="value: number" } -:::isPort -::: -:: - -::page-function{name="isMacAddress" description="Check if any given value is a valid MAC address." params="value: any" } -:::isMacAddress -::: -:: - -::page-function{name="isIos" description="Check if you're a passionate iPhone fan." params="" } -:::isIos -::: -:: - -::page-function{name="isWindows" description="Check if you're a fervent Windows fan." params="" } -:::isWindows -::: -:: - -::page-function{name="isLinux" description="Check if you're a devoted Linux fan." params="" } -:::isLinux -::: -:: - -::page-function{name="isAndroid" description="Check if you're a zealous Android fan." params="" } -:::isAndroid -::: -:: - -::page-function{name="isMac" description="Check if you're a staunch Mac fan." params="" } -:::isMac -::: -:: - -::page-function{name="isChrome" description="Check if you're a die-hard Chrome fan." params="" } -:::isChrome -::: -:: - -::page-function{name="isFirefox" description="Check if you're a dedicated Firefox fan." params="" } -:::isFirefox -::: -:: - -::page-function{name="isSafari" description="Check if you're a lonely Safari fan." params="" } -:::isSafari -::: -:: - -::page-function{name="isEdge" description="Check if you're an ardent Edge fan." params="" } -:::isEdge -::: -:: - -::page-function{name="isMobile" description="Check if you're rocking a mobile" params="" } -:::isMobile -::: -:: - -::page-function{name="isTablet" description="Check if you're tablet user" params="" } -:::isTablet -::: -:: - -::page-function{name="isDesktop" description="Check if you're pro desktop user" params="" } -:::isDesktop -::: -:: - -::page-function{name="isPortrait" description="Check if you're portrait" params="" } -:::isPortrait -::: -:: - -::page-function{name="isLandscape" description="Check if you're landscape" params="" } -:::isLandscape -::: -:: - -::page-function{name="isBot" description="Check if you're a cyborg or a bot" params="" } -:::isBot -::: -:: - diff --git a/nuxt-web/content/2.docs/9.animations.md b/nuxt-web/content/2.docs/9.animations.md deleted file mode 100644 index 6c5ceeb9..00000000 --- a/nuxt-web/content/2.docs/9.animations.md +++ /dev/null @@ -1,21 +0,0 @@ ---- -id: animations -title: Animators -description: Pixar without the budget or talent -lead: Ruthlessly animate everything ---- -::page-title -# Animators -Pixar without the budget or talent -:: - -::page-function{name="animateText" description="Animate text by wrapping each character in a span with a delay." params="text: string, options: { splitBy?: 'word' | 'character'; time?: number; unit?: 'ms' | 's'; class?: string } = {}" } -:::animateText -::: -:: - -::page-function{name="animateGroup" description="Animate a group of elements by wrapping each in a span with an incremental delay." params="element: HTMLElement, options?: { time?: number; unit?: 'ms' | 's' }" } -:::animateGroup -::: -:: - diff --git a/nuxt-web/content/2.docs/9.goodies.md b/nuxt-web/content/2.docs/9.goodies.md deleted file mode 100644 index 1233e358..00000000 --- a/nuxt-web/content/2.docs/9.goodies.md +++ /dev/null @@ -1,31 +0,0 @@ ---- -id: goodies -title: Goodies -description: A collection neat little functions that don't belong anywhere else. -lead: A growing pile of treats. ---- -::page-title -# Goodies -A collection neat little functions that don't belong anywhere else. -:: - -::page-function{name="splitByWords" description="Wraps each word, sentence or paragraph in a string with a tag." params="text: string" } -:::splitByWords -::: -:: - -::page-function{name="checkPasswordStrength" description="Check the strength of a password against a given policy." params="value: string, length: number, uppercase: number, numbers: number, special: number" } -:::checkPasswordStrength -::: -:: - -::page-function{name="readingTime" description="Returns the reading time of a string in Hours, Minutes, and Seconds." params="text: string, wordsPerMinute = 200" } -:::readingTime -::: -:: - -::page-function{name="mergeFields" description="Replaces placeholders in a string with values from an object." params="text: string, fields: Record" } -:::mergeFields -::: -:: -