Skip to content

Instantly share code, notes, and snippets.

@freeall
Last active Aug 29, 2015
Embed
What would you like to do?
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