【文件属性】:
文件名称:file-string-tools:获取不带文件扩展名的文件名
文件大小:20KB
文件格式:ZIP
更新时间:2021-05-27 03:24:51
javascript tool file JavaScript
文件字符串工具npm软件包
用法
首先,安装file-string-tools ,在终端中输入:
$ npm install file-string-tools
例子
const FileTOOLS = require ( 'file-string-tools' ) ;
const tool = new FileTOOLS ( ) ;
console . log ( tools . ext ( "hello.txt" ) ) // .txt
console . log ( tools . name ( "hello.txt" ) ) // hello
【文件预览】:
file-string-tools-main
----index.test.js(121B)
----.npmignore(13B)
----README.md(455B)
----Makefile(41B)
----.gitignore(13B)
----index.js(371B)
----node_modules()
--------.bin()
--------atob()
----package-lock.json(358B)
----package.json(417B)