Comparing version 0.0.1 to 0.1.0
{ | ||
"name": "beat", | ||
"description": "Beating the rhythm of life", | ||
"description": "Simple dependency injection for node", | ||
"author": "Ezequias Dinella <ezequias.net@gmail.com>", | ||
"repository": "git://github.com/edinella/beat.git", | ||
"version": "0.0.1", | ||
"license": "MIT" | ||
"version": "0.1.0", | ||
"license": "MIT", | ||
"main": "lib/beat.js", | ||
"dependencies": { | ||
}, | ||
"devDependencies": { | ||
"mocha": "~1.13.0", | ||
"chai": "~1.8.1", | ||
"sinon": "~1.7.3" | ||
}, | ||
"scripts": { | ||
"test": "mocha" | ||
} | ||
} |
beat | ||
==== | ||
Simple dependency injection for node | ||
[![NPM](https://nodei.co/npm/beat.png)](https://npmjs.org/package/beat) | ||
```js | ||
var Beat = require('beat'); | ||
var app = new Beat('app'); | ||
app.value('port', process.env.PORT || 3000); | ||
app.value('express', require('express')); | ||
app.factory('app', function(express){ | ||
return express(); | ||
}); | ||
app.run(function(app, port){ | ||
app.get('/hello.txt', function(req, res){ | ||
res.send('Hello World'); | ||
}); | ||
app.listen(port); | ||
console.log('Express running at :'+port); | ||
}); | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
6688
7
138
25
0
3