{"_id":"match-at","_rev":"8-90acad54288a8226736903e6d270dab0","name":"match-at","description":"Relocatable regular expressions.","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"match-at","version":"0.1.0","description":"Relocatable regular expressions.","repository":{"type":"git","url":"https://github.com/spicyj/match-at"},"main":"lib/matchAt.js","files":["lib/"],"devDependencies":{"babel":"^4.7.16","jest-cli":"^0.4.0","react-tools":"^0.13.1"},"jest":{"scriptPreprocessor":"<rootDir>/jestSupport/preprocessor.js","unmockedModulePathPatterns":[""]},"scripts":{"prepublish":"babel -d lib/ src/","test":"jest"},"gitHead":"4197daff69720734c72ba3321ed68a41c0527fb2","bugs":{"url":"https://github.com/spicyj/match-at/issues"},"homepage":"https://github.com/spicyj/match-at","_id":"match-at@0.1.0","_shasum":"f561e7709ff9a105b85cc62c6b8ee7c15bf24f31","_from":".","_npmVersion":"2.2.0","_nodeVersion":"0.10.35","_npmUser":{"name":"spicyj","email":"ben@benalpert.com"},"maintainers":[{"name":"spicyj","email":"ben@benalpert.com"}],"dist":{"shasum":"f561e7709ff9a105b85cc62c6b8ee7c15bf24f31","tarball":"https://registry.npmjs.org/match-at/-/match-at-0.1.0.tgz","integrity":"sha512-4b3LJnklh8ofvw2EyZUz0kqmF22Aghad6I6fYO1nPFTlh3ZfUlbvObY5OrBtwkAKeQ7xmKW0FO1JDbw4HvSZFg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFMq5yQHkoVW2J7vlQtQIFxw775teP5kx2u4otXM5ZRRAiAoUv9CclwjClnDJ2tzTADCrelEsguUCdK6Kwn7/LFkDg=="}]}},"0.1.1":{"name":"match-at","version":"0.1.1","description":"Relocatable regular expressions.","repository":{"type":"git","url":"git+https://github.com/sophiebits/match-at.git"},"main":"lib/matchAt.js","files":["lib/"],"devDependencies":{"babel-cli":"^6.26.0","babel-jest":"^21.0.0","babel-plugin-syntax-flow":"^6.18.0","babel-plugin-transform-flow-strip-types":"^6.22.0","jest":"^21.0.1"},"scripts":{"prepublish":"babel --no-babelrc --plugins syntax-flow -d lib/ src/ && mv lib/matchAt.js lib/matchAt.js.flow && babel -d lib/ src/","test":"jest"},"babel":{"plugins":["transform-flow-strip-types"]},"gitHead":"4921ff66e58f7acd2d4f856504c7a3657b69ec6f","bugs":{"url":"https://github.com/sophiebits/match-at/issues"},"homepage":"https://github.com/sophiebits/match-at#readme","_id":"match-at@0.1.1","_npmVersion":"5.3.0","_nodeVersion":"8.2.1","_npmUser":{"name":"ariabuckles","email":"aria@classjourney.org"},"dist":{"integrity":"sha512-h4Yd392z9mST+dzc+yjuybOGFNOZjmXIPKWjxBd1Bb23r4SmDOsk2NYCU2BMUBGbSpZqwVsZYNq26QS3xfaT3Q==","shasum":"25d040d291777704d5e6556bbb79230ec2de0540","tarball":"https://registry.npmjs.org/match-at/-/match-at-0.1.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCL1m56n9YUBCtTDAAC0zMKXjdfl47VShrDNdyJQ5UungIgd5Yi0ckGFD1+BrksTCYk9+MGGvz8a5hvh01VBu7dxYA="}]},"maintainers":[{"email":"aria@classjourney.org","name":"ariabuckles"},{"email":"npm@sophiebits.com","name":"spicyj"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/match-at-0.1.1.tgz_1504663382647_0.7046560752205551"}}},"readme":"# match-at [![Build Status](https://travis-ci.org/spicyj/match-at.svg?branch=master)](https://travis-ci.org/spicyj/match-at)\n\n## Introduction\n\nLike `String.prototype.match` if it only checked the regex at the given index instead of searching the entire string.\n\n```js\nmatchAt(/world/, 'hello world', 6);  // ['world']\nmatchAt(/world/, 'hello world', 0);  // null\n```\n\nAlmost like `'hello world'.slice(i).match(/^world/)` except the resulting match object's `.index` property corresponds to the original string, and it doesn't actually slice the string. Most engines optimize taking a substring so this probably isn't particularly valuable in practice, but it was an entertaining exercise and could be useful if you reminisce about these semantics.\n\n## License\n\nMIT.\n","maintainers":[{"email":"npm2@sophiebits.com","name":"sophiebits"},{"email":"aria@classjourney.org","name":"ariabuckles"}],"time":{"modified":"2022-06-19T16:29:00.895Z","created":"2015-03-27T03:06:00.427Z","0.1.0":"2015-03-27T03:06:00.427Z","0.1.1":"2017-09-06T02:03:02.727Z"},"homepage":"https://github.com/sophiebits/match-at#readme","repository":{"type":"git","url":"git+https://github.com/sophiebits/match-at.git"},"bugs":{"url":"https://github.com/sophiebits/match-at/issues"},"readmeFilename":"README.md"}