File tree Expand file tree Collapse file tree 12 files changed +2
-26
lines changed
Expand file tree Collapse file tree 12 files changed +2
-26
lines changed Original file line number Diff line number Diff line change 11//----------------------------------------------------------------------------------------------------------------------
22// A playful example, using characters from "Dr. Horrible's Sing Along Blog".
3- //
4- // @module horrible_example.js
53//----------------------------------------------------------------------------------------------------------------------
64
75const Promise = require ( 'bluebird' ) ;
Original file line number Diff line number Diff line change 11//----------------------------------------------------------------------------------------------------------------------
22// Models
3- //
4- // @module
53//----------------------------------------------------------------------------------------------------------------------
64
75import tdb from '../../../trivialdb' ;
Original file line number Diff line number Diff line change 11//----------------------------------------------------------------------------------------------------------------------
22// Custom errors
3- //
4- // @module error.js
53//----------------------------------------------------------------------------------------------------------------------
64
75const { BaseError } = require ( 'make-error' ) ;
Original file line number Diff line number Diff line change 11//----------------------------------------------------------------------------------------------------------------------
22// fs operations for the browser
3- //
4- // @module
53//----------------------------------------------------------------------------------------------------------------------
64
75const Promise = require ( 'bluebird' ) ;
Original file line number Diff line number Diff line change 11//----------------------------------------------------------------------------------------------------------------------
2- // fslib.js - Brief description for fslib.js module.
3- //
4- // @module
2+ // fslib.js - A Library for handling file system operations.
53//----------------------------------------------------------------------------------------------------------------------
64
75const fs = require ( 'fs' ) ;
Original file line number Diff line number Diff line change 11//----------------------------------------------------------------------------------------------------------------------
22// This is the main logic for namespaces. They are essentially just collections of `TDB` instances, plus some fancy
33// rootPath logic.
4- //
5- // @module
64//----------------------------------------------------------------------------------------------------------------------
75
86const pathlib = require ( './pathlib' ) ;
Original file line number Diff line number Diff line change 11//----------------------------------------------------------------------------------------------------------------------
22// PathLib
3- //
4- // @module
53//----------------------------------------------------------------------------------------------------------------------
64
75const path = require ( 'path' ) ;
Original file line number Diff line number Diff line change 11//----------------------------------------------------------------------------------------------------------------------
22// This is the main database logic. It implements a thin wrapper around a plain object, as well as logic for persisting
33// to disk.
4- //
5- // @module
64//----------------------------------------------------------------------------------------------------------------------
75
86const { EventEmitter } = require ( 'events' ) ;
Original file line number Diff line number Diff line change 11// ---------------------------------------------------------------------------------------------------------------------
22// Unit Tests for the namespace.spec.js module.
3- //
4- // @module
53// ---------------------------------------------------------------------------------------------------------------------
64
75const path = require ( 'path' ) ;
Original file line number Diff line number Diff line change 11// ---------------------------------------------------------------------------------------------------------------------
22// Unit Tests for the tdb.spec.js module.
3- //
4- // @module tdb.spec.js
53// ---------------------------------------------------------------------------------------------------------------------
64
75const fs = require ( 'fs' ) ;
You can’t perform that action at this time.
0 commit comments