0.0.3 • Published 8 years ago

split-last v0.0.3

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

split-last

Split the last separator of string.

Install

$ npm install split-last

Example

require("split-last");

console.log("192.168.0.1".splitLast("."));
//=> [ '192.168.0', '1' ]

console.log("http://www.abc.com/example/demo/web.html".splitLast("/"));
//=> [ 'http://www.abc.com/example/demo', 'web.html' ]

License

This code is licensed under the MIT License.

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago