npm.io
2.0.7 • Published 8 years ago

hinos-common

Licence
ISC
Version
2.0.7
Deps
1
Vulns
0
Weekly
0

hinos-common

Class helpers for hinos

Install

npm i hinos-common -S

Examples

Encrypt

Class helper help encrypt data

  • md5(content:string): return md5 content
  • base64(content:string, isDecode:boolean): return base64 en(de)code base on isDecode. Default is encode base64
  • decryptText(blowfish: any, content: string): return data which is decrypted by blowfish Algorithm
  • encryptText(blowfish: any, data: any): return data which is encrypted by blowfish Algorithm

Http

Make http request easiler

QueueHandler

Customize handler for some connection (mongo...)