puyuan / py-nanoid

Python Nanoid
MIT License
459 stars 22 forks source link

How close is this to the original nanoid project? #14

Open sweepy84 opened 5 years ago

sweepy84 commented 5 years ago

Is this an exact port of the JS nanoid project? If not, what differs?

puyuan commented 5 years ago

Depends on what you mean by exact, because JS and python have different usage patterns and interfaces. The algorithm is an exact port.

The common things are:

The differences: