mirror of https://gitee.com/antv-l7/antv-l7
f7e5376b7d | ||
---|---|---|
.. | ||
node_modules | ||
index.js | ||
license | ||
package.json | ||
readme.md |
readme.md
filenamify-url
Convert a URL to a valid filename
Install
$ npm install --save filenamify-url
Usage
var filenamifyUrl = require('filenamify-url');
filenamifyUrl('http://sindresorhus.com/foo?bar=baz');
//=> sindresorhus.com!foo!bar=baz
filenamifyUrl('http://sindresorhus.com/foo', {replacement: '🐴'});
//=> sindresorhus.com🐴foo
API
See the filenamify
API.
License
MIT © Sindre Sorhus