ends-with-string
v2.0.0
Published
Check if a string or buffer ends with a given string
Downloads
9,427
Maintainers
Readme
If I should maintain this repo, please ⭐️
DM me on Twitter if you have questions or suggestions.
Installation
yarn add ends-with-string
npm install ends-with-string
pnpm add ends-with-string
API
import endsWith from "ends-with-string";
function endsWith(input: string | Buffer, string: string): boolean;
- char-to-string: Convert a character or character code to string
- autorepo: Autorepo abstracts away your dev dependencies, providing a single command to run all of your scripts.