{"_id":"cf-pony","_rev":"245-0a1baa4b941eade0a4c3a7650d506995","name":"cf-pony","dist-tags":{"latest":"1.3.0"},"versions":{"1.0.0":{"name":"cf-pony","version":"1.0.0","author":{"name":"James Kyle","email":"jkyle@cloudflare.com"},"license":"BSD-3-Clause","_id":"cf-pony@1.0.0","maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}],"dist":{"shasum":"bf7d14dfaee3651ecf15bd90e3e293102cbba1d7","tarball":"https://registry.npmjs.org/cf-pony/-/cf-pony-1.0.0.tgz","integrity":"sha512-pm1LlLnGXFpMvoXBjGYDQxu8qxGgNQ573Gv4EW15jgHUcQmUnlsLLf8D5lZ8khgSP6sjmrOdSRFz6riVcDDyjA==","signatures":[{"sig":"MEUCIQCGm+5rtAlOAb9ncgDT6x9RRc5yXjcP5YaTc6uirJ+kxAIgems4pmfF8BaI6tcnlWXVV4sSFnrbjqaNLC7/XmGplLU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib/index.js","_from":".","_shasum":"bf7d14dfaee3651ecf15bd90e3e293102cbba1d7","scripts":{},"_npmUser":{"name":"thejameskyle","email":"me@thejameskyle.com"},"deprecated":"This package is no longer used by any cf-ui packages or cloudflare","_npmVersion":"2.14.9","description":"CloudFlare ponyfills and utility methods","directories":{},"_nodeVersion":"0.12.9","dependencies":{"object-is":"^1.0.1","object-assign":"^4.0.1","array-includes":"^3.0.2","string-includes":"^1.0.0","array.prototype.find":"^2.0.0","string.prototype.trim":"^1.1.2","string.prototype.endswith":"^0.2.0","string.prototype.trimleft":"^2.0.0","string.prototype.trimright":"^2.0.0","string.prototype.startswith":"^0.2.0"},"publishConfig":{"registry":"http://registry.npmjs.org/"},"devDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/cf-pony-1.0.0.tgz_1457737614420_0.11470421543344855","host":"packages-13-west.internal.npmjs.com"}},"1.1.0":{"name":"cf-pony","version":"1.1.0","author":{"name":"James Kyle","email":"jkyle@cloudflare.com"},"license":"BSD-3-Clause","_id":"cf-pony@1.1.0","maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}],"dist":{"shasum":"185a14e3886e3f90f280083e0012f297b1c68bf5","tarball":"https://registry.npmjs.org/cf-pony/-/cf-pony-1.1.0.tgz","integrity":"sha512-5oU85v9hp9pk5YzX4gVEHIh/VApPUxrcQ3dp5u6/W2P/dRIqvHur2a1zg5LuQjadEZLGhPBMHr/hiNkCrlbQBg==","signatures":[{"sig":"MEUCIQCDtfUdHuVbb9iBaLDPtSsH3qeHxpaHoIP8pH45NR1XIAIgKqeLW+S95NA8XSSnNmfOhHPIYJiF1Sze6CIZW0B98T0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib/index.js","_from":".","_shasum":"185a14e3886e3f90f280083e0012f297b1c68bf5","scripts":{},"_npmUser":{"name":"thejameskyle","email":"me@thejameskyle.com"},"deprecated":"This package is no longer used by any cf-ui packages or cloudflare","_npmVersion":"2.14.9","description":"CloudFlare ponyfills and utility methods","directories":{},"_nodeVersion":"0.12.9","dependencies":{"raf":"^3.2.0","object-is":"^1.0.1","setimmediate":"^1.0.4","object-assign":"^4.0.1","array-includes":"^3.0.2","string-includes":"^1.0.0","array.prototype.find":"^2.0.0","string.prototype.trim":"^1.1.2","string.prototype.endswith":"^0.2.0","string.prototype.trimleft":"^2.0.0","string.prototype.trimright":"^2.0.0","string.prototype.startswith":"^0.2.0"},"publishConfig":{"registry":"http://registry.npmjs.org/"},"devDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/cf-pony-1.1.0.tgz_1463440007359_0.3417530660517514","host":"packages-12-west.internal.npmjs.com"}},"1.2.0":{"name":"cf-pony","version":"1.2.0","author":{"name":"James Kyle","email":"jkyle@cloudflare.com"},"license":"BSD-3-Clause","_id":"cf-pony@1.2.0","maintainers":[{"name":"hturan","email":"harley@hturan.com"},{"name":"jculvey","email":"jculveyhouse@gmail.com"},{"name":"jwineman","email":"john.wineman@gmail.com"},{"name":"koddsson","email":"koddsson@gmail.com"},{"name":"marksteyn","email":"mark@cloudflare.com"},{"name":"miksu","email":"vojtech@miksu.cz"},{"name":"nkcmr","email":"nick@comer.io"},{"name":"terinjokes","email":"terinjokes@gmail.com"},{"name":"thellimist","email":"mufuyil@gmail.com"},{"name":"toekneestuck","email":"toekneestuck@gmail.com"},{"name":"wyuenho","email":"wyuenho@gmail.com"}],"dist":{"shasum":"201bb5096a5730cdb34bf9aec421352643d8b066","tarball":"https://registry.npmjs.org/cf-pony/-/cf-pony-1.2.0.tgz","integrity":"sha512-7z63DwiOroHks0TMU+/5fwnBYzkmHb6UZJExDqokyHrr7/hbu5i3uboIbPWJbPtveesbPA79idKeSECTGayejQ==","signatures":[{"sig":"MEUCIACzMnAZNKOAO9IKdXzsLPCFbbp4ugzX7uP2K8TCsaowAiEAspY5qWlvgWb0HrgFfwD8XkPeHp+HiwgSqJWesXkjyt8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib/index.js","_from":".","module":"es/index.js","_shasum":"201bb5096a5730cdb34bf9aec421352643d8b066","scripts":{},"_npmUser":{"name":"miksu","email":"vojtech@miksu.cz"},"deprecated":"This package is no longer used by any cf-ui packages or cloudflare","_npmVersion":"4.1.2","description":"Cloudflare ponyfills and utility methods","directories":{},"jsnext:main":"es/index.js","_nodeVersion":"7.7.3","dependencies":{"raf":"^3.2.0","object-is":"^1.0.1","setimmediate":"^1.0.4","object-assign":"^4.0.1","array-includes":"^3.0.2","string-includes":"^1.0.0","array.prototype.find":"^2.0.0","string.prototype.trim":"^1.1.2","string.prototype.endswith":"^0.2.0","string.prototype.trimleft":"^2.0.0","string.prototype.trimright":"^2.0.0","string.prototype.startswith":"^0.2.0"},"publishConfig":{"registry":"http://registry.npmjs.org/"},"_npmOperationalInternal":{"tmp":"tmp/cf-pony-1.2.0.tgz_1489990226240_0.8327409473713487","host":"packages-18-east.internal.npmjs.com"}},"1.3.0":{"name":"cf-pony","version":"1.3.0","author":{"name":"James Kyle","email":"jkyle@cloudflare.com"},"license":"BSD-3-Clause","_id":"cf-pony@1.3.0","maintainers":[{"name":"hturan","email":"harley@hturan.com"},{"name":"jculvey","email":"jculveyhouse@gmail.com"},{"name":"jwineman","email":"john.wineman@gmail.com"},{"name":"koddsson","email":"koddsson@gmail.com"},{"name":"marksteyn","email":"mark@cloudflare.com"},{"name":"miksu","email":"vojtech@miksu.cz"},{"name":"nkcmr","email":"nick@comer.io"},{"name":"terinjokes","email":"terinjokes@gmail.com"},{"name":"thellimist","email":"mufuyil@gmail.com"},{"name":"toekneestuck","email":"toekneestuck@gmail.com"},{"name":"wyuenho","email":"wyuenho@gmail.com"}],"dist":{"shasum":"ba1dfa13bd5026c55dadc368a88e2e2cf9878520","tarball":"https://registry.npmjs.org/cf-pony/-/cf-pony-1.3.0.tgz","integrity":"sha512-jgmwJJqdanr6qsK+zw/cLQc6mzuPTF3fDPnVJaKgGBcChZJZkyp9n0IMT7EyvTnu8f7ql/OH0hfFccKnOIovPA==","signatures":[{"sig":"MEQCIAiCCL3/CAQVonhuujOrzUEnr1A9jipoafe/NMDkqfEuAiB7cHYxabc+NhqOd2t5KVdKD1GSsIfxpKsbiHlYDK7dag==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib/index.js","_from":".","module":"es/index.js","_shasum":"ba1dfa13bd5026c55dadc368a88e2e2cf9878520","scripts":{},"_npmUser":{"name":"miksu","email":"vojtech@miksu.cz"},"deprecated":"This package is no longer used by any cf-ui packages or cloudflare","_npmVersion":"4.1.2","description":"Cloudflare ponyfills and utility methods","directories":{},"jsnext:main":"es/index.js","_nodeVersion":"7.7.3","dependencies":{"raf":"^3.2.0","object-is":"^1.0.1","setimmediate":"^1.0.4","object-assign":"^4.0.1","array-includes":"^3.0.2","string-includes":"^1.0.0","array.prototype.find":"^2.0.0","string.prototype.trim":"^1.1.2","string.prototype.endswith":"^0.2.0","string.prototype.trimleft":"^2.0.0","string.prototype.trimright":"^2.0.0","string.prototype.startswith":"^0.2.0"},"publishConfig":{"registry":"http://registry.npmjs.org/"},"_npmOperationalInternal":{"tmp":"tmp/cf-pony-1.3.0.tgz_1490037047099_0.4155407212674618","host":"packages-18-east.internal.npmjs.com"}}},"time":{"created":"2016-03-11T23:06:54.982Z","modified":"2026-09-03T14:30:15.705Z","1.0.0":"2016-03-11T23:06:54.982Z","1.1.0":"2016-05-16T23:06:49.626Z","1.2.0":"2017-03-20T06:10:28.121Z","1.3.0":"2017-03-20T19:10:49.016Z"},"author":{"name":"James Kyle","email":"jkyle@cloudflare.com"},"license":"BSD-3-Clause","description":"Cloudflare ponyfills and utility methods","maintainers":[{"email":"npm-readonly@cloudflare.com","name":"cf-ci-write"},{"email":"service-account@cloudflare-ui.com","name":"dash_service_account"},{"email":"workers-devprod@cloudflare.com","name":"wrangler-publisher"},{"email":"ui-platform-production@cloudflare.com","name":"cf-npm-publish"}],"readme":"# cf-pony\n\n![Big Horse](http://i.imgur.com/1d2bwkn.png)\n\n> CloudFlare [ponyfills](https://ponyfoo.com/articles/polyfills-or-ponyfills)\n\nWe are wrapping other modules so that we can deprecate them in the future with\n`console.warn` warnings. We can also swap out implementations easily.\n\n## Installation\n\n```sh\n$ npm install cf-pony\n```\n\n## Usage\n\n#### `Array.isArray`\n\nUse the native method.\n\n```js\nArray.isArray(arr);\n```\n\n#### `Array.prototype.every`\n\nUse the native method.\n\n```js\narr.every(function() {\n  // ...\n});\n```\n\n#### `Array.prototype.filter`\n\nUse the native method.\n\n```js\narr.filter(function() {\n  // ...\n});\n```\n\n#### `Array.prototype.find`\n\nUse the native method.\n\n```js\narr.find(function() {\n  // ...\n});\n```\n\n#### `Array.prototype.forEach`\n\nUse the native method.\n\n```js\narr.forEach(function() {\n  // ...\n});\n```\n\n#### `Array.prototype.includes` => `cf.arrayIncludes`\n\nUse the ponyfill from this module.\n\n```js\nvar cf = require('cf-pony');\ncf.arrayIncludes(arr, 'item');\n```\n\n#### `Array.prototype.map`\n\nUse the native method.\n\n```js\narr.map(function() {\n  // ...\n});\n```\n\n#### `Array.prototype.reduce`\n\nUse the native method.\n\n```js\narr.reduce(function() {\n  // ...\n});\n```\n\n#### `Array.prototype.some`\n\nUse the native method.\n\n```js\narr.some(function() {\n  // ...\n});\n```\n\n#### `Object.assign` => `cf.objectAssign`\n\nUse the ponyfill from this module.\n\n```js\nvar cf = require('cf-pony');\ncf.objectAssign(obj, obj2);\n```\n\n#### `Object.create`\n\nUse the native method.\n\n```js\nObject.create(obj);\n```\n\n#### `Object.is` => `cf.objectIs`\n\nUse the ponyfill from this module.\n\n```js\nvar cf = require('cf-pony');\ncf.objectIs(obj, val);\n```\n\n#### `Object.keys`\n\nUse the native method.\n\n```js\nObject.keys(obj);\n```\n\n#### `Object.prototype.hasOwnProperty`\n\nUse the native method.\n\n```js\nobj.hasOwnProperty('prop');\n```\n\n#### `String.prototype.endsWith` => `cf.stringEndsWith`\n\nUse the ponyfill from this module.\n\n```js\nvar cf = require('cf-pony');\ncf.stringEndsWith(str, 'string');\n```\n\n#### `String.prototype.includes` => `cf.stringIncludes`\n\nUse the ponyfill from this module.\n\n```js\nvar cf = require('cf-pony');\ncf.stringIncludes(str, 'string');\n```\n\n#### `String.prototype.startsWith` => `cf.stringStartsWith`\n\nUse the ponyfill from this module.\n\n```js\nvar cf = require('cf-pony');\ncf.stringStartsWith(str, 'string');\n```\n\n#### `String.prototype.trim` => `cf.stringTrim`\n\nUse the ponyfill from this module.\n\n```js\nvar cf = require('cf-pony');\ncf.stringTrim(str);\n```\n\n#### `String.prototype.trimLeft` => `cf.stringTrimLeft`\n\nUse the ponyfill from this module.\n\n```js\nvar cf = require('cf-pony');\ncf.stringTrimLeft(str);\n```\n\n#### `String.prototype.trimRight` => `cf.stringTrimRight`\n\nUse the ponyfill from this module.\n\n```js\nvar cf = require('cf-pony');\ncf.stringTrimRight(str);\n```\n","readmeFilename":"README.md"}