Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

update readme

  • Loading branch information...
commit 42413fd93697a7e162f6e05c0f8fc567496e671b 1 parent 851eea0
notejs authored
Showing with 28 additions and 4 deletions.
  1. +23 −0 README.md
  2. +5 −4 package.json
View
23 README.md
@@ -0,0 +1,23 @@
+# jsutil.js
+
+## TODO
+
+## Installation
+
+Using npm:
+
+ npm install jsutil
+
+## Usage:
+
+ var jsutil = require("jsutil");
+
+ var defaultOptions = {
+ "host" : "xxx",
+ "response_times" : "1",
+ "response_mode" : "0"
+ };
+
+ var alphaOptions = jsutil.mixin({}, defaultOptions, {"user" : "alpha", "passwd" : "alpha"});
+
+ var devOptions = jsutil.mixin({}, defaultOptions, {"user" : "dev", "passwd" : "dev"});
View
9 package.json
@@ -1,22 +1,23 @@
{
"name": "jsutil",
- "version": "0.1",
- "description": "Mixin properties to object from one or more Object",
+ "version": "0.1.3",
+ "description": "A utilities package for node.js,for example mixin properties to object from one or more object",
"keywords": [
+ "util",
"mixin",
"extend"
],
"author": {
"name": "youjiang wang",
"email": "gm731958576@gmail.com",
- "url": ""
+ "url": "https://github.com/notejs"
},
"homepage": "",
"bugs": "",
"main": "./src/jsutil.js",
"repository": {
"type": "git",
- "url": ""
+ "url": "https://github.com/notejs/jsutil"
},
"readmeFilename": "README.md"
}
Please sign in to comment.
Something went wrong with that request. Please try again.