Nuclear Planning Manual

    opencadc-util

    1.0.6 • Public • Published

    OpenCADC Util package (1.0.2)

    Provides some utility objects to perform some repetitive tasks.

    StringUtil

    format()

    Similar to Java's String.format(), but simplified. Uses numerical indexing (starting at 1), and an array of values to replace them with, in order.

    matches()

    Run regex test() on a given regex for a given String.

    contains()

    If a given String is contained within another. Optional case check

    endsWith()

    If a String ends with another one.

    hasLength() / hasText()

    If a given String has any length at all, and contains something relevant.

    Keywords

    none

    Install

    npm i opencadc-util

    DownloadsWeekly Downloads

    22

    Version

    1.0.6

    License

    GPL-3.0

    Unpacked Size

    23.6 kB

    Total Files

    4

    Last publish

    Collaborators

    • at88mph