Skip to content

Commit

Permalink
.format() and Babel-Tower interop, exposing stringKit.format.modes
Browse files Browse the repository at this point in the history
  • Loading branch information
cronvel committed Aug 17, 2021
1 parent 558d687 commit adac8c9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@

v0.12.6
-------

.format() and Babel-Tower interop, exposing stringKit.format.modes


v0.12.5
-------

Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,14 @@ Specifiers:
* `%x` to unsigned hexadecimal, force pairs of symbols (e.g. 'f' -> '0f')
* `%o` to unsigned octal
* `%b` to unsigned binary
* `%X` string to hexadecimal: convert a string into hex charcode, force pair of symbols (e.g. 'f' -> '0f')
* `%z` to base64
* `%Z` to base64url
* `%X` string/binary/buffer to hexadecimal: convert a string into hex charcodes, force pair of symbols (e.g. 'f' -> '0f' ; 'hello' -> '68656c6c6f')
* `%z` string/binary/buffer to base64
* `%Z` string/binary/buffer to base64url
* `%O` for objects (call string-kit's inspect() with ultra-minimal options)
* `%I` call string-kit's inspect()
* `%Y` call string-kit's inspect(), but do not inspect non-enumerable
* `%E` call string-kit's inspectError()
* `%J` to JSON.stringify()
* `%J` to JSON (call JSON.stringify()
* `%D` drop, the argument does not produce anything but is eaten anyway
* `%F` filter function existing in the *this* context, e.g. %[filter:%a%a]F
* `%a` argument for a filter function
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "string-kit",
"version": "0.12.5",
"version": "0.12.6",
"engines": {
"node": ">=6.0.0"
},
Expand Down

0 comments on commit adac8c9

Please sign in to comment.