filename-to-url

1.0.1 • Public • Published

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

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i filename-to-url

Weekly Downloads

4

Version

1.0.1

License

MIT

Unpacked Size

11.5 kB

Total Files

12

Last publish

Collaborators

  • rmlzy