New Powerful Machines

    jsfirewalld

    0.0.4 • Public • Published

    jsfirewalld

    TODO: A nodejs wrapper for firewall-cmd command

    Installation

    npm i jsfirewalld /save

    Instruction

    const JSFirewalld=require("jsfirewalld");
    const fd=new JSFirewalld();
    fd.getVersion().then((version)=>{
      console.log(version);
    })
     
    let zones= await fd.listZones();
    console.log(JSON.stringify(zones));

    More samples under ./node_modules/jsfirewalld/test/test.js Please run with sudo as firewall-cmd need root privilege

    Contributing

    1. Fork it!
    2. Create your feature branch: git checkout -b my-new-feature
    3. Commit your changes: git commit -am 'Add some feature'
    4. Push to the branch: git push origin my-new-feature
    5. Submit a pull request :D

    History

    TODO: Write history

    Credits

    TODO: Write credits

    License

    MIT

    Install

    npm i jsfirewalld

    DownloadsWeekly Downloads

    5

    Version

    0.0.4

    License

    MIT

    Unpacked Size

    41.9 kB

    Total Files

    5

    Last publish

    Collaborators

    • beta_caojin