@scalecube/utils
TypeScript icon, indicating that this package has built-in type declarations

0.2.11 • Public • Published

Join the chat at https://gitter.im/scalecube-js/Lobby

NOTICE versions 0.0.x are experimental without LTS or the API and behavior might change from patch to patch

Scalecube utils

reusable utils library

address

getFullAddress

Given valid address: Address
When  calling getFullAddress(address)
Then  fullAddress will be added to the address object

validateAddress

Given address: any
And   isOptional: boolean
# isOptional = true
When  calling validateAddress(address, isOptional) 
Then  valid address can be undefined or type Address
# isOptional = false
When  calling validateAddress(address, isOptional) 
Then  valid address must be of type Address

/@scalecube/utils/

    Package Sidebar

    Install

    npm i @scalecube/utils

    Weekly Downloads

    141

    Version

    0.2.11

    License

    MIT

    Unpacked Size

    57.5 kB

    Total Files

    37

    Last publish

    Collaborators

    • ronen.nachmias
    • idanilt
    • scalecube-ci
    • skolomiiets
    • scalecube-js-user-developer
    • idokatz
    • viktor.pyshnenko