Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
Generator by: generator-simple-node-package
  • Loading branch information
matiassingers committed Nov 25, 2014
0 parents commit b90b14b
Show file tree
Hide file tree
Showing 10 changed files with 172 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .editorconfig
@@ -0,0 +1,13 @@
# http://editorconfig.org
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
3 changes: 3 additions & 0 deletions .gitignore
@@ -0,0 +1,3 @@
node_modules
.idea
npm-debug.log
13 changes: 13 additions & 0 deletions .jshintrc
@@ -0,0 +1,13 @@
{
"node": true,
"esnext": true,
"bitwise": true,
"camelcase": true,
"curly": true,
"immed": true,
"newcap": true,
"noarg": true,
"undef": true,
"unused": "vars",
"strict": true
}
4 changes: 4 additions & 0 deletions .travis.yml
@@ -0,0 +1,4 @@
language: node_js
node_js:
- '0.11'
- '0.10'
32 changes: 32 additions & 0 deletions cli.js
@@ -0,0 +1,32 @@
#!/usr/bin/env node
'use strict';

var pkg = require('./package.json');
var apnTest = require('./');
var argv = process.argv.slice(2);

function help() {
console.log([
'',
' ' + pkg.description,
'',
' Example',
' apn ',
''
].join('\n'));
}

if (argv.indexOf('--help') !== -1) {
help();
return;
}

if (argv.indexOf('--version') !== -1) {
console.log(pkg.version);
return;
}


apnTest(argv[0], function(){

});
5 changes: 5 additions & 0 deletions index.js
@@ -0,0 +1,5 @@
'use strict';

module.exports = function(){

};
21 changes: 21 additions & 0 deletions license
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) Matias Singers <mail@matiassingers.com> (http://mts.io)

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.
33 changes: 33 additions & 0 deletions package.json
@@ -0,0 +1,33 @@
{
"name": "apn-test",
"version": "0.1.0",
"description": "easily test push notifications with this CLI",
"main": "index.js",
"scripts": {
"test": "mocha"
},
"engines": {
"node": ">=0.10.0"
},
"bin": {
"apn": "cli.js"
},
"files": [
"index.js",
"cli.js"
],
"repository": {
"type": "git",
"url": "https://github.com/matiassingers/apn-test"
},
"author": "Matias Singers <mail@matiassingers.com> (http://mts.io)",
"license": "MIT",
"bugs": {
"url": "https://github.com/matiassingers/apn-test/issues"
},
"homepage": "https://github.com/matiassingers/apn-test",
"dependencies": {},
"devDependencies": {
"mocha": "*"
}
}
38 changes: 38 additions & 0 deletions readme.md
@@ -0,0 +1,38 @@
# apn-test [![Build Status](http://img.shields.io/travis/matiassingers/apn-test.svg?style=flat-square)](https://travis-ci.org/matiassingers/apn-test) [![Dependency Status](http://img.shields.io/gemnasium/matiassingers/apn-test.svg?style=flat-square)](https://gemnasium.com/matiassingers/apn-test)
> easily test push notifications with this CLI
## Install

```sh
$ npm install --save apn-test
```


## Usage

```js
var apnTest = require('apn-test');

apnTest()

```


## CLI

```sh
$ npm install --global apn-test
```

```sh
$ apn --help

Example
apn

```


## License

MIT © [Matias Singers](http://mts.io)
10 changes: 10 additions & 0 deletions test.js
@@ -0,0 +1,10 @@
'use strict';

var assert = require('assert');
var apnTest = require('./');

describe('initial', function(){
it('fail', function() {
assert(false);
});
});

0 comments on commit b90b14b

Please sign in to comment.