2.0.2 • Published 8 years ago

string-concluding v2.0.2

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

string-concluding

Extract part of a string including last occurrence of substring.

npm i --save string-concluding

Usage

const concluding = require('string-concluding')

const a = '/Applications/Terminal.app/Resources/com.apple.terminal/bin'
const path = concluding('.app/', a).slice(0, -1)
console.log(path)
// '/Applications/Terminal.app'

const b = 'poof'
const poof = concluding('boom', b)
console.log(poof)
// 'poof'
2.0.2

8 years ago

2.0.1

8 years ago

2.0.0

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago