Giter Site home page Giter Site logo

base62.js's People

Contributors

andrew avatar andyfusniak avatar chalkers avatar dependabot-support avatar donavon avatar eiriksm avatar fnd avatar greenkeeperio-bot avatar imshara avatar kchapelier avatar kishorkunal-raj avatar lmk123 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

base62.js's Issues

Converting base 62 to base 16

I'm trying to convert base 62 to base 16. When I do the following..

Base62.decode('4u8LPK581OHn7kRqRqP9ks').toString(16)

I get 93669fd54as300000000000000000000. I'm expecting A12D08BC6D93BC4E8EA847434C960416. You can see a php based converter here http://convertxy.com/index.php/numberbases/ return the correct value.

Is the difference due to JS using scientific notation for these large numbers? In other words, Base62.decode('4u8LPK581OHn7kRqRqP9ks') returns 1.9592937146177773e+38. Does that munge the conversion to base 16 via toString(16)?

Thanks.

doesnt round trip even 10 places

var Base62=require('base62');
var maxv= Base62.decode("ZZZZZZZZZZ");
var mmaxv = Base62.encode(maxv);
console.log("maxv=" +maxv+" mmaxv="+mmaxv);


>   maxv=839299365868340200 mmaxv=10000000000

Is it possible to disable install-stats.js?

base62.js is one of dependency in my project. :)

I have one problem with install-stats.js in base62/scripts.
Internal network case, because install-stats.js tries to connect google analytics, so npm install takes too long time, and fails to connect in the end.
This makes build time to be increased.

Could you add timeout for this process or give any option to disable it?

The repository doesn't mention a license

I would like to use base62 in my project, but you haven't included a license, so I can't. Could you pick one? (MIT or similar would be great.)

Thanks in advance!

Base16 to Base64

What would be the proper way to convert base16 strings into base64 strings, and vice versa ?

For example: (b16) 0xF216E209761BB32986723 -> (b64) ????

Update NPM

I just used NPM to download the latest version, 0.1.1 and it doesn't give me the latest version from github.

Install problem

Your recent change to the package json, specifically the postinstall where you're trying to scrape stats is causing install failures

"postinstall": "TID=UA-265870-43 node scripts/install-stats.js"

Where is the tag for 1.2.8?

Hi, I see that a version 1.2.8 is listed on npm but I cannot find the tag here. Could you push it by chance? Thanks.

modular ES6 variant

As discussed elsewhere, I found myself accidentally re-implementing Base62.js in modular ES6: https://github.com/FND/base62
Now that I've recognized my folly, rather than imposing yet another npm package on the world, it seems worth first considering to merge our efforts instead.

My goal there was to create an efficient library that works in any JavaScript engine (i.e. browsers as well as Node, Nashorn etc.). The only expectation is either ES2015 support or DIY ES5 transpiling - which doesn't have to be painful these days.

ES6 helps not just with readability and hipster cred, but modular exports also avoid including unused bits (think tree shaking).

Preliminary benchmarking (I'm not much of an authority there) suggests that my version is at least on par with the current implementation.

I realize that in its current form, my version's API and aforementioned expectations aren't compatible with Base62.js v1.x, but that's not necessarily a bad thing and still up for debate.

Let me know what you think. (I've tried writing concise and readable code as well as useful commit messages.)

`TID` is not recognized command.

@andrew I just now saw that you have released a patch to fix this error by adding a fallback. This error was happening to me in windows, but passed in linux. Why not use cross-env? This package will enable to use same command line environment variables.

Thank you for immediately fixing the issue!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.