Skip to content

Commit

Permalink
Release 1.0.2.
Browse files Browse the repository at this point in the history
KamilaBorowska committed May 27, 2015
1 parent 07b11ce commit 6be5c00
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@

`python-format` is implementation of Python's `str.format`. It works
both in browser and in Node.js. If you want to use this in Node.js,
just type `npm install python-format` in console.
just use `npm install python-format` in console.

```javascript
var format = require('python-format')
@@ -11,13 +11,16 @@ console.log(format('Hello, {}!', 'world'))

If you want to use this in browser, download
[python-format.js](https://raw.github.com/xfix/python-format/master/lib/python-format.js),
if you want, pass it using your favorite JavaScript minifizer (I prefer
and if you want, pass it using your favorite JavaScript minifizer (I prefer
[UglifyJS](http://lisperator.net/uglifyjs/), but you can use other
minifizers).

For more details see <http://docs.python.org/py3k/library/stdtypes.html#str.format>.
For more details, see <http://docs.python.org/py3k/library/stdtypes.html#str.format>.

# Changelog
## 1.0.2
* Grouping of digits now works properly with @johnbellessa's patches.

## 1.0.1
* `-0` is returned instead of `0` when dealing with `format('{:g}', -0)`.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
"author": "Konrad Borowski <[email protected]>",
"name": "python-format",
"description": "Python's str.format() implementation",
"version": "v1.0.1",
"version": "v1.0.2",
"keywords": [ "string", "format", "python", "sprintf", "printf" ],
"homepage": "https://github.com/xfix/python-format",
"bugs": { "url": "https://github.com/xfix/python-format/issues" },

0 comments on commit 6be5c00

Please sign in to comment.