Options
All
  • Public
  • Public/Protected
  • All
Menu

Module transfer/bytes

Index

Properties

Functions

Properties

default

default: { b2size: (bytes: any) => string; bytes: (target: number) => IOptions }

Type declaration

  • b2size: (bytes: any) => string
      • (bytes: any): string
      • description:

        转换文件大小 B=>KB 等

        Parameters

        • bytes: any

          B

        Returns string

        String KB 等

  • bytes: (target: number) => IOptions
      • (target: number): IOptions
      • 字节转换 转换成多种格式

        Parameters

        • target: number

        Returns IOptions

Functions

Const b2size

  • b2size(bytes: any): string
  • description:

    转换文件大小 B=>KB 等

    Parameters

    • bytes: any

      B

    Returns string

    String KB 等

bytes

  • bytes(target: number): IOptions
  • 字节转换 转换成多种格式

    Parameters

    • target: number

    Returns IOptions