Products

English

English

  • Pipy Documentation
  • Introduction
    • Overview
    • Concepts
  • Getting Started
    • Build and Install
    • Quick Start
    • Getting help
  • Release
    • Release History
      • 0.10.0-1
      • 0.22.0-31
      • 0.30.0
      • 0.50.0
  • Tutorial
    • Part 1: Hello
    • Part 2: Echo
    • Part 3: Proxy
    • Part 4: Routing
    • Part 5: Loading Balancing
    • Part 6: Configuration
    • Part 7: Plugins
  • Operating
    • Admin GUI
    • CLI
    • Pipy Repo
      • Introduction
      • Quick Start
      • Demo
      • REST API
    • Statistics
  • Reference
    • API
      • Configuration
        • acceptHTTPTunnel()
        • acceptProxyProtocol()
        • acceptSOCKS()
        • acceptTLS()
        • admin()
        • branch()
        • branchMessage()
        • branchMessageStart()
        • chain()
        • compress()
        • compressHTTP()
        • connect()
        • connectHTTPTunnel()
        • connectProxyProtocol()
        • connectSOCKS()
        • connectTLS()
        • decodeBGP()
        • decodeDubbo()
        • decodeHTTPRequest()
        • decodeHTTPResponse()
        • decodeMQTT()
        • decodeMultipart()
        • decodeRESP()
        • decodeThrift()
        • decodeWebSocket()
        • decompress()
        • decompressHTTP()
        • deframe()
        • demux()
        • demuxHTTP()
        • detectProtocol()
        • dummy()
        • dump()
        • encodeBGP()
        • encodeDubbo()
        • encodeHTTPRequest()
        • encodeHTTPResponse()
        • encodeMQTT()
        • encodeRESP()
        • encodeThrift()
        • encodeWebSocket()
        • exec()
        • exit()
        • export()
        • fork()
        • handleData()
        • handleMessage()
        • handleMessageBody()
        • handleMessageEnd()
        • handleMessageStart()
        • handleStreamEnd()
        • handleStreamStart()
        • handleTLSClientHello()
        • import()
        • insert()
        • link()
        • listen()
        • loop()
        • mux()
        • muxHTTP()
        • onEnd()
        • onStart()
        • pack()
        • pipeline()
        • print()
        • read()
        • repeat()
        • replaceData()
        • replaceMessage()
        • replaceMessageBody()
        • replaceMessageEnd()
        • replaceMessageStart()
        • replaceStreamEnd()
        • replaceStreamStart()
        • replay()
        • serveHTTP()
        • split()
        • task()
        • tee()
        • throttleConcurrency()
        • throttleDataRate()
        • throttleMessageRate()
        • to()
        • use()
        • wait()
        • watch()
      • Data
        • from()
        • Data()
        • push()
        • shift()
        • shiftTo()
        • shiftWhile()
        • size
        • toArray()
      • Hessian
        • decode()
        • encode()
      • JSON
        • decode()
        • encode()
        • parse()
        • stringify()
      • Message
        • body
        • head
        • Message()
        • tail
      • MessageEnd
        • MessageEnd()
        • payload
        • tail
      • MessageStart
        • head
        • MessageStart()
      • Netmask
        • base
        • bitmask
        • broadcast
        • contains()
        • decompose()
        • first
        • hostmask
        • ip
        • last
        • mask
        • Netmask()
        • next()
        • size
        • version
      • StreamEnd
        • error
        • StreamEnd()
      • URL
        • auth
        • hash
        • host
        • hostname
        • href
        • URL()
        • origin
        • password
        • path
        • pathname
        • port
        • protocol
        • query
        • search
        • searchParams
        • username
      • URLSearchParams
        • get()
        • getAll()
        • URLSearchParams()
        • set()
        • toObject()
      • XML
        • Node
          • attributes
          • children
          • name
          • Node()
        • decode()
        • encode()
        • parse()
        • stringify()
      • algo
        • Cache
          • clear()
          • get()
          • Cache()
          • remove()
          • set()
        • HashingLoadBalancer
          • add()
          • HashingLoadBalancer()
          • next()
        • LeastWorkLoadBalancer
          • LeastWorkLoadBalancer()
          • next()
          • set()
        • Quota
          • consume()
          • current
          • initial
          • Quota()
          • produce()
          • reset()
        • RoundRobinLoadBalancer
          • RoundRobinLoadBalancer()
          • next()
          • set()
        • URLRouter
          • add()
          • find()
          • URLRouter()
        • hash()
        • uuid()
      • console
        • debug()
        • error()
        • info()
        • log()
        • warn()
      • crypto
        • Certificate
          • issuer
          • Certificate()
          • subject
          • subjectAltNames
        • CertificateChain
          • CertificateChain()
        • Cipher
          • final()
          • Cipher()
          • update()
        • Decipher
          • final()
          • Decipher()
          • update()
        • Hash
          • digest()
          • Hash()
          • update()
        • Hmac
          • digest()
          • Hmac()
          • update()
        • JWK
          • isValid
          • JWK()
        • JWT
          • header
          • isValid
          • JWT()
          • payload
          • verify()
        • PrivateKey
          • PrivateKey()
        • PublicKey
          • PublicKey()
        • Sign
          • Sign()
          • sign()
          • update()
        • Verify
          • Verify()
          • update()
          • verify()
      • http
        • Agent
          • new()
          • request()
        • Directory
          • new()
          • serve()
      • logging
        • BinaryLogger
          • log()
          • BinaryLogger()
          • toFile()
          • toHTTP()
          • toStderr()
          • toStdout()
          • toSyslog()
        • JSONLogger
          • log()
          • JSONLogger()
          • toFile()
          • toHTTP()
          • toStderr()
          • toStdout()
          • toSyslog()
        • TextLogger
          • log()
          • TextLogger()
          • toFile()
          • toHTTP()
          • toStderr()
          • toStdout()
          • toSyslog()
      • os
        • env
        • readDir()
        • readFile()
        • stat()
        • unlink()
        • writeFile()
      • pipy()
        • exit()
        • load()
        • restart()
        • solve()
      • stats
        • Counter
          • decrease()
          • increase()
          • Counter()
          • withLabels()
          • zero()
        • Gauge
          • decrease()
          • increase()
          • Gauge()
          • set()
          • withLabels()
          • zero()
        • Histogram
          • Histogram()
          • observe()
          • withLabels()
          • zero()
    • PipyJS
      • Language
      • Builtin Objects
      • NMI

    Builtin Objects

    PipyJS implemented a subset of the core ECMAScript builtin objects including Number, String and Array, etc. Here's a list of the supported classes and their properties and methods. For detailed information, please refer to Standard built-in objects on MDN.

    Number

    PipyJS implementation of Number supports the following properties and methods:

    • EPSILON
    • MAX_SAFE_INTEGER
    • MAX_VALUE
    • MIN_SAFE_INTEGER
    • MIN_VALUE
    • NaN
    • NEGATIVE_INFINITY
    • POSITIVE_INFINITY
    • toExponential()
    • toFixed()
    • toPrecision()

    Refer to Number on MDN for details.

    String

    PipyJS implementation of String supports the following properties and methods:

    • length
    • charAt()
    • charCodeAt()
    • codePointAt()
    • concat()
    • endsWith()
    • fromCharCode()
    • fromCodePoint()
    • includes()
    • indexOf()
    • lastIndexOf()
    • match()
    • padEnd()
    • padStart()
    • repeat()
    • replace()
    • replaceAll()
    • search()
    • slice()
    • split()
    • startsWith()
    • substring()
    • toLowerCase()
    • toUpperCase()
    • trim()
    • trimEnd()
    • trimStart()

    Refer to String on MDN for details.

    Array

    PipyJS implementation of Array supports the following methods:

    • length
    • concat()
    • copyWithin()
    • every()
    • fill()
    • filter()
    • find()
    • findIndex()
    • flat()
    • flatMap()
    • forEach()
    • includes()
    • indexOf()
    • join()
    • lastIndexOf()
    • map()
    • pop()
    • push()
    • reduce()
    • reduceRight()
    • reverse()
    • shift()
    • slice()
    • some()
    • sort()
    • splice()
    • unshift()

    Refer to Array on MDN for details.

    RegExp

    Currently, PipyJS does NOT support regular expression literals, but you can "new" RegExp objects. PipyJS implementation of RegExp supports the following methods:

    • source
    • global
    • ignoreCase
    • lastIndex
    • exec
    • test

    Refer to RegExp on MDN for details.

    Math

    PipyJS implementation of Math supports the following properties and methods:

    • E
    • LN10
    • LN2
    • LOG10E
    • LOG2E
    • PI
    • SQRT1_2
    • SQRT2
    • abs()
    • acos()
    • acosh()
    • asin()
    • asinh()
    • atan()
    • atanh()
    • atan2()
    • cbrt()
    • ceil()
    • clz32()
    • cos()
    • cosh()
    • exp()
    • expm1()
    • floor()
    • fround()
    • hypot()
    • imul()
    • log()
    • log1p()
    • log10()
    • log2()
    • max()
    • min()
    • pow()
    • random()
    • round()
    • sign()
    • sin()
    • sqrt()
    • tan()
    • tanh()
    • trunc()

    Refer to Math on MDN for details.

    Date

    PipyJS implementation of Date supports the following methods:

    • getDate()
    • getDay()
    • getFullYear()
    • getHours()
    • getMilliseconds()
    • getMinutes()
    • getMonth()
    • getSeconds()
    • getTime()
    • now()
    • setDate()
    • setFullYear()
    • setHours()
    • setMilliseconds()
    • setMinutes()
    • setMonth()
    • setSeconds()
    • setTime()
    • toDateString()
    • toTimeString()
    • toISOString()
    • toUTCString()

    Refer to Date on MDN for details.


    © 2024, Flomesh Team.       ICP备案/许可证号:辽ICP备2023014827号