npack 0.0.19

Use the right package manager
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#[cfg(test)]
mod bun {
    use crate::agents::*;
    use crate::parse::*;

    #[test]
    fn single_uninstall() {
        let (agent, args) = parse_nlx(Agent::Npm, vec!["esbuild".into()], None);
        assert_eq!(agent, "npx");
        assert_eq!(args, ["esbuild"]);
    }
    #[test]
    fn multiple() {
        let (agent, args) = parse_nlx(Agent::Npm, vec!["esbuild".into(), "--version".into()], None);
        assert_eq!(agent, "npx");
        assert_eq!(args, ["esbuild", "--version"]);
    }
}