{"maintainers":[{"name":"olov","email":"olov.lassus@gmail.com"}],"dist-tags":{"latest":"0.1.0"},"author":{"name":"Olov Lassus","email":"olov.lassus@gmail.com"},"description":"maximally minimal string formatting library","readme":"# simple-fmt.js\nA maximally minimal string formatting library. Use it to make your code more\nreadable compared to plain old string concatenation using `+`. The code is\nshorter than the MIT license text so it doesn't hog you down and you can use\nit everywhere. Works in node and browsers.\n\n\n\n## Usage\n```javascript\nvar fmt = require(\"simple-fmt\");\nconsole.log(fmt(\"hello {0} of age {1}\", name, age));\n```\n\ninstead of\n\n```javascript\nconsole.log(\"hello \" + name + \" of age \" + age);\n```\n\nbecause string formatting with `+` makes your eyes bleed and fingers hurt.\n\n\nThere's also `fmt.obj(string, obj)` and `fmt.repeat(string, n)`:\n```javascript\nvar o = {name: \"xyz\", age: 42};\nfmt.obj(\"hello {name} of age {age}\", obj);\nfmt.repeat(\"*\", 3); // \"***\"\n```\n\nThat's it.\n\n\n\n## Installation\n\n### Node\nInstall using npm\n\n    npm install simple-fmt\n\n```javascript\nvar fmt = require(\"simple-fmt\");\n```\n\n### Browser\nClone the repo and include it in a script tag\n\n    git clone https://github.com/olov/simple-fmt.git\n\n```html\n<script src=\"simple-fmt/simple-fmt.js\"></script>\n```\n","repository":{"type":"git","url":"https://github.com/olov/simple-fmt.git"},"users":{"datsilencer":true},"versions":{"0.1.0":{"name":"simple-fmt","version":"0.1.0","description":"maximally minimal string formatting library","main":"simple-fmt.js","repository":{"type":"git","url":"https://github.com/olov/simple-fmt.git"},"keywords":["fmt","format","formatting","string","template"],"scripts":{"test":"tap test/*.js"},"devDependencies":{"tap":"~0.4.0"},"author":{"name":"Olov Lassus","email":"olov.lassus@gmail.com"},"license":"MIT","readme":"# simple-fmt.js\nA maximally minimal string formatting library. Use it to make your code more\nreadable compared to plain old string concatenation using `+`. The code is\nshorter than the MIT license text so it doesn't hog you down and you can use\nit everywhere. Works in node and browsers.\n\n\n\n## Usage\n```javascript\nvar fmt = require(\"simple-fmt\");\nconsole.log(fmt(\"hello {0} of age {1}\", name, age));\n```\n\ninstead of\n\n```javascript\nconsole.log(\"hello \" + name + \" of age \" + age);\n```\n\nbecause string formatting with `+` makes your eyes bleed and fingers hurt.\n\n\nThere's also `fmt.obj(string, obj)` and `fmt.repeat(string, n)`:\n```javascript\nvar o = {name: \"xyz\", age: 42};\nfmt.obj(\"hello {name} of age {age}\", obj);\nfmt.repeat(\"*\", 3); // \"***\"\n```\n\nThat's it.\n\n\n\n## Installation\n\n### Node\nInstall using npm\n\n    npm install simple-fmt\n\n```javascript\nvar fmt = require(\"simple-fmt\");\n```\n\n### Browser\nClone the repo and include it in a script tag\n\n    git clone https://github.com/olov/simple-fmt.git\n\n```html\n<script src=\"simple-fmt/simple-fmt.js\"></script>\n```\n","readmeFilename":"README.md","_id":"simple-fmt@0.1.0","dist":{"shasum":"191bf566a59e6530482cb25ab53b4a8dc85c3a6b","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/simple-fmt/-/simple-fmt-0.1.0.tgz"},"_resolved":"../simple-fmt.tgz","_from":"../simple-fmt.tgz","_npmVersion":"1.2.18","_npmUser":{"name":"olov","email":"olov.lassus@gmail.com"},"maintainers":[{"name":"olov","email":"olov.lassus@gmail.com"}],"directories":{}}},"name":"simple-fmt","time":{"modified":"2013-04-19T12:20:16.481Z","created":"2013-04-19T12:20:09.995Z","0.1.0":"2013-04-19T12:20:16.481Z"}}