Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

ends-with-string

bconnorwhite12.3kMIT2.0.0TypeScript support: included

Check if a string or buffer ends with a given string

string, ends, with, buffer, endsWith, char, end, check, last

readme

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

changelog

2.0.0 (2023-01-10)

Bug Fixes

1.0.1 (2020-10-03)

1.0.0 (2020-10-03)