mirror of
https://github.com/jimeh/node-base58.git
synced 2026-02-19 07:36:40 +00:00
Give encode/decode functions more descriptive names
- `encode()`: Renamed to `int_to_base58()`. - `decode()`: Renamed to `base58_to_int()`. - Maintain aliases of old function names for backwards compatibility.
This commit is contained in:
@@ -21,8 +21,8 @@ Flickr short URL is: `http://flic.kr/p/brXijP`
|
||||
|
||||
```javascript
|
||||
const Base58 = require('base58');
|
||||
Base58.encode(6857269519); // 'brXijP'
|
||||
Base58.decode('brXijP'); // 6857269519
|
||||
Base58.int_to_base58(6857269519); // 'brXijP'
|
||||
Base58.base58_to_int('brXijP'); // 6857269519
|
||||
```
|
||||
|
||||
## Credit
|
||||
|
||||
Reference in New Issue
Block a user