UNPKG

olivant

Version:

Echo the destruction caused by your code.

46 lines (36 loc) 764 B
"use strict"; const asea = require( "asea" ); const harden = require( "harden" ); //: @server: const Olivant = require( "./olivant.js" ); //: @end-server harden( "RECORD", "record" ); harden( "RECORD_CODE", 200 ); Olivant.create( "Record", { "name": RECORD, "status": RECORD, "code": RECORD_CODE, "silent": true, "depth": 4, "color": "white", "inspect": { "depth": 1, "length": 100 }, "initialize": function initialize( ){ if( asea.server && process.env.NODE_ENV != "production" ) { this.prompt( ); }else if( asea.client && ( window.ENVIRONMENT != "production" && window.environment != "production" && !window.PRODUCTION && !window.production ) ) { this.prompt( ); } this.report( ); return this; } } );