{"id":323,"date":"2015-04-29T14:01:21","date_gmt":"2015-04-29T21:01:21","guid":{"rendered":"http:\/\/shanelabs.com\/blog\/?p=323"},"modified":"2015-04-29T14:01:21","modified_gmt":"2015-04-29T21:01:21","slug":"man-node","status":"publish","type":"post","link":"https:\/\/shanelabs.com\/blog\/2015\/04\/29\/man-node\/","title":{"rendered":"Man page for Node JS"},"content":{"rendered":"<pre>NODE.JS(1)                                                                                                                                                                                NODE.JS(1)\r\n\r\nNAME\r\n       node - Server-side JavaScript\r\n\r\nSYNOPSIS\r\n       node [ -v ] [ --debug | --debug-brk ] [ --v8-options ]\r\n            [ -e command | script.js ] [ arguments ]\r\n\r\n       Execute without arguments to start the REPL.\r\n\r\nDESCRIPTION\r\n       Node is a set of libraries for javascript which allows it to be used outside of the browser. It is primarily focused on creating simple, easy to build network clients and servers.\r\n\r\nOPTIONS\r\n         -v, --version          print node's version\r\n\r\n         -e, --eval script      evaluate script\r\n\r\n         -p, --print            print result of --eval\r\n\r\n         -i, --interactive      always enter the REPL even if stdin\r\n                                does not appear to be a terminal\r\n\r\n         --no-deprecation       silence deprecation warnings\r\n\r\n         --trace-deprecation    show stack traces on deprecations\r\n\r\n         --throw-deprecation    throw errors on deprecations\r\n\r\n         --v8-options           print v8 command line options\r\n\r\n         --max-stack-size=val   set max v8 stack size (bytes)\r\n\r\n         --enable-ssl2          enable ssl2 in crypto, tls, and https\r\n                                modules\r\n\r\n         --enable-ssl3          enable ssl3 in crypto, tls, and https\r\n                                modules\r\n\r\nENVIRONMENT VARIABLES\r\n       NODE_PATH\r\n              \u00c2\u00b4:\u00c2\u00b4-separated list of directories prefixed to the module search path.\r\n\r\n       NODE_MODULE_CONTEXTS\r\n              If set to 1 then modules will load in their own global contexts.\r\n\r\n       NODE_DISABLE_COLORS\r\n              If set to 1 then colors will not be used in the REPL.\r\n\r\nV8 OPTIONS\r\n         --use_strict (enforce strict mode)\r\n               type: bool  default: false\r\n         --es5_readonly (activate correct semantics for inheriting readonliness)\r\n               type: bool  default: false\r\n         --es52_globals (activate new semantics for global var declarations)\r\n               type: bool  default: false\r\n         --harmony_typeof (enable harmony semantics for typeof)\r\n               type: bool  default: false\r\n         --harmony_scoping (enable harmony block scoping)\r\n               type: bool  default: false\r\n         --harmony_modules (enable harmony modules (implies block scoping))\r\n               type: bool  default: false\r\n         --harmony_proxies (enable harmony proxies)\r\n               type: bool  default: false\r\n         --harmony_collections (enable harmony collections (sets, maps, and weak maps))\r\n               type: bool  default: false\r\n         --harmony (enable all harmony features (except typeof))\r\n               type: bool  default: false\r\n         --packed_arrays (optimizes arrays that have no holes)\r\n               type: bool  default: false\r\n         --smi_only_arrays (tracks arrays with only smi values)\r\n               type: bool  default: true\r\n         --clever_optimizations (Optimize object size, Array shift, DOM strings and string +)\r\n               type: bool  default: true\r\n         --unbox_double_arrays (automatically unbox arrays of doubles)\r\n               type: bool  default: true\r\n         --string_slices (use string slices)\r\n               type: bool  default: true\r\n         --crankshaft (use crankshaft)\r\n               type: bool  default: true\r\n         --hydrogen_filter (optimization filter)\r\n               type: string  default:\r\n         --use_range (use hydrogen range analysis)\r\n               type: bool  default: true\r\n         --eliminate_dead_phis (eliminate dead phis)\r\n               type: bool  default: true\r\n         --use_gvn (use hydrogen global value numbering)\r\n               type: bool  default: true\r\n         --use_canonicalizing (use hydrogen instruction canonicalizing)\r\n               type: bool  default: true\r\n         --use_inlining (use function inlining)\r\n               type: bool  default: true\r\n         --max_inlined_source_size (maximum source size in bytes considered for a single inlining)\r\n               type: int  default: 600\r\n         --max_inlined_nodes (maximum number of AST nodes considered for a single inlining)\r\n               type: int  default: 196\r\n         --max_inlined_nodes_cumulative (maximum cumulative number of AST nodes considered for inlining)\r\n               type: int  default: 196\r\n         --loop_invariant_code_motion (loop invariant code motion)\r\n               type: bool  default: true\r\n         --collect_megamorphic_maps_from_stub_cache (crankshaft harvests type feedback from stub cache)\r\n               type: bool  default: true\r\n         --hydrogen_stats (print statistics for hydrogen)\r\n               type: bool  default: false\r\n         --trace_hydrogen (trace generated hydrogen to file)\r\n               type: bool  default: false\r\n         --trace_phase (trace generated IR for specified phases)\r\n               type: string  default: Z\r\n         --trace_inlining (trace inlining decisions)\r\n               type: bool  default: false\r\n         --trace_alloc (trace register allocator)\r\n               type: bool  default: false\r\n         --trace_all_uses (trace all use positions)\r\n               type: bool  default: false\r\n         --trace_range (trace range analysis)\r\n               type: bool  default: false\r\n         --trace_gvn (trace global value numbering)\r\n               type: bool  default: false\r\n         --trace_representation (trace representation types)\r\n               type: bool  default: false\r\n         --stress_pointer_maps (pointer map for every instruction)\r\n               type: bool  default: false\r\n         --stress_environments (environment for every instruction)\r\n               type: bool  default: false\r\n         --deopt_every_n_times (deoptimize every n times a deopt point is passed)\r\n               type: int  default: 0\r\n         --trap_on_deopt (put a break point before deoptimizing)\r\n               type: bool  default: false\r\n         --deoptimize_uncommon_cases (deoptimize uncommon cases)\r\n               type: bool  default: true\r\n         --polymorphic_inlining (polymorphic inlining)\r\n               type: bool  default: true\r\n         --use_osr (use on-stack replacement)\r\n               type: bool  default: true\r\n         --array_bounds_checks_elimination (perform array bounds checks elimination)\r\n               type: bool  default: false\r\n         --array_index_dehoisting (perform array index dehoisting)\r\n               type: bool  default: false\r\n         --trace_osr (trace on-stack replacement)\r\n               type: bool  default: false\r\n         --stress_runs (number of stress runs)\r\n               type: int  default: 0\r\n         --optimize_closures (optimize closures)\r\n               type: bool  default: true\r\n         --inline_construct (inline constructor calls)\r\n               type: bool  default: true\r\n         --inline_arguments (inline functions with arguments object)\r\n               type: bool  default: true\r\n         --loop_weight (loop weight for representation inference)\r\n               type: int  default: 1\r\n         --optimize_for_in (optimize functions containing for-in loops)\r\n               type: bool  default: true\r\n         --experimental_profiler (enable all profiler experiments)\r\n               type: bool  default: true\r\n         --watch_ic_patching (profiler considers IC stability)\r\n               type: bool  default: false\r\n         --frame_count (number of stack frames inspected by the profiler)\r\n               type: int  default: 1\r\n         --self_optimization (primitive functions trigger their own optimization)\r\n               type: bool  default: false\r\n         --direct_self_opt (call recompile stub directly when self-optimizing)\r\n               type: bool  default: false\r\n         --retry_self_opt (re-try self-optimization if it failed)\r\n               type: bool  default: false\r\n         --count_based_interrupts (trigger profiler ticks based on counting instead of timing)\r\n               type: bool  default: false\r\n         --interrupt_at_exit (insert an interrupt check at function exit)\r\n               type: bool  default: false\r\n         --weighted_back_edges (weight back edges by jump distance for interrupt triggering)\r\n               type: bool  default: false\r\n         --interrupt_budget (execution budget before interrupt is triggered)\r\n               type: int  default: 5900\r\n         --type_info_threshold (percentage of ICs that must have type info to allow optimization)\r\n               type: int  default: 15\r\n         --self_opt_count (call count before self-optimization)\r\n               type: int  default: 130\r\n         --trace_opt_verbose (extra verbose compilation tracing)\r\n               type: bool  default: false\r\n         --debug_code (generate extra code (assertions) for debugging)\r\n               type: bool  default: false\r\n         --code_comments (emit comments in code disassembly)\r\n               type: bool  default: false\r\n         --enable_sse2 (enable use of SSE2 instructions if available)\r\n               type: bool  default: true\r\n         --enable_sse3 (enable use of SSE3 instructions if available)\r\n               type: bool  default: true\r\n         --enable_sse4_1 (enable use of SSE4.1 instructions if available)\r\n               type: bool  default: true\r\n         --enable_cmov (enable use of CMOV instruction if available)\r\n               type: bool  default: true\r\n         --enable_rdtsc (enable use of RDTSC instruction if available)\r\n               type: bool  default: true\r\n         --enable_sahf (enable use of SAHF instruction if available (X64 only))\r\n               type: bool  default: true\r\n         --enable_vfp3 (enable use of VFP3 instructions if available - this implies enabling ARMv7 instructions (ARM only))\r\n               type: bool  default: true\r\n         --enable_armv7 (enable use of ARMv7 instructions if available (ARM only))\r\n               type: bool  default: true\r\n         --enable_fpu (enable use of MIPS FPU instructions if available (MIPS only))\r\n               type: bool  default: true\r\n         --expose_natives_as (expose natives in global object)\r\n               type: string  default: NULL\r\n         --expose_debug_as (expose debug in global object)\r\n               type: string  default: NULL\r\n         --expose_gc (expose gc extension)\r\n               type: bool  default: false\r\n         --expose_externalize_string (expose externalize string extension)\r\n               type: bool  default: false\r\n         --stack_trace_limit (number of stack frames to capture)\r\n               type: int  default: 10\r\n         --builtins_in_stack_traces (show built-in functions in stack traces)\r\n               type: bool  default: false\r\n         --disable_native_files (disable builtin natives files)\r\n               type: bool  default: false\r\n         --inline_new (use fast inline allocation)\r\n               type: bool  default: true\r\n         --stack_trace_on_abort (print a stack trace if an assertion failure occurs)\r\n               type: bool  default: true\r\n         --trace (trace function calls)\r\n               type: bool  default: false\r\n         --mask_constants_with_cookie (use random jit cookie to mask large constants)\r\n               type: bool  default: true\r\n         --lazy (use lazy compilation)\r\n               type: bool  default: true\r\n         --trace_opt (trace lazy optimization)\r\n               type: bool  default: false\r\n         --trace_opt_stats (trace lazy optimization statistics)\r\n               type: bool  default: false\r\n         --opt (use adaptive optimizations)\r\n               type: bool  default: true\r\n         --always_opt (always try to optimize functions)\r\n               type: bool  default: false\r\n         --prepare_always_opt (prepare for turning on always opt)\r\n               type: bool  default: false\r\n         --trace_deopt (trace deoptimization)\r\n               type: bool  default: false\r\n         --min_preparse_length (minimum length for automatic enable preparsing)\r\n               type: int  default: 1024\r\n         --always_full_compiler (try to use the dedicated run-once backend for all code)\r\n               type: bool  default: false\r\n         --trace_bailout (print reasons for falling back to using the classic V8 backend)\r\n               type: bool  default: false\r\n         --compilation_cache (enable compilation cache)\r\n               type: bool  default: true\r\n         --cache_prototype_transitions (cache prototype transitions)\r\n               type: bool  default: true\r\n         --trace_debug_json (trace debugging JSON request\/response)\r\n               type: bool  default: false\r\n         --debugger_auto_break (automatically set the debug break flag when debugger commands are in the queue)\r\n               type: bool  default: true\r\n         --enable_liveedit (enable liveedit experimental feature)\r\n               type: bool  default: true\r\n         --break_on_abort (always cause a debug break before aborting)\r\n               type: bool  default: true\r\n         --stack_size (default size of stack region v8 is allowed to use (in kBytes))\r\n               type: int  default: 984\r\n         --max_stack_trace_source_length (maximum length of function source code printed in a stack trace.)\r\n               type: int  default: 300\r\n         --always_inline_smi_code (always inline smi code in non-opt code)\r\n               type: bool  default: false\r\n         --max_new_space_size (max size of the new generation (in kBytes))\r\n               type: int  default: 0\r\n         --max_old_space_size (max size of the old generation (in Mbytes))\r\n               type: int  default: 0\r\n         --max_executable_size (max size of executable memory (in Mbytes))\r\n               type: int  default: 0\r\n         --gc_global (always perform global GCs)\r\n               type: bool  default: false\r\n         --gc_interval (garbage collect after  allocations)\r\n               type: int  default: -1\r\n         --trace_gc (print one trace line following each garbage collection)\r\n               type: bool  default: false\r\n         --trace_gc_nvp (print one detailed trace line in name=value format after each garbage collection)\r\n               type: bool  default: false\r\n         --print_cumulative_gc_stat (print cumulative GC statistics in name=value format on exit)\r\n               type: bool  default: false\r\n         --trace_gc_verbose (print more details following each garbage collection)\r\n               type: bool  default: false\r\n         --trace_fragmentation (report fragmentation for old pointer and data pages)\r\n               type: bool  default: false\r\n         --collect_maps (garbage collect maps from which no objects can be reached)\r\n               type: bool  default: true\r\n         --flush_code (flush code that we expect not to use again before full gc)\r\n               type: bool  default: true\r\n         --incremental_marking (use incremental marking)\r\n               type: bool  default: true\r\n         --incremental_marking_steps (do incremental marking steps)\r\n               type: bool  default: true\r\n         --trace_incremental_marking (trace progress of the incremental marking)\r\n               type: bool  default: false\r\n         --use_idle_notification (Use idle notification to reduce memory footprint.)\r\n               type: bool  default: true\r\n         --send_idle_notification (Send idle notification between stress runs.)\r\n               type: bool  default: false\r\n         --use_ic (use inline caching)\r\n               type: bool  default: true\r\n         --native_code_counters (generate extra code for manipulating stats counters)\r\n               type: bool  default: false\r\n         --always_compact (Perform compaction on every full GC)\r\n               type: bool  default: false\r\n         --lazy_sweeping (Use lazy sweeping for old pointer and data spaces)\r\n               type: bool  default: true\r\n         --never_compact (Never perform compaction on full GC - testing only)\r\n               type: bool  default: false\r\n         --compact_code_space (Compact code space on full non-incremental collections)\r\n               type: bool  default: true\r\n         --cleanup_code_caches_at_gc (Flush inline caches prior to mark compact collection and flush code caches in maps during mark compact cycle.)\r\n               type: bool  default: true\r\n         --random_seed (Default seed for initializing random generator (0, the default, means to use system random).)\r\n               type: int  default: 0\r\n         --use_verbose_printer (allows verbose printing)\r\n               type: bool  default: true\r\n         --allow_natives_syntax (allow natives syntax)\r\n               type: bool  default: false\r\n         --trace_sim (Trace simulator execution)\r\n               type: bool  default: false\r\n         --check_icache (Check icache flushes in ARM and MIPS simulator)\r\n               type: bool  default: false\r\n         --stop_sim_at (Simulator stop after x number of instructions)\r\n               type: int  default: 0\r\n         --sim_stack_alignment (Stack alignment in bytes in simulator (4 or 8, 8 is default))\r\n               type: int  default: 8\r\n         --trace_exception (print stack trace when throwing exceptions)\r\n               type: bool  default: false\r\n         --preallocate_message_memory (preallocate some memory to build stack traces.)\r\n               type: bool  default: false\r\n         --randomize_hashes (randomize hashes to avoid predictable hash collisions (with snapshots this option cannot override the baked-in seed))\r\n               type: bool  default: true\r\n         --hash_seed (Fixed seed to use to hash property keys (0 means random)(with snapshots this option cannot override the baked-in seed))\r\n               type: int  default: 0\r\n         --preemption (activate a 100ms timer that switches between V8 threads)\r\n               type: bool  default: false\r\n         --regexp_optimization (generate optimized regexp code)\r\n               type: bool  default: true\r\n         --testing_bool_flag (testing_bool_flag)\r\n               type: bool  default: true\r\n         --testing_int_flag (testing_int_flag)\r\n               type: int  default: 13\r\n         --testing_float_flag (float-flag)\r\n               type: float  default: 2.500000\r\n         --testing_string_flag (string-flag)\r\n               type: string  default: Hello, world!\r\n         --testing_prng_seed (Seed used for threading test randomness)\r\n               type: int  default: 42\r\n         --testing_serialization_file (file in which to serialize heap)\r\n               type: string  default: \/tmp\/serdes\r\n         --help (Print usage message, including flags, on console)\r\n               type: bool  default: true\r\n         --dump_counters (Dump counters on exit)\r\n               type: bool  default: false\r\n         --debugger (Enable JavaScript debugger)\r\n               type: bool  default: false\r\n         --remote_debugger (Connect JavaScript debugger to the debugger agent in another process)\r\n               type: bool  default: false\r\n         --debugger_agent (Enable debugger agent)\r\n               type: bool  default: false\r\n         --debugger_port (Port to use for remote debugging)\r\n               type: int  default: 5858\r\n         --map_counters (Map counters to a file)\r\n               type: string  default:\r\n         --js_arguments (Pass all remaining arguments to the script. Alias for \"--\".)\r\n               type: arguments  default:\r\n         --debug_compile_events (Enable debugger compile events)\r\n               type: bool  default: true\r\n         --debug_script_collected_events (Enable debugger script collected events)\r\n               type: bool  default: true\r\n         --gdbjit (enable GDBJIT interface (disables compacting GC))\r\n               type: bool  default: false\r\n         --gdbjit_full (enable GDBJIT interface for all code objects)\r\n               type: bool  default: false\r\n         --gdbjit_dump (dump elf objects with debug info to disk)\r\n               type: bool  default: false\r\n         --gdbjit_dump_filter (dump only objects containing this substring)\r\n               type: string  default:\r\n         --force_marking_deque_overflows (force overflows of marking deque by reducing its size to 64 words)\r\n               type: bool  default: false\r\n         --stress_compaction (stress the GC compactor to flush out bugs (implies --force_marking_deque_overflows))\r\n               type: bool  default: false\r\n         --log (Minimal logging (no API, code, GC, suspect, or handles samples).)\r\n               type: bool  default: false\r\n         --log_all (Log all events to the log file.)\r\n               type: bool  default: false\r\n         --log_runtime (Activate runtime system %Log call.)\r\n               type: bool  default: false\r\n         --log_api (Log API events to the log file.)\r\n               type: bool  default: false\r\n         --log_code (Log code events to the log file without profiling.)\r\n               type: bool  default: false\r\n         --log_gc (Log heap samples on garbage collection for the hp2ps tool.)\r\n               type: bool  default: false\r\n         --log_handles (Log global handle events.)\r\n               type: bool  default: false\r\n         --log_snapshot_positions (log positions of (de)serialized objects in the snapshot.)\r\n               type: bool  default: false\r\n         --log_suspect (Log suspect operations.)\r\n               type: bool  default: false\r\n         --prof (Log statistical profiling information (implies --log-code).)\r\n               type: bool  default: false\r\n         --prof_auto (Used with --prof, starts profiling automatically)\r\n               type: bool  default: true\r\n         --prof_lazy (Used with --prof, only does sampling and logging when profiler is active (implies --noprof_auto).)\r\n               type: bool  default: false\r\n         --prof_browser_mode (Used with --prof, turns on browser-compatible mode for profiling.)\r\n               type: bool  default: true\r\n         --log_regexp (Log regular expression execution.)\r\n               type: bool  default: false\r\n         --sliding_state_window (Update sliding state window counters.)\r\n               type: bool  default: false\r\n         --logfile (Specify the name of the log file.)\r\n               type: string  default: v8.log\r\n         --ll_prof (Enable low-level linux profiler.)\r\n               type: bool  default: false\r\n\r\nRESOURCES AND DOCUMENTATION\r\n       See the website for documentation http:\/\/nodejs.org\/\r\n\r\n       Mailing list: http:\/\/groups.google.com\/group\/nodejs\r\n\r\n       IRC: irc.freenode.net #node.js\r\n\r\n                                                                                                2010                                                                                      NODE.JS(1)\r\n\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>NODE.JS(1) NODE.JS(1) NAME node &#8211; Server-side JavaScript SYNOPSIS node [ -v ] [ &#8211;debug | &#8211;debug-brk ] [ &#8211;v8-options ] [ -e command | script.js ] [ arguments ] Execute without arguments to start the REPL. DESCRIPTION Node is a set of libraries for javascript which allows it to be used outside of the browser. [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[3],"tags":[],"class_list":["post-323","post","type-post","status-publish","format-standard","hentry","category-software"],"_links":{"self":[{"href":"https:\/\/shanelabs.com\/blog\/wp-json\/wp\/v2\/posts\/323","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shanelabs.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/shanelabs.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/shanelabs.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/shanelabs.com\/blog\/wp-json\/wp\/v2\/comments?post=323"}],"version-history":[{"count":1,"href":"https:\/\/shanelabs.com\/blog\/wp-json\/wp\/v2\/posts\/323\/revisions"}],"predecessor-version":[{"id":324,"href":"https:\/\/shanelabs.com\/blog\/wp-json\/wp\/v2\/posts\/323\/revisions\/324"}],"wp:attachment":[{"href":"https:\/\/shanelabs.com\/blog\/wp-json\/wp\/v2\/media?parent=323"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/shanelabs.com\/blog\/wp-json\/wp\/v2\/categories?post=323"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/shanelabs.com\/blog\/wp-json\/wp\/v2\/tags?post=323"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}