npm i custom_node
const c=require("custon_node")
function dateFormat(){
const date=new Date()
const y=date.getFullYear()
const m=date.getMonth()+1
const d=date.getDay()
const hh=date.getHours()
const mm=date.getMinutes()
const ss=date.getSeconds()
console.log(y+"-"+m+"-"+d+"-"+hh+"-"+mm+"-"+ss)
}
function htmlEscape(str){
const s=str.replace(/>|< |"/g,(i)=>{
switch(i){
case">":
return ">"
case"<":
return "<"
case'"':
return """
}
})
console.log(s)
}
function mdEscape(str){
const s=str.replace(/>|<|"/g,(i)=>{
switch(i){
case">":
return ">"
case"<":
return "<"
case'"':
return '"'
}
})
console.log(s)
}
ISC