url-string-api
v1.3.1
Published
A parsing url and file purpose tool
Downloads
7
Maintainers
Readme
url-string-api
A parsing url and file purpose tool
Install
$ npm install -g url-string-api
Usage
var stringTOOL = require('url-string-api')
stringTOOL.validateEmail("[email protected]") //return ture
stringTOOL.urlFileName("/path/to/file.jpg") //return file.jpg
stringTOOL.urlGetPath("/path/to/file.jpg") // return /path/to
stringTOOL.removeString("abcdefg","cd") // return abefg
stringTOOL.removeSpace("a b c") // return abc
stringTOOL.removeFileExtension("file.jpg") //return file
stringTOOL.getFileExtension("file.jpg") //return jpg
stringTOOL.stringToArray("['abc','123']") return ['abc','123']
stringTOOL.timestamp() return 2334234324234
stringTOOL.stringFilter("abc._@^&#%$&") // return abc._
stringTOOL.onlyCharNum("abc@^&#%$&") //return abc
stringTOOL.valiFileName("/path/to/file.jpg") //return /path/to/14234324.jpg
stringTOOL.isHTTPS("http://abc.jpg") //return false