Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

beat

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

beat - npm Package Compare versions

Comparing version 0.0.1 to 0.1.0

.npmignore

17

package.json
{
"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);
});
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc