Check if a string or buffer ends with a given string
npm install ends-with-stringCheck if a string or buffer ends with a given string.
_If I should maintain this repo, please ⭐️_
_DM me on Twitter if you have questions or suggestions._
---
``sh`
yarn add ends-with-string
`sh`
npm install ends-with-string
`sh`
pnpm add ends-with-string
`ts
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.