New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@creditkarma/thrift-server-core

Package Overview
Dependencies
Maintainers
6
Versions
164
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@creditkarma/thrift-server-core

Thrift core library in TypeScript

  • 1.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
12K
decreased by-33.17%
Maintainers
6
Weekly downloads
 
Created
Source

Thrift Core

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:

  • Thrift-Client
  • Thrift-Server-Express
  • Thrift-Server-Hapi

Usage

$ npm install --save @creditkarma/thrift-server-core

Int64

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.

fromDecimalString

Given a string of decimal digits, return a Int64 object instance.

import { Int64 } from '@creditkarma/thrift-server-core'

const i64: Int64 = Int64.fromDecimalString("89374875")
toDecimalString
import { Int64 } from '@creditkarma/thrift-server-core'

const i64: Int64 = Int64.fromDecimalString("89374875")
const val: string = i64.toDecimalString()

// val === "89374875"
toDecimalString static

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 '@creditkarma/thrift-server-core'

const i64: Int64 = new Int64(64)
const val: string = Int64.toDecimalString(i64)

// val === "64"

Roadmap

  • Support CompactProtocol, JsonProtocol and FramedTransport

Contributing

For more information about contributing new features and bug fixes, see our Contribution Guidelines. External contributors must sign Contributor License Agreement (CLA)

License

This project is licensed under Apache License Version 2.0

Keywords

FAQs

Package last updated on 24 Jun 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc