Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
test/
coverage.html
lib-cov/
Makefile
.travis.yml
logo.png
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
language: node_js
node_js:
- '0.11'
script: make test-coveralls
install:
- 'npm install --registry=http://registry.cnpmjs.org --cache=${HOME}/.npm/.cache/cnpm'
6 changes: 6 additions & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Ordered by date of first contribution.
# Auto-generated by 'contributors' on Fri, 27 Dec 2013 02:22:54 GMT.
# https://github.com/xingrz/node-contributors

aleafs <zhangxc83@gmail.com> (https://github.com/aleafs)
fengmk2 <fengmk2@gmail.com> (https://github.com/fengmk2)
21 changes: 21 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
This software is licensed under the MIT License.

Copyright (C) nae team and other contributors.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
29 changes: 19 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ REPORTER = spec
TIMEOUT = 5000
MOCHA_OPTS =

init:
@npm install
init: install
@ln -s -f ../../pre-commit.sh .git/hooks/pre-commit

install:
@npm install --registry=http://registry.cnpmjs.org --cache=${HOME}/.npm/.cache/cnpm

clean:
-rm -rf ./run

Expand All @@ -17,14 +19,21 @@ test: init
$(MOCHA_OPTS) \
$(TESTS)

cov: init
-rm -f ./coverage.html
@$(MAKE) test MOCHA_OPTS='--require blanket' REPORTER=html-cov > coverage.html
test-cov:
@$(MAKE) test MOCHA_OPTS='--require blanket' REPORTER=travis-cov

coveralls:
@$(MAKE) test

test-cov-html:
@rm -f coverage.html
@$(MAKE) test MOCHA_OPTS='--require blanket' REPORTER=html-cov > coverage.html
@ls -lh coverage.html

test-coveralls: test
@echo TRAVIS_JOB_ID $(TRAVIS_JOB_ID)
@$(MAKE) test MOCHA_OPTS='--require blanket' REPORTER=mocha-lcov-reporter | ./node_modules/coveralls/bin/coveralls.js

@-$(MAKE) test MOCHA_OPTS='--require blanket' REPORTER=mocha-lcov-reporter | ./node_modules/coveralls/bin/coveralls.js

test-all: test test-cov

contributors: install
@./node_modules/contributors/bin/contributors -f plain -o AUTHORS

.PHONY: test
31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
nae-net
=======

[![Build Status](https://secure.travis-ci.org/node-app-engine/net.png)](http://travis-ci.org/node-app-engine/net) [![Coverage Status](https://coveralls.io/repos/node-app-engine/net/badge.png)](https://coveralls.io/r/node-app-engine/net) [![Dependency Status](https://gemnasium.com/node-app-engine/net.png)](https://gemnasium.com/node-app-engine/net)

[![NPM](https://nodei.co/npm/nae-net.png?downloads=true&stars=true)](https://nodei.co/npm/nae-net/)

![logo](https://raw.github.com/node-app-engine/net/master/logo.png)

## About

* mapping port listening to unix domain;
Expand All @@ -16,3 +22,28 @@ net.createServer(function (c) {
}).listen(8080);

```

## License

(The MIT License)

Copyright (c) nae team and other contributors.

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Binary file added logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 13 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@
"keywords": [ "nae", "net" ],
"version": "0.0.1",
"author": "Aleafs Zhang (zhangxc83@gmail.com)",
"repository": {
"type": "git",
"repository": {
"type": "git",
"url": "git@github.com:node-app-engine/net.git"
},
"homepage": "https://github.com/node-app-engine/net",
"contributors": [
],
"dependencies": {
"bugs": {
"url": "https://github.com/node-app-engine/fs/issues",
"email": "fengmk2+nae@gmail.com"
},
"engines": {
"node": ">=0.10.21"
"dependencies": {
},
"devDependencies": {
"contributors": "*",
"benchmark" : "*",
"should" : ">=0.6.3",
"mocha" : ">=1.0.3",
Expand All @@ -29,7 +29,7 @@
},
"scripts": {
"main" : "index.js",
"test" : "make test"
"test" : "make test-all"
},
"config" : {
"blanket": {
Expand All @@ -38,5 +38,9 @@
"travis-cov": {
"threshold": 80
}
}
},
"engines": {
"node": ">=0.10.21"
},
"license": "MIT"
}