get-mode:获取文件模式

时间:2024-06-04 04:49:32
【文件属性】:

文件名称:get-mode:获取文件模式

文件大小:23KB

文件格式:ZIP

更新时间:2024-06-04 04:49:32

nodejs javascript async filesystem promise

获取模式 一个模块来获取文件模式 const getMode = require ( 'get-mode' ) ; ( async ( ) => { const mode = getMode ( 'index.js' ) ; //=> 33188 mode . toString ( 8 ) ; //=> '100644' } ) ( ) ; 安装 。 npm install get-mode 原料药 const getMode = require ( 'get-mode' ) ; getMode( path [, option ]) path : string Buffer URL (文件,目录或符号链接路径) 选项: Object 返回值: Promise option.followSymlinks 类型: boolean 默认值: false


【文件预览】:
get-mode-master
----.gitignore(34B)
----package.json(769B)
----package-lock.json(92KB)
----.travis.yml(139B)
----LICENSE(751B)
----index.js(2KB)
----test.js(3KB)
----README.md(1KB)
----.gitattributes(12B)
----.editorconfig(219B)

网友评论