npm_run_scripts/utils/mod.rs
1//! Utility module for nrs.
2//!
3//! Common utilities for paths, terminal handling, and other helpers.
4
5mod paths;
6mod terminal;
7
8pub use paths::{
9 config_dir, find_package_json, find_project_root, global_config_file, history_file,
10 local_config_file, MAX_SEARCH_DEPTH,
11};
12pub use terminal::{
13 check_terminal_size, cleanup_terminal, disable_raw_mode, enable_raw_mode,
14 enter_alternate_screen, hide_cursor, is_raw_mode_enabled, leave_alternate_screen,
15 prepare_for_script_execution, restore_for_tui, show_cursor, TerminalSize, MIN_HEIGHT,
16 MIN_WIDTH,
17};