Permalink
Browse files

publish jsxml to NPM, can install it by 'npm install node-jsxml' now

  • Loading branch information...
1 parent f59e8a1 commit 30d31b1ab851506833661e0882b6ec05abfbdd98 @colorhook committed Mar 29, 2012
Showing with 53 additions and 2 deletions.
  1. +9 −0 .npmignore
  2. +7 −0 README.md
  3. +33 −0 package.json
  4. +3 −1 src/jsxml.js
  5. +1 −1 tests/jsxml-test.js
View
@@ -0,0 +1,9 @@
+.*
+node_modules/
+ant/
+build/
+lib/
+jsTestDriver-yui-adapter/
+examples/
+tests/
+JsTestDriver.conf
View
@@ -3,6 +3,13 @@ jsxml
jsxml is an XML library for javascript (and node)
+Install by NPM
+--------------
+
+```shell
+npm install node-jsxml
+```
+
How to use?
------------
After add this library to your project, there will be a global object named jsxml.
View
@@ -0,0 +1,33 @@
+{
+ "name": "node-jsxml",
+ "version": "0.2.0",
+ "description": "an XML parser for javascript and node.js",
+ "keywords": ["xml", "parser"],
+ "main": "./src/jsxml.js",
+ "engines": {
+ "node" : ">=0.1.9"
+ },
+ "author": "colorhook <colorhook@gmail.com>",
+ "maintainers": [{
+ "name": "colorhook",
+ "email": "colorhook@gmail.com",
+ "url": "http://colorhook.com"
+ }],
+ "bugs": {
+ "email": "colorhook@gmail.com",
+ "url": "http://github.com/colorhook/jsxml/issues"
+ },
+ "dependencies": {
+ },
+ "homepage": "https://github.com/colorhook/jsxml",
+ "repository" : {
+ "type" : "git",
+ "url" : "git://github.com/colorhook/jsxml.git"
+ },
+ "licenses": [
+ {
+ "type": "MIT",
+ "url": "http://github.com/colorhook/jsxml/blob/master/LICENSE"
+ }
+ ]
+}
View
@@ -1697,5 +1697,7 @@ var jsxml = (function(){
//support for nodejs
if(typeof exports != "undefined"){
- exports.jsxml = jsxml;
+ for(var i in jsxml){
+ exports[i] = jsxml[i];
+ }
}
View
@@ -1,6 +1,6 @@
if(typeof exports != "undefined"){
var YUI = require("yui3").YUI;
- var jsxml = require("../src/jsxml.js").jsxml;
+ var jsxml = require("../src/jsxml.js");
}
YUI().use('test', function(Y){

0 comments on commit 30d31b1

Please sign in to comment.