- mkdir cvr-stuff
- cd cvr-stuff
- mkdir node_modules
- npm install mongojs
- touch index.js
- add the code
Last active
August 29, 2015 14:13
-
-
Save freeall/aa761c9e474b1e4e4304 to your computer and use it in GitHub Desktop.
How to query the CVR database
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var mongojs = require('mongojs'); | |
var db = mongojs('read:123456@128.199.33.21/virk', ['cvr']); | |
db.cvr.findOne({}, function(err, company) { | |
console.log(company); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment