How to use the fortune._ function in fortune

To help you get started, we’ve selected a few fortune examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github fortunejs / fortune-postgres / relational.js View on Github external
var fortune = require('fortune')
  , orm = require('orm')
  , RSVP = fortune.RSVP
  , _ = fortune._;

var adapter = {};

adapter._init = function(options) {
  var _this = this;

  // Setup ORM instance.
  this.orm = orm.connect({
    host: options.host,
    database: options.db,
    protocol: options.adapter,
    user: options.username,
    password: options.password,
    port: options.port,
    query: options.flags
  });

fortune

Non-native graph database abstraction layer for Node.js and web browsers.

MIT
Latest version published 8 months ago

Package Health Score

65 / 100
Full package analysis

Popular fortune functions