suffix-from
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

suffixFrom

Get suffix from string - by splitter.

Usage: suffixFrom(subject: string, splitter: string | RegExp): string

import { suffixFrom } from 'suffix-from'

suffixFrom(`a/b/cd `, `/`)
// Output: 'cd'

This module exported from utilizes project.

Package Sidebar

Install

npm i suffix-from

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

2.64 kB

Total Files

5

Last publish

Collaborators

  • natqe3