| Crates.io | notox |
| lib.rs | notox |
| version | 1.6.1 |
| created_at | 2023-12-19 12:25:59.786665+00 |
| updated_at | 2026-01-05 02:14:27.307263+00 |
| description | no toxic names anymore |
| homepage | https://github.com/Its-Just-Nans/notox |
| repository | https://github.com/Its-Just-Nans/notox |
| max_upload_size | |
| id | 1074244 |
| size | 103,870 |
no toxic names anymore. May looks like detox.
# installation
cargo install notox
notox --do my_path
By default, notox will only print the names that would be renamed. Use the
--door-doption to actually rename the files.
| Option | Description |
|---|---|
-v, --version |
Prints version information |
-d, --do |
Do the actions (rename) |
-q, --quiet |
No output |
-j, --json |
Output as JSON |
-p, --json-pretty |
Output as JSON (prettified) |
-e, --json-error |
Output as JSON (only errors) |
use std::collections::HashSet;
use std::path::PathBuf;
use notox::{Notox, NotoxArgs, NotoxOutput};
let paths: HashSet<PathBuf> = HashSet::from(["README.md".into(), "Cargo.toml".into()]);
let notox_args = NotoxArgs {
dry_run: true, // change here
// if using serde
// output: NotoxOutput::JsonOutput {
// json: JsonOutput::JsonDefault,
// pretty: false,
// },
output: NotoxOutput::Quiet
};
let notox_inst = Notox::new(notox_args);
let res = notox_inst.run(&paths);
// to print them
notox_inst.print_output(res);