ip2oct
Converts an IP address into an octal representation of it.
Created by: hackvertor
Installed 1 times
Category: IP
Created on: Tuesday, October 22, 2024 at 11:49:58 AM
Updated on: Wednesday, November 20, 2024 at 11:06:08 AM
Tag arguments
[]
Code
class ip2oct {
encode(input) {
return input
.split(".")
.map((oct) => "0" + parseInt(oct).toString(8))
.join(".");
}
}