UNPKG

dateformat-htmlescape

Version:

提供了格式化时间、HTMLEscape相关的功能

12 lines (10 loc) 327 B
// 这是包的入口文件 const date = require('./src/dateFormat') const escape = require('./src/htmlEscape') // 向外暴露需要的成员 // 前面+三个点,展开运算符,是ES6语法, // 表示把这个对象的每个属性展开来存储到一个新对象 module.exports = { ...date, ...escape }