browserify-bignum

A browserify implementation of node-bignum

browserify-bignum

A JavaScript implementation of node-bignumforked from the wonderful work done by MikeMcl as bignumber.js

Usage

API functionality should be identical to that of node-bignum. However, a few methods are missing:

  • BigNumber.prime(bits, safe=true)
  • .toNumber()
  • .and(n)
  • .or(n)
  • .xor(n)
  • .invertm(n)
  • .rand()
  • .probPrime()
  • .root(n)
  • .shiftLeft(n)
  • .shiftRight(n)
  • .gcd(n)
  • .jacobi(n)

I have no intention of implementing themif you would like to do so and submit a pull request I would happily accept it. I wrote this library so I could browserify node-srpwhich does not require any of the above mentioned methods.

Repository

https://github.com/innoying/browserify-bignum.git


上一篇:JavaScript数组_创建数组_一维数组_length(二十三)
下一篇:yuntan-service

相关推荐

  • 浅谈Browserify在模块化设计中的应用

    采用require进行模块化编程 在计算机程序的开发过程中,随着程序代码越写越多,在一个文件里代码就会越来越长,越来越不容易维护。在Node环境中,一个.js文件就称之为一个模块(module) ...

    10 个月前
  • 我如何使用Browserify与外部的依赖?

    cobbdb(https://stackoverflow.com/users/1626714/cobbdb)提出了一个问题:How do I use Browserify with external ...

    2 年前
  • 如何丑化输出与Browserify在大口喝吗?

    VolesNik Terentyev(https://stackoverflow.com/users/363448/voles)提出了一个问题:How to uglify output with Br...

    2 年前
  • 如何与browserify得到缩小的输出?

    Fdr(https://stackoverflow.com/users/318293/fdr)提出了一个问题:How to get minified output with browserify?,或...

    2 年前
  • 使用Browserify配合jQuery进行编程的超级指南

    引言 1. manually 以前,我新开一个网页项目,然后想到要用jQuery,我会打开浏览器,然后找到jQuery的官方网站,点击那个醒目的“Download jQuery”按钮,下载到....

    3 年前
  • zlib-browserify

    Wrapper for zlib.js to allow for browserifyication zlibbrowserify Build Status(https://travisci.or...

    2 年前
  • vm-browserify

    vm module for the browser vmbrowserify CDN by jsDelivr A free, fast, and reliable Open...

    2 年前
  • uglify-to-browserify

    A transform to make UglifyJS work in browserify. uglifytobrowserify A transform to make UglifyJS ...

    1 年前
  • tty-browserify

    the tty module from node core for browsers ttybrowserify CDN by jsDelivr A free, fast,...

    2 年前
  • timers-browserify

    timers module for browserify Overview Adds support for the module to browserify. Wait, isn't i...

    2 年前

官方社区

扫码加入 JavaScript 社区