1.0.0 • Published 4 years ago

ucfirst11111 v1.0.0

Weekly downloads
1
License
ISC
Repository
-
Last release
4 years ago

安装方式

npm install ucfirst
//npm i ucfirst

导入方式

const xxx = require('ucfirst');

方法使用说明

  • code()

    作用是,把一个字符串的首字母变大写,参数是一个字符串

console.log(xxx.code('abcd')); //Abcd
  • date()

    作用是,把当前的时间变成年-月-日的形式

    conosole.log(xxx.date()); //2020-4-8

开源协议

ISC