1.0.1 • Published 12 months ago

ttttool v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
12 months ago

ttttool

description

A simple tool for node.js

author

ttt

install

npm install ttttool

import

const ttt = require('ttttool')

function

getAuthor

const author = ttt.getAuthor()
console.log(author)
// ttt

dateFormat

const date = ttt.dateFormat(new Date())
console.log(date)
// 2021-12-31

htmlEscape

const str = ttt.htmlEscape('<div>hello world</div>')
console.log(str)
// &lt;div&gt;hello world&lt;/div&gt;

htmlUnEscape

const str = ttt.htmlUnEscape('&lt;div&gt;hello world&lt;/div&gt;')
console.log(str)
// <div>hello world</div>
1.0.1

12 months ago

1.0.0

12 months ago