【文件属性】:
文件名称:fullname:获取当前用户的全名
文件大小:6KB
文件格式:ZIP
更新时间:2021-05-26 07:56:11
JavaScript
全名
获取当前用户的全名
安装
$ npm install fullname
在macOS,Linux和Windows上进行了测试。
用法
const fullName = require ( 'fullname' ) ;
( async ( ) => {
console . log ( await fullName ( ) ) ;
//=> 'Sindre Sorhus'
} ) ( ) ;
在极少数情况下找不到名称的情况下,您可以使用 。
有关的
此模块的CLI
此模块的本地版本
获取当前用户的用户名
执照
麻省理工学院:copyright:
【文件预览】:
fullname-main
----index.js(2KB)
----test.js(8KB)
----package.json(843B)
----index.test-d.ts(118B)
----readme.md(748B)
----.github()
--------funding.yml(91B)
--------workflows()
----license(1KB)
----index.d.ts(257B)
----.gitignore(23B)
----.npmrc(19B)
----.editorconfig(175B)
----.gitattributes(19B)