Skip to main content

nu_utils/
lib.rs

1#![doc = include_str!("../README.md")]
2mod casing;
3pub mod const_str;
4pub mod consts;
5pub mod container;
6mod deansi;
7mod downcast;
8pub mod emoji;
9pub mod filesystem;
10pub mod flatten_json;
11pub mod float;
12pub mod locale;
13pub mod location;
14#[doc(hidden)]
15pub mod module_path;
16mod multilife;
17pub mod net;
18mod nu_cow;
19mod quoting;
20mod shared_cow;
21mod split_read;
22pub mod strings;
23pub mod sync;
24pub mod time;
25pub mod utils;
26
27pub use locale::{get_locale_from_env_vars, get_system_locale};
28pub use utils::{
29    enable_vt_processing, get_ls_colors, stderr_write_all_and_flush, stdout_write_all_and_flush,
30    terminal_size,
31};
32
33pub use casing::IgnoreCaseExt;
34pub use deansi::{
35    strip_ansi_likely, strip_ansi_string_likely, strip_ansi_string_unlikely, strip_ansi_unlikely,
36};
37pub use downcast::downcast;
38pub use emoji::contains_emoji;
39pub use flatten_json::JsonFlattener;
40pub use float::ObviousFloat;
41pub use multilife::MultiLife;
42pub use nu_cow::NuCow;
43pub use quoting::{as_raw_string, escape_quote_string, needs_quoting};
44pub use shared_cow::SharedCow;
45pub use split_read::SplitRead;
46
47#[cfg(unix)]
48pub use filesystem::users;
49
50mod fmt_handle;
51pub use fmt_handle::*;