is-http-url
Version:
Validate URLs for sane values
1 lines • 11.9 kB
JSON
{"_id":"string.prototype.trim","_rev":"4-43f4c8e1adc6f8c46cf982724c22627b","name":"string.prototype.trim","description":"ES5 spec-compliant shim for String.prototype.trim","dist-tags":{"latest":"1.1.2"},"versions":{"1.0.0":{"name":"string.prototype.trim","version":"1.0.0","author":{"name":"Jordan Harband"},"description":"ES5 spec-compliant shim for String.prototype.trim","license":"MIT","main":"index.js","scripts":{"test":"npm run lint && npm run test:shimmed && npm run test:module && npm run security","test:shimmed":"node test/shimmed.js","test:module":"node test/index.js","coverage":"covert test/*.js","coverage-quiet":"covert test/*.js --quiet","lint":"npm run jscs && npm run eslint","eslint":"eslint test/*.js *.js","jscs":"jscs test/*.js *.js","security":"nsp package"},"repository":{"type":"git","url":"git://github.com/es-shims/String.prototype.trim.git"},"keywords":["String.prototype.trim","string","ES5","shim","trim","polyfill"],"dependencies":{"define-properties":"^1.1.1","es-abstract":"^1.2.2","function-bind":"^1.0.2"},"devDependencies":{"tape":"^4.0.3","covert":"^1.1.0","jscs":"^2.0.0","nsp":"^1.0.3","eslint":"^1.1.0","@ljharb/eslint-config":"^1.0.4"},"testling":{"files":"test/index.js","browsers":["iexplore/9.0..latest","firefox/4.0..6.0","firefox/15.0..latest","firefox/nightly","chrome/4.0..10.0","chrome/20.0..latest","chrome/canary","opera/11.6..latest","opera/next","safari/5.0..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2"]},"engines":{"node":">= 0.4"},"gitHead":"1f35ea78ec453936f5eb805aaaaaa1e09f022cd9","bugs":{"url":"https://github.com/es-shims/String.prototype.trim/issues"},"homepage":"https://github.com/es-shims/String.prototype.trim#readme","_id":"string.prototype.trim@1.0.0","_shasum":"c39ebfc44b12047e45abd15b7fc71b5e3ac25ba1","_from":".","_npmVersion":"2.13.3","_nodeVersion":"3.0.0","_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"dist":{"shasum":"c39ebfc44b12047e45abd15b7fc71b5e3ac25ba1","tarball":"https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.0.0.tgz"},"maintainers":[{"name":"ljharb","email":"ljharb@gmail.com"}],"directories":{}},"1.1.0":{"name":"string.prototype.trim","version":"1.1.0","author":{"name":"Jordan Harband"},"description":"ES5 spec-compliant shim for String.prototype.trim","license":"MIT","main":"index.js","scripts":{"test":"npm run lint && es-shim-api --bound && npm run tests-only && npm run security","tests-only":"npm run test:shimmed && npm run test:module","test:shimmed":"node test/shimmed.js","test:module":"node test/index.js","coverage":"covert test/*.js","coverage-quiet":"covert test/*.js --quiet","lint":"npm run jscs && npm run eslint","eslint":"eslint test/*.js *.js","jscs":"jscs test/*.js *.js","security":"nsp package"},"repository":{"type":"git","url":"git://github.com/es-shims/String.prototype.trim.git"},"keywords":["String.prototype.trim","string","ES5","shim","trim","polyfill"],"dependencies":{"define-properties":"^1.1.1","es-abstract":"^1.3.1","function-bind":"^1.0.2"},"devDependencies":{"tape":"^4.2.0","covert":"^1.1.0","jscs":"^2.1.0","nsp":"^1.0.3","eslint":"^1.1.0","semver":"^5.0.1","replace":"^0.3.0","@ljharb/eslint-config":"^1.0.4","@es-shims/api":"^1.0.0"},"testling":{"files":"test/index.js","browsers":["iexplore/9.0..latest","firefox/4.0..6.0","firefox/15.0..latest","firefox/nightly","chrome/4.0..10.0","chrome/20.0..latest","chrome/canary","opera/11.6..latest","opera/next","safari/5.0..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2"]},"engines":{"node":">= 0.4"},"gitHead":"6c64b7a96b42ced81d76f7ca25d32cf9df0670f9","bugs":{"url":"https://github.com/es-shims/String.prototype.trim/issues"},"homepage":"https://github.com/es-shims/String.prototype.trim#readme","_id":"string.prototype.trim@1.1.0","_shasum":"7b519b93662dff3043a7bb0377f0f485cbdd016a","_from":".","_npmVersion":"2.13.3","_nodeVersion":"3.0.0","_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"dist":{"shasum":"7b519b93662dff3043a7bb0377f0f485cbdd016a","tarball":"https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.1.0.tgz"},"maintainers":[{"name":"ljharb","email":"ljharb@gmail.com"}],"directories":{}},"1.1.1":{"name":"string.prototype.trim","version":"1.1.1","author":{"name":"Jordan Harband"},"description":"ES5 spec-compliant shim for String.prototype.trim","license":"MIT","main":"index.js","scripts":{"test":"npm run lint && es-shim-api --bound && npm run tests-only && npm run security","tests-only":"npm run test:shimmed && npm run test:module","test:shimmed":"node test/shimmed.js","test:module":"node test/index.js","coverage":"covert test/*.js","coverage-quiet":"covert test/*.js --quiet","lint":"npm run jscs && npm run eslint","eslint":"eslint test/*.js *.js","jscs":"jscs test/*.js *.js","security":"nsp package"},"repository":{"type":"git","url":"git://github.com/es-shims/String.prototype.trim.git"},"keywords":["String.prototype.trim","string","ES5","shim","trim","polyfill","es-shim API"],"dependencies":{"define-properties":"^1.1.1","es-abstract":"^1.3.1","function-bind":"^1.0.2"},"devDependencies":{"tape":"^4.2.0","covert":"^1.1.0","jscs":"^2.1.0","nsp":"^1.0.3","eslint":"^1.1.0","semver":"^5.0.1","replace":"^0.3.0","@ljharb/eslint-config":"^1.0.4","@es-shims/api":"^1.0.0"},"testling":{"files":"test/index.js","browsers":["iexplore/9.0..latest","firefox/4.0..6.0","firefox/15.0..latest","firefox/nightly","chrome/4.0..10.0","chrome/20.0..latest","chrome/canary","opera/11.6..latest","opera/next","safari/5.0..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2"]},"engines":{"node":">= 0.4"},"gitHead":"cbefafa48e5dffaeac74a46d1390032900fcd8a4","bugs":{"url":"https://github.com/es-shims/String.prototype.trim/issues"},"homepage":"https://github.com/es-shims/String.prototype.trim#readme","_id":"string.prototype.trim@1.1.1","_shasum":"e5b5fdbdcf8a96e038a8d954b740a8c6308e58fa","_from":".","_npmVersion":"2.13.3","_nodeVersion":"3.0.0","_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"dist":{"shasum":"e5b5fdbdcf8a96e038a8d954b740a8c6308e58fa","tarball":"https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.1.1.tgz"},"maintainers":[{"name":"ljharb","email":"ljharb@gmail.com"}],"directories":{}},"1.1.2":{"name":"string.prototype.trim","version":"1.1.2","author":{"name":"Jordan Harband","email":"ljharb@gmail.com","url":"http://ljharb.codes"},"contributors":[{"name":"Jordan Harband","email":"ljharb@gmail.com","url":"http://ljharb.codes"}],"description":"ES5 spec-compliant shim for String.prototype.trim","license":"MIT","main":"index.js","scripts":{"test":"npm run lint && es-shim-api --bound && npm run tests-only && npm run security","tests-only":"npm run test:shimmed && npm run test:module","test:shimmed":"node test/shimmed.js","test:module":"node test/index.js","coverage":"covert test/*.js","coverage-quiet":"covert test/*.js --quiet","lint":"npm run jscs && npm run eslint","eslint":"eslint test/*.js *.js","jscs":"jscs test/*.js *.js","security":"nsp check"},"repository":{"type":"git","url":"git://github.com/es-shims/String.prototype.trim.git"},"keywords":["String.prototype.trim","string","ES5","shim","trim","polyfill","es-shim API"],"dependencies":{"define-properties":"^1.1.2","es-abstract":"^1.5.0","function-bind":"^1.0.2"},"devDependencies":{"tape":"^4.4.0","covert":"^1.1.0","jscs":"^2.9.0","nsp":"^2.2.0","eslint":"^1.10.3","semver":"^5.1.0","replace":"^0.3.0","@ljharb/eslint-config":"^1.6.1","@es-shims/api":"^1.0.0"},"testling":{"files":"test/index.js","browsers":["iexplore/9.0..latest","firefox/4.0..6.0","firefox/15.0..latest","firefox/nightly","chrome/4.0..10.0","chrome/20.0..latest","chrome/canary","opera/11.6..latest","opera/next","safari/5.0..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2"]},"engines":{"node":">= 0.4"},"gitHead":"7894aca30500058496b701919121b895d13c62eb","bugs":{"url":"https://github.com/es-shims/String.prototype.trim/issues"},"homepage":"https://github.com/es-shims/String.prototype.trim#readme","_id":"string.prototype.trim@1.1.2","_shasum":"d04de2c89e137f4d7d206f086b5ed2fae6be8cea","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.5.0","_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"dist":{"shasum":"d04de2c89e137f4d7d206f086b5ed2fae6be8cea","tarball":"https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.1.2.tgz"},"maintainers":[{"name":"ljharb","email":"ljharb@gmail.com"}],"_npmOperationalInternal":{"host":"packages-9-west.internal.npmjs.com","tmp":"tmp/string.prototype.trim-1.1.2.tgz_1454751443709_0.9118233555927873"},"directories":{}}},"readme":"String.prototype.trim <sup>[![Version Badge][npm-version-svg]][package-url]</sup>\n\n[![Build Status][travis-svg]][travis-url]\n[![dependency status][deps-svg]][deps-url]\n[![dev dependency status][dev-deps-svg]][dev-deps-url]\n[![License][license-image]][license-url]\n[![Downloads][downloads-image]][downloads-url]\n\n[![npm badge][npm-badge-png]][package-url]\n\n[![browser support][testling-svg]][testling-url]\n\nAn ES5 spec-compliant `String.prototype.trim` shim. Invoke its \"shim\" method to shim `String.prototype.trim` if it is unavailable.\n\nThis package implements the [es-shim API](https://github.com/es-shims/api) interface. It works in an ES3-supported environment and complies with the [spec](http://www.ecma-international.org/ecma-262/5.1/#sec-15.5.4.20).\n\nMost common usage:\n\n```js\nvar assert = require('assert');\nvar trim = require('string.prototype.trim');\n\nassert(trim(' \\t\\na \\t\\n') === 'a');\n\ntrim.shim(); // will be a no-op if not needed\n\nassert(trim(' \\t\\na \\t\\n') === ' \\t\\na \\t\\n'.trim());\n```\n\n## Engine Bugs\nSome implementations of `String#trim` incorrectly trim zero-width spaces. This shim detects and corrects this behavior.\n\n## Tests\nSimply clone the repo, `npm install`, and run `npm test`\n\n[package-url]: https://npmjs.com/package/string.prototype.trim\n[npm-version-svg]: http://versionbadg.es/es-shims/String.prototype.trim.svg\n[travis-svg]: https://travis-ci.org/es-shims/String.prototype.trim.svg\n[travis-url]: https://travis-ci.org/es-shims/String.prototype.trim\n[deps-svg]: https://david-dm.org/es-shims/String.prototype.trim.svg\n[deps-url]: https://david-dm.org/es-shims/String.prototype.trim\n[dev-deps-svg]: https://david-dm.org/es-shims/String.prototype.trim/dev-status.svg\n[dev-deps-url]: https://david-dm.org/es-shims/String.prototype.trim#info=devDependencies\n[testling-svg]: https://ci.testling.com/es-shims/String.prototype.trim.png\n[testling-url]: https://ci.testling.com/es-shims/String.prototype.trim\n[npm-badge-png]: https://nodei.co/npm/string.prototype.trim.png?downloads=true&stars=true\n[license-image]: http://img.shields.io/npm/l/string.prototype.trim.svg\n[license-url]: LICENSE\n[downloads-image]: http://img.shields.io/npm/dm/string.prototype.trim.svg\n[downloads-url]: http://npm-stat.com/charts.html?package=string.prototype.trim\n","maintainers":[{"name":"ljharb","email":"ljharb@gmail.com"}],"time":{"modified":"2016-02-06T09:37:24.527Z","created":"2015-08-09T06:07:46.418Z","1.0.0":"2015-08-09T06:07:46.418Z","1.1.0":"2015-08-16T08:08:55.784Z","1.1.1":"2015-08-16T20:03:04.222Z","1.1.2":"2016-02-06T09:37:24.527Z"},"homepage":"https://github.com/es-shims/String.prototype.trim#readme","keywords":["String.prototype.trim","string","ES5","shim","trim","polyfill","es-shim API"],"repository":{"type":"git","url":"git://github.com/es-shims/String.prototype.trim.git"},"author":{"name":"Jordan Harband","email":"ljharb@gmail.com","url":"http://ljharb.codes"},"bugs":{"url":"https://github.com/es-shims/String.prototype.trim/issues"},"license":"MIT","readmeFilename":"README.md","contributors":[{"name":"Jordan Harband","email":"ljharb@gmail.com","url":"http://ljharb.codes"}],"_attachments":{},"_etag":"\"CSNLRV6K3UUDF3OA4YWLHSLDS\""}