-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Major core API changes; code style changes
Changes to the core API - Base() doesn't take arrays anymore - Base.convertToMultiple() can be used to efficiently convert a number from one base into multiple others - Base.suggest() now always returns grouped results; use the new Base.suggestList() for an array - Extensions are now just unnamed functions, not allowing for easy inspection Code style changes - strings are written with apostrophes - functions and variables are camelCase - files are dashed-lowercase
- Loading branch information
Showing
39 changed files
with
1,563 additions
and
1,711 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// Create the base converter object to be used in the app. | ||
var converter = new Base({ | ||
Big: BigNumber.another({ DECIMAL_PLACES: 1000, POW_PRECISION: 1000, ERRORS: false }), | ||
extensions: [extTwosComplement, extStandard, extLeet] | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// Create the base converter object to be used in the app. | ||
var converter = new Base({ | ||
Big: Big, | ||
extensions: [extRoman, extTwosComplement, extStandard, extLeet] | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
{ | ||
"author": "Dan Wolff (http://danwolff.se/)", | ||
"author": "Dan Wolff (https://danwolff.se/)", | ||
"name": "baseconvert", | ||
"description": "Online base converter. Convert from any base, to any base (binary, hexadecimal, even roman numerals!)", | ||
"version": "2.3.0", | ||
"copyright": "(c) 2016 Dan Wolff", | ||
"version": "3.0.0", | ||
"copyright": "(c) 2017 Dan Wolff", | ||
"repository": { | ||
"type": "git", | ||
"url": "[email protected]:Skalman/baseconvert.git" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,4 +48,5 @@ p { | |
} | ||
output { | ||
font-weight:bold; | ||
white-space: pre-wrap; | ||
} |
Oops, something went wrong.