Skip to content

Instantly share code, notes, and snippets.

@freeall
Last active August 29, 2015 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save freeall/aa761c9e474b1e4e4304 to your computer and use it in GitHub Desktop.
Save freeall/aa761c9e474b1e4e4304 to your computer and use it in GitHub Desktop.
How to query the CVR database
  1. mkdir cvr-stuff
  2. cd cvr-stuff
  3. mkdir node_modules
  4. npm install mongojs
  5. touch index.js
  6. add the code
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