ends-with-string
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

ends-with-string

NPM TypeScript Coverage Status

Check if a string or buffer ends with a given string.

If I should maintain this repo, please ⭐️ GitHub stars

DM me on Twitter if you have questions or suggestions. Twitter


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;

Dependenciesdependencies


Dev Dependencies

  • autorepo: Autorepo abstracts away your dev dependencies, providing a single command to run all of your scripts.

License license

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.0
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.0
    3
  • 1.0.1
    511
  • 1.0.0
    2

Package Sidebar

Install

npm i ends-with-string

Weekly Downloads

516

Version

2.0.0

License

MIT

Unpacked Size

4.54 kB

Total Files

8

Last publish

Collaborators

  • bconnorwhite