{"_id":"ends-with","_rev":"26287","name":"ends-with","description":"Returns `true` if the given `string` or `array` ends with `suffix` using strict equality for comparisons.","dist-tags":{"latest":"1.0.1"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2021-06-03T10:02:37.000Z","created":"2014-10-06T09:27:05.394Z","1.0.1":"2017-04-14T23:48:58.744Z","1.0.0":"2017-04-14T23:34:53.148Z","0.2.0":"2014-10-06T17:22:15.291Z","0.1.0":"2014-10-06T09:27:05.394Z"},"users":{},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/ends-with.git"},"versions":{"1.0.1":{"name":"ends-with","description":"Returns `true` if the given `string` or `array` ends with `suffix` using strict equality for comparisons.","version":"1.0.1","homepage":"https://github.com/jonschlinkert/ends-with","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"contributors":[{"name":"Charlike Mike Reagent","url":"https://i.am.charlike.online"},{"name":"Jon Schlinkert","email":"jon.schlinkert@sellside.com","url":"http://twitter.com/jonschlinkert"}],"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/ends-with.git"},"bugs":{"url":"https://github.com/jonschlinkert/ends-with/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"benchmarked":"^1.0.0","gulp-format-md":"^0.1.12","mocha":"^3.2.0"},"keywords":["array","end","ends","javascript","js","string","suffix","util","utility","utils","with"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["path-ends-with"]},"lint":{"reflinks":true}},"gitHead":"d15e28a17ae3f59a501ced36ea94a0991820b72c","_id":"ends-with@1.0.1","_shasum":"5265697706c6ac5150d6649a89ec2d019c25af90","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.7.3","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"5265697706c6ac5150d6649a89ec2d019c25af90","size":2466,"noattachment":false,"key":"/ends-with/-/ends-with-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/ends-with/download/ends-with-1.0.1.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/ends-with-1.0.1.tgz_1492213736873_0.12228919891640544"},"directories":{},"publish_time":1492213738744,"_hasShrinkwrap":false,"_cnpm_publish_time":1492213738744},"1.0.0":{"name":"ends-with","description":"Returns `true` if the given `string` or `array` ends with `suffix` using strict equality for comparisons.","version":"1.0.0","homepage":"https://github.com/jonschlinkert/ends-with","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"contributors":[{"name":"Charlike Mike Reagent","url":"https://i.am.charlike.online"},{"name":"Jon Schlinkert","email":"jon.schlinkert@sellside.com","url":"http://twitter.com/jonschlinkert"}],"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/ends-with.git"},"bugs":{"url":"https://github.com/jonschlinkert/ends-with/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"benchmarked":"^1.0.0","gulp-format-md":"^0.1.12","should":"^11.2.1"},"keywords":["array","end","ends","javascript","js","string","suffix","util","utility","utils","with"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["path-ends-with"]},"lint":{"reflinks":true}},"gitHead":"4f13015a13ea231bba2e4f24741502a32383a7eb","_id":"ends-with@1.0.0","_shasum":"e6c73a8f1ef82d54b8046549f289b566b571e4fc","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.7.3","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"e6c73a8f1ef82d54b8046549f289b566b571e4fc","size":2507,"noattachment":false,"key":"/ends-with/-/ends-with-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ends-with/download/ends-with-1.0.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/ends-with-1.0.0.tgz_1492212891442_0.382403333671391"},"directories":{},"publish_time":1492212893148,"_hasShrinkwrap":false,"_cnpm_publish_time":1492212893148},"0.2.0":{"name":"ends-with","description":"Returns `true` if the given `string` or `array` ends with `suffix` using strict equality for comparisons.","version":"0.2.0","homepage":"https://github.com/jonschlinkert/ends-with","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/ends-with.git"},"bugs":{"url":"https://github.com/jonschlinkert/ends-with/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/ends-with/blob/master/LICENSE-MIT"}],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"mocha":"*","should":"^4.0.4","verb":">= 0.2.6","ansi":"^0.3.0","benchmark":"^1.0.0","verb-tag-jscomments":">= 0.2.0"},"keywords":["array","end","ends","javascript","js","string","suffix","util","utility","utils"],"dependencies":{},"_id":"ends-with@0.2.0","_shasum":"2f9da98d57a50cfda4571ce4339000500f4e6b8a","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"2f9da98d57a50cfda4571ce4339000500f4e6b8a","size":6087,"noattachment":false,"key":"/ends-with/-/ends-with-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ends-with/download/ends-with-0.2.0.tgz"},"directories":{},"publish_time":1412616135291,"_cnpm_publish_time":1412616135291,"_hasShrinkwrap":false},"0.1.0":{"name":"ends-with","description":"Returns `true` if the given `string` ends with `suffix`.","version":"0.1.0","homepage":"https://github.com/jonschlinkert/ends-with","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/ends-with.git"},"bugs":{"url":"https://github.com/jonschlinkert/ends-with/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/ends-with/blob/master/LICENSE-MIT"}],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"mocha":"*","should":"^4.0.4","verb":">= 0.2.6","ansi":"^0.3.0","benchmark":"^1.0.0","verb-tag-jscomments":">= 0.2.0"},"keywords":[],"dependencies":{},"_id":"ends-with@0.1.0","_shasum":"e091aa84adfed40c5a6504a5daac3bb5a81dd801","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"e091aa84adfed40c5a6504a5daac3bb5a81dd801","size":5840,"noattachment":false,"key":"/ends-with/-/ends-with-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ends-with/download/ends-with-0.1.0.tgz"},"directories":{},"publish_time":1412587625394,"_cnpm_publish_time":1412587625394,"_hasShrinkwrap":false}},"readme":"# ends-with [![NPM version](https://img.shields.io/npm/v/ends-with.svg?style=flat)](https://www.npmjs.com/package/ends-with) [![NPM monthly downloads](https://img.shields.io/npm/dm/ends-with.svg?style=flat)](https://npmjs.org/package/ends-with) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/ends-with.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/ends-with)\n\n> Returns `true` if the given `string` or `array` ends with `suffix` using strict equality for comparisons.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save ends-with\n```\n\nInstall with [yarn](https://yarnpkg.com):\n\n```sh\n$ yarn add ends-with\n```\n\n## Usage\n\n```js\nvar endsWith = require('ends-with');\n\nendsWith('abc', 'c');\n//=> true\n\nendsWith(['a', 'b', 'c'], 'c');\n//=> true\n\nendsWith(['abc', 'abc', 'abc'], 'c');\n//=> false\n\nendsWith(['abc', 'abc', 'abc'], 'c');\n//=> false\n\nendsWith(['a', 'b', 42], 42)\n//=> true\n\nendsWith(['a', 'b', 42], '42')\n//=> false\n```\n\n## About\n\n### Related projects\n\n[path-ends-with](https://www.npmjs.com/package/path-ends-with): Return `true` if a file path ends with the given string/suffix. | [homepage](https://github.com/jonschlinkert/path-ends-with \"Return `true` if a file path ends with the given string/suffix.\")\n\n### Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n### Contributors\n\n| **Commits** | **Contributor** | \n| --- | --- |\n| 4 | [jonschlinkert](https://github.com/jonschlinkert) |\n| 2 | [tunnckoCore](https://github.com/tunnckoCore) |\n\n### Building docs\n\n_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_\n\nTo generate the readme, run the following command:\n\n```sh\n$ npm install -g verbose/verb#dev verb-generate-readme && verb\n```\n\n### Running tests\n\nRunning and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:\n\n```sh\n$ npm install && npm test\n```\n\n### Author\n\n**Jon Schlinkert**\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)\n\n### License\n\nCopyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT License](LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.5.0, on April 14, 2017._","_attachments":{},"homepage":"https://github.com/jonschlinkert/ends-with","bugs":{"url":"https://github.com/jonschlinkert/ends-with/issues"},"license":"MIT"}