Skip to content

Commit

Permalink
Add packages.json to make this a npm module
Browse files Browse the repository at this point in the history
- Used 'querystring-yui' as package name because querystring is already
  taken and package names shouldn't contain 'node' or 'js'.
- Update readme.
  • Loading branch information
MitchellMcKenna committed Oct 5, 2013
1 parent fb90878 commit 25773b9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ and __querystring-stringify__ sub-modules, repsectively.
### parse example

var sys = require("util");
var qs = require("./querystring");
var qs = require("querystring-yui");

var str = qs.parse("foo=bar&baz=qux");
sys.puts(JSON.stringify(str)); // => {"foo":"bar","baz":"qux"}
Expand All @@ -28,7 +28,7 @@ and __querystring-stringify__ sub-modules, repsectively.
### stringify example

var sys = require("util");
var qs = require("./querystring");
var qs = require("querystring-yui");

var obj = {"foo":"bar","baz":"qux"};
sys.puts(qs.stringify(obj)); // => foo=bar&baz=qux
Expand Down
11 changes: 11 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "querystring-yui",
"description": "A robust querystring parsing module for node.js, based on the YUI QueryString module.",
"version": "0.0.1",
"main": "querystring.js",
"license": "BSD",
"repository": {
"type": "git",
"url": "https://github.com/MitchellMcKenna/querystring-yui"
}
}

0 comments on commit 25773b9

Please sign in to comment.