thrift-server-core 0.19.0
Install from the command line:
Learn more about npm packages
$ npm install @statestitle/thrift-server-core@0.19.0
Install via package.json:
"@statestitle/thrift-server-core": "0.19.0"
About this version
Base package for the other Thrift libraries. This will usually not be used directly. Usually consumers will get everything they need from the consuming libraries:
$ npm install --save @statestitle/thrift-server-core
For representing 64-bit integers in JavaScript we use the node-int64 library. We extend the base class from the library with static methods for working with 64-bit integers written as strings. These functions are largely taken from the apache thrift libs and added as static methods for convinience.
Given a string of decimal digits, return a Int64
object instance.
import { Int64 } from '@statestitle/thrift-server-core'
const i64: Int64 = Int64.fromDecimalString("89374875")
import { Int64 } from '@statestitle/thrift-server-core'
const i64: Int64 = Int64.fromDecimalString("89374875")
const val: string = i64.toDecimalString()
// val === "89374875"
For consistency the toDecimalString
method is also available statically on the Int64
class. The static method can take a number
or Int64
instance.
import { Int64 } from '@statestitle/thrift-server-core'
const i64: Int64 = new Int64(64)
const val: string = Int64.toDecimalString(i64)
// val === "64"
- Support CompactProtocol, JsonProtocol and FramedTransport
For more information about contributing new features and bug fixes, see our Contribution Guidelines. External contributors must sign Contributor License Agreement (CLA)
This project is licensed under Apache License Version 2.0
Details
- thrift-server-core
- StatesTitle
- over 2 years ago
- Apache-2.0
- 17 dependencies
Assets
- thrift-server-core-0.19.0-npm.tgz
Download activity
- Total downloads 16,164
- Last 30 days 0
- Last week 0
- Today 0