1.0.1 • Published 3 years ago
filename-to-url v1.0.1
This package will remove unsafe characters(<>"#%{}|\^~[]‘
) and reserved characters(;/?:@=&
).
Getting Started
npm i --save filename-to-url
import { filenameToUrl } from "filename-to-url";
const legalName = filenameToUrl("统计报告@李四.xls");
console.log(legalName); // => output: 统计报告李四.xls