New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

capture-filename

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

capture-filename

我们在开发过程中,经常会遇到附件读取、下载、查看等操作,但是有些系统的接口需要区分是那种文件的类型才能下载、查看等操作,这个时候我们就要区分附件的类型,看它的后缀名是多少就能处理请求对应的接口,但是在处理过程中,常常会遇到一些截取兼容性的问题,比如a.png,可以直接用split('.')就解决,但是这种1.a.png,a.aa.jpg, aa.bb.cc.zip这种就不能只用split()去处理了,处理的方式很多,看自己的处理方式而已

unpublished
latest
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
The README file is missing

Keywords

文件名截取,文件拓展名截取

FAQs

Package last updated on 04 Mar 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts