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