{"_id":"@benoitzohar/replx","_rev":"5-bd4e69d7322b845053c53a105713b1fa","name":"@benoitzohar/replx","dist-tags":{"latest":"0.3.1"},"versions":{"0.0.1":{"name":"@benoitzohar/replx","version":"0.0.1","description":"REPL tool on steroids","main":"index.js","scripts":{"test":"jest"},"repository":{"type":"git","url":"git+https://github.com/benoitzohar/replx.git"},"keywords":["repl","replx","cli","node","js","eval","read"],"author":{"name":"Benoit Zohar"},"license":"ISC","bugs":{"url":"https://github.com/benoitzohar/replx/issues"},"homepage":"https://github.com/benoitzohar/replx","devDependencies":{"jest":"24.8.0"},"gitHead":"c27762ed34f370262f154de048423298a4c8d54d","_id":"@benoitzohar/replx@0.0.1","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"benoitzohar","email":"benoit.zohar@gmail.com"},"dist":{"integrity":"sha512-kPTkLKyrT2m27cAcvFFpPQbibRBPdbGN8P8uh+ar+fNaPgb+fUJPveR2uwwAjLzMOieU3dzBPPGo69cpzowpEA==","shasum":"4f6bd3d74302d063c5985d4963c4c7d2c4c885b7","tarball":"https://registry.npmjs.org/@benoitzohar/replx/-/replx-0.0.1.tgz","fileCount":4,"unpackedSize":35784,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc6Fd/CRA9TVsSAnZWagAAQRgP/2HAnVzEj4Jci82YaUea\nA0HSlAn6N+xBykja1SE0/HlHNkkG8NguM3oTMkZzDKiDhD0mMELW5UgNO7M3\nvClPZzEhVtbY62eZ1rGc1/J0iOP7k0cgs1sMcyL2IWYplZebSdB9j4IU9vBl\nH60FBG/Z42IFPeLs/KlNp3UJYF7GcFjT8Kj1NktOfAgPM0U3QiAWheSGEfNY\nfHUe+7Z9CQuUKZ8azofCb2aRoEzgE891XInGPQkqNVdhGegfDssGFIa7Kz12\nNHheJAznNLXfc3hzVUJlOx0b++k1En0NYXQq1L6fT6tShTRgNb2yHChXAHE5\nlxA+ACt9+69oD0KdKDTsEZRUiLAVRzLjcK0I2whpAwlx6Dz0DoJzE5gRLSYg\n0vhK2BDN4ERCA/zoV+8bTtY1fttPaSFsWf2xZztMLeIi1cevd5s/KE6A/ecr\nd/Ivxv1rqUwuMcqpofJs/1bd6Jl2VXw1yqZdTQ8/5ikP5zZ9gBsDkQ8PidNk\ndHwKXm0Sc3bPeGR7af0M6T/HIhnQ5b+6wgawnAh/hQUM0jUGyDG8xS6/s/fb\n5jFkGEbECfYrtLGjPV3XlrKsV49A+4mvWU6VUo9diwQFNi1tDqTBkGcZgJDu\naB8r0XbRTF3GhYq12fN2thd6k1wiNA6iif8SbZqL+twU2FAfxc1j14Rd3I7Q\ntquA\r\n=DYxt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHsoxMmChP9IiMqg1x1sL/KRGDilx6iJ4HSrJnopDZbQAiA5zGD4p6qTPSUBWPIU/1Z0OBOnvox5Ckuwq0QL22fhIQ=="}]},"maintainers":[{"name":"benoitzohar","email":"benoit.zohar@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/replx_0.0.1_1558730622769_0.03213622570581531"},"_hasShrinkwrap":false},"0.1.0":{"name":"@benoitzohar/replx","version":"0.1.0","description":"REPL tool on steroids","engines":{"node":">=8.0.0"},"scripts":{"test":"jest"},"bin":{"replx":"./bin/replx"},"repository":{"type":"git","url":"git+https://github.com/benoitzohar/replx.git"},"keywords":["repl","replx","cli","node","js","eval","read"],"author":{"name":"Benoit Zohar"},"license":"ISC","bugs":{"url":"https://github.com/benoitzohar/replx/issues"},"homepage":"https://github.com/benoitzohar/replx","devDependencies":{"@types/chalk":"2.2.0","@types/node":"12.0.2","jest":"24.8.0"},"dependencies":{"chalk":"2.4.2"},"gitHead":"6c4ac2e1d4d04abc1b5656a66891ea357de8c21e","_id":"@benoitzohar/replx@0.1.0","_nodeVersion":"12.3.1","_npmVersion":"6.9.0","dist":{"integrity":"sha512-qjL8+BTrkJDwqyIDuucWPbyRYq+ogrZGm+bYWSPCt/rTpgny+S7ujm1m5wkw7PBwwI9/Wdwh1U5cBXyqdHx39Q==","shasum":"9f444821a10eb70650b60e8f44748ec49838c550","tarball":"https://registry.npmjs.org/@benoitzohar/replx/-/replx-0.1.0.tgz","fileCount":6,"unpackedSize":39567,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc7VVwCRA9TVsSAnZWagAA6hIP/i+CXEDBVNgXmBqzyVu1\n5QuXRCYHqAkK2nj8NXTxTVBGxHE41sfzuYOCBlWgrOcD0cYuisttUxzvn9Qh\n3CKltgngyVqZwmYQo5oVF5N/E3baYDbSULeZN0NqMSWpwyRqXtDKByqLeASL\n8gkoXtjR9Vg7Lh0qJhiGvjvJZ+83GfCNks1lPw1OWzYZPssyPw6am/TDr3ia\nROCtfuVyUvxxXzlQhFBhXnX3xHC8tH+ibLrAwjxbYQm0/NKATQfo6ce3tdHw\ng+k+0TcfzYjTk3M3sN84/3w7pfsvMgzHGhzGcG+b+82v5FVtYO6ZUreIx+Y7\nQFx1MiwZEuff2YlEomnUTXXRi/OJQHWLCWxuKG6TWPvC0u8vxU72KnqxdABV\nRi/E/wr9Kzo/+SoYLgrQXC4B/4U96TmjBoa3Uh5BK9ONV3u9JM5QSoWTvxcY\nvc2deUfQTq16OCUI/cE/bZGSC4h3QRJvaHlvekJGlMQ7RDDPpKdWcXm9PQ7s\n0ybKRWdKGGWyVTw6gbJuRPfuQF+jXF5hwQFjNUJGttsaTuj+VDu61JzH/WNP\nePFeIGXALXvMNLXE/cmC/OHSyZUYP6TNbUiqvZq4VzU/KpbnaH9snwKR3gB9\n/PyYI/sYpUywpsoA0yQZ2lldSYQOR1bOPTEuSEOwveoN36bo4ozThI8hFaA/\nGKLY\r\n=DAKU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDp53Ql6uKiI3cXIJNpFkukhEddvn0gHZBkHgETwHXeQAiEA/3iWuvUZuRKT8izfxAzIV3Rb4kLppVTZjmyfVLiLJdA="}]},"maintainers":[{"name":"benoitzohar","email":"benoit.zohar@gmail.com"}],"_npmUser":{"name":"benoitzohar","email":"benoit.zohar@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/replx_0.1.0_1559057776263_0.945443430734761"},"_hasShrinkwrap":false},"0.2.0":{"name":"@benoitzohar/replx","version":"0.2.0","description":"REPL tool on steroids","engines":{"node":">=8.0.0"},"scripts":{"test":"jest"},"bin":{"replx":"./bin/replx"},"repository":{"type":"git","url":"git+https://github.com/benoitzohar/replx.git"},"keywords":["repl","replx","cli","node","js","eval","read"],"author":{"name":"Benoit Zohar"},"license":"ISC","bugs":{"url":"https://github.com/benoitzohar/replx/issues"},"homepage":"https://github.com/benoitzohar/replx","devDependencies":{"@types/chalk":"2.2.0","@types/node":"12.0.2","jest":"24.8.0"},"dependencies":{"chalk":"2.4.2"},"gitHead":"bebe4a9663130780c91adb984ef944195f374b85","_id":"@benoitzohar/replx@0.2.0","_nodeVersion":"12.3.1","_npmVersion":"6.9.0","dist":{"integrity":"sha512-bXSS83IqmKF+K24sGLrDrT6RGfJ2tBAdlR1AjE2gtvsJopKCnIfAgql4ZFAlY5XlSBIBVnmdlwhx7O73chpRDw==","shasum":"d9d3435d522ba462277c1321b76d280b711715c0","tarball":"https://registry.npmjs.org/@benoitzohar/replx/-/replx-0.2.0.tgz","fileCount":6,"unpackedSize":40284,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc7VsXCRA9TVsSAnZWagAAXSYP/0YLFjlHflXlDjxC1NBl\nlrXCI+8/8gd5s5Hy/YlipuPuetXevhcGLaak2DklgTz7bTk1nDoqvyA+aQF8\nyWh7T4zwPj3Pueq+Et4Ij2K9u8E9n2zb3yMAVAzx6adDTjFWOx6p/AMWvnhR\nfJ0G3f96Zs4NVjodwIaC8QAM2W4DTLkigfXZq4jXHkCf5Xpw5CBuTmG3DKx2\nOHTpAQIT3EAGF1uvIXpSPRQJHYN80prlmT5376u27IvnuGk+1WGOT/c8nhNj\nNguEGQ9dGa8ZT6ZLTU6K/DGRVyaSn5DdWA4esltdD0VoG5wM+eykzWUykd7r\nBikbmy0crp/72LB/n2JAI96U4vzM9fe4jD+JXca77jhTkt/YsjiDBMjuRUev\nHVU45fcjO9NH6cr/cZvlS1mH3w52CyU9k0Mc4dgr3//O5IiZb+VuEy/6USFx\nJd/Y9s6k+6jJsGjMobrcOc/NvqseuKKvMqc16jEhF9d2XVQ2/3Z+SA9nPeMs\n0zY62kJpGHL9W8VZN20mysZLC/P4NPWgwkvabBrFU8hcSMN6ECsymJmBbMIf\nJqEXk9oM9vl4J6u8qBxGL4ckgcdAQJSIdWG84fPBYzdQtesOSAE5j6GqA6Mu\nKM3Jhh1h3rFIlJD3So80ASA2Kn6cKuH6SL7yrg9EbscnRw7TOjiRWVM4jz8E\nlrQ8\r\n=WuYv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIASMd48yMF3hpFdg4+cOScwSSP+ETIkx/eSm5SfLKhTeAiBGRWPiCeuYnC0CyeXWJJyL5JbQKoOsBRrWN3LxfCL29g=="}]},"maintainers":[{"name":"benoitzohar","email":"benoit.zohar@gmail.com"}],"_npmUser":{"name":"benoitzohar","email":"benoit.zohar@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/replx_0.2.0_1559059222354_0.11484943714430562"},"_hasShrinkwrap":false},"0.3.0":{"name":"@benoitzohar/replx","version":"0.3.0","description":"REPL tool on steroids","engines":{"node":">=8.0.0"},"scripts":{"test":"jest"},"bin":{"replx":"./bin/replx"},"repository":{"type":"git","url":"git+https://github.com/benoitzohar/replx.git"},"keywords":["repl","replx","cli","node","js","eval","read"],"author":{"name":"Benoit Zohar"},"license":"ISC","bugs":{"url":"https://github.com/benoitzohar/replx/issues"},"homepage":"https://github.com/benoitzohar/replx","devDependencies":{"@types/chalk":"2.2.0","@types/node":"12.0.2","jest":"24.8.0"},"dependencies":{"chalk":"2.4.2","commander":"2.20.0"},"gitHead":"5f9bef755dcc997b7dde2f7fa8ecaa4c29877803","_id":"@benoitzohar/replx@0.3.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"benoitzohar","email":"benoit.zohar@gmail.com"},"dist":{"integrity":"sha512-fJ5XtNEIj6KdSuDxTTyBgMQxHh3lNiHZZ3SRkBkwCP0ok3d6ugYEnbArBRLrYHjifFJPAcnuEbE8IBfycD7Z0g==","shasum":"d427e03b8cb2d3937b68274ad1985042cec028f6","tarball":"https://registry.npmjs.org/@benoitzohar/replx/-/replx-0.3.0.tgz","fileCount":6,"unpackedSize":43314,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc7+H6CRA9TVsSAnZWagAAwf8P/AhXGvTIcJk63Hoso0J9\nLjGjvVViZoPs1Wxbtbhy+fBPTsQCSikWCxJI6Oy8FXNLM8cVbdd0NZtlnNhj\nZDRdc2tk062RaPRnEG8WGFyZaFWw6LzWoeSbMt2I96SS6xdJsA+ReQ358exj\n76JIgAuybD4THtqqJ1/ufJOntOWf6aXdV19aqiYQb069x88sZLtzAOqrP1OR\n1y8eG0KS3pk4lkiinZH9oVlZp142TuoeC115hbz+JKE4MdoqBIqEYgl0A08I\nTQMy4e+FtZqPmPGDpVgaV/UAHmyFfpTBpU/f1XbfTrzlX/ypCkqqOzkQ01en\nGGFwWq6dhPWUZWeEIPR0FszCJyVjPEbC8Z5qMvaLv1D1i8sRDBDnN1s14nZB\ntBfTF20xGm5EEHWS2sdDNs3d0bw6gJozT+R8GLPtdpbFPlZdFKBGHb37sGRQ\nhFYTIm941Bj3wJ1h7LHTcijgw5BZ3hRP9+RiUstF1mPOvCmnFu7YMZP/dIK7\nDHFSm9TcEvXbh77CN7/MD4n3/dQXHoMnVeyUDhwAx+dgMZenuOpCsnD0vFG6\nW5EUy/lsBnQq04/vOcyhJ/44AhwpInpgwv51ws55RcN8eKDd5RejOlHrBG1q\neM+Y0Z8Fr5hc2dyCbXp7GM1YcDFo9rMbQH2BgQsMjSWxviKD/Vl975UdpgZ9\nANQI\r\n=w9Zv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEC7ZdGTl42mukXH1JIKLvqCXKUeFPm5xdq5nXM5ZBflAiAjjBxiQgo09v3/+eXNWD5EasCEdAbBq2bcliaHD7gNHw=="}]},"maintainers":[{"name":"benoitzohar","email":"benoit.zohar@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/replx_0.3.0_1559224825643_0.745258925626189"},"_hasShrinkwrap":false},"0.3.1":{"name":"@benoitzohar/replx","version":"0.3.1","description":"REPL tool on steroids","engines":{"node":">=8.0.0"},"scripts":{"test":"jest","test:watch":"jest --watch","test-with-coverage":"jest --coverage && cat ./coverage/lcov.info | codacy-coverage"},"bin":{"replx":"bin/replx"},"repository":{"type":"git","url":"git+https://github.com/benoitzohar/replx.git"},"keywords":["repl","replx","cli","node","js","eval","read"],"author":{"name":"Benoit Zohar"},"license":"ISC","bugs":{"url":"https://github.com/benoitzohar/replx/issues"},"homepage":"https://github.com/benoitzohar/replx","devDependencies":{"@types/chalk":"2.2.0","@types/node":"12.0.2","capture-console":"1.0.1","codacy-coverage":"3.4.0","jest":"24.9.0"},"dependencies":{"chalk":"2.4.2","commander":"2.20.0"},"gitHead":"ecb6d6122fafb168b96cf25e00ede15ce4860a1a","_id":"@benoitzohar/replx@0.3.1","_nodeVersion":"13.6.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-5Jcos2TFRuMqqi4FaS7b1HW1HHwir2v6lfznw08j6xJIrp6LvX/DMUCALFZg/JaBYIqHL6cfGhOpyZ/n/vnAMA==","shasum":"20793e3eeda8feceb3ed6fb1e139445351b03716","tarball":"https://registry.npmjs.org/@benoitzohar/replx/-/replx-0.3.1.tgz","fileCount":11,"unpackedSize":50066,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeHzMbCRA9TVsSAnZWagAAMrYP/R6SU7YHdy6s84prcjCU\nCyzZnXFWqgnvcxw7LH/EEeOp4PkRN6i7xibffOndoLht3snAEdLXykv9eZL3\nqyo34se8RMGO/cTiI7qKFfgiCXeQOhvwOS+yYHDhoSUmcntvavi/11WtsKqx\nHqL1iEfI06KkfnTfcYo43uz+Q0opdsYIH4cxSUF8T5aoS4Q1t7X5Rn+sSRah\ndXQkcx8dleOIEVKhTBG5DmvavcbN2TvthCvxPCGkGsdtm+0TXYYJMZkZt8HG\nS3OMuLmMIhymrfqwOnjuCmrRxm5/4UUDKbnBK9X/HF4NSU6W2QybhObDKYOD\nJc6Oi0WV3SABq16xWslYP1eOQFxeuKF4ZHIO0cqWqr30IW+bhLwMFB1XdYHE\nS9d6cEqnOKCeItKSRkXxrLi7k4vorCQaIlyDxTlvhaa2YwkSTHMavj12fdxG\nHVeXratTIi++z+0MnwQ7JPv6/KoBdhrIGMxW4AqQUWK/F8qCDgt1o/oB2yIT\n/2CccMlP9135XmdRpqwD8w5yo43lOuaiJQ0Ex96QxrTlCmGomAvxlrdkOJOs\nHv95ZedbqWhF/xMDWHl+XxLzScDIMD2Zgw5YlJ5+dFPLdnbsrJfG7KJSriCw\nc94K+6d1ASiL+GHY8eAfLZhrNXoAfnCHngz1UCzWtG5PwNkXTnfBcCk4jaGw\nrOoN\r\n=bTz0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIETFpjYbO+MV84w7B9Zvpl0gShDSF3s+/M2/jNj5tddPAiEA5koB9EkczxTXM7gpfVhO6Xzo9S5I4HZRetuf3uKfotY="}]},"maintainers":[{"name":"benoitzohar","email":"benoit.zohar@gmail.com"}],"_npmUser":{"name":"benoitzohar","email":"benoit.zohar@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/replx_0.3.1_1579103003278_0.2856568316088339"},"_hasShrinkwrap":false}},"time":{"created":"2019-05-24T20:43:42.729Z","0.0.1":"2019-05-24T20:43:42.934Z","modified":"2022-04-04T18:23:29.634Z","0.1.0":"2019-05-28T15:36:16.419Z","0.2.0":"2019-05-28T16:00:22.488Z","0.3.0":"2019-05-30T14:00:25.761Z","0.3.1":"2020-01-15T15:43:23.486Z"},"maintainers":[{"name":"benoitzohar","email":"benoit.zohar@gmail.com"}],"description":"REPL tool on steroids","homepage":"https://github.com/benoitzohar/replx","keywords":["repl","replx","cli","node","js","eval","read"],"repository":{"type":"git","url":"git+https://github.com/benoitzohar/replx.git"},"author":{"name":"Benoit Zohar"},"bugs":{"url":"https://github.com/benoitzohar/replx/issues"},"license":"ISC","readme":"# REPLx - A REPL CLI tool on steroids \n\n[![npm version](https://img.shields.io/npm/v/@benoitzohar/replx.svg)](https://www.npmjs.com/package/@benoitzohar/replx)\n[![Build Status](https://travis-ci.org/benoitzohar/replx.svg?branch=master)](https://travis-ci.org/benoitzohar/replx)\n[![Codacy Badge](https://api.codacy.com/project/badge/Coverage/25ca409490cd4caeb25a80fb85cab28f)](https://www.codacy.com/app/benoit.zohar/replx?utm_source=github.com&utm_medium=referral&utm_content=benoitzohar/replx&utm_campaign=Badge_Coverage)\n\n_\"Read-Eval-Print-Loop-**times**\"_ allows you to run a Javascript code with node and monitor the execution time for as many executions as you want.\n\n## Installation\n\nYou may want to install _replx_ globally to be able to use it wherever you want:\n\n```bash\nnpm i -g @benoitzohar/replx\n```\n\n## Usage\n\n`replx [options] <source> [times]`\n\nRun an inline script:\n\n```bash\n$ replx \"console.log('hello')\" 3\n hello\n hello\n hello\n [Inline code] 1.312974ms\n```\n\nor load a file:\n\n```bash\n$ replx myfile.js\n oh hello\n [myfile.js] 1.3433752ms\n```\n\nYou can watch for file changes and rerun replx everytime:\n\n```bash\n$ replx --watch myfile.js\n```\n\nor\n\n```bash\n$ replx -w myfile.js\n```\n\n### Comparison\n\nTo compare multiple functions, you can create a file that **exports** as many function as you'd like and `replx` will compare the time for you. For example:\n\n```js\nconst base = \"Lorem ipsum dolor sit amet, mea dolor placerat consectetuer ut\";\n\nmodule.exports.A = () => {\n  const res = [];\n  base.split().forEach(c => res.push(c.toUpperCase()));\n  return res;\n};\n\nmodule.exports.B = () => {\n  const res = base.split().map(c => c.toUpperCase());\n  return res;\n};\n```\n\n### Run multiple times\n\nOf course, one run is not enough to determine which function is faster, so you can easily tell `replx` to run you code multiple time.\nFor example, here we will run the code for each functions in the file 1000000 times:\n\n```bash\n$ replx myfile.js 1000000\n```\n\nNote that the returned value of each function will **not** be logged if you run the code multiple times.\n\n### Create\n\nYou can create an empty file automatically if it doesn't exist:\n\n```bash\n$ replx --create myfile.js\n```\n\nor\n\n```bash\n$ replx -c myfile.js\n```\n\nSince the file will be empty by default, we suggest that you use `-c` along with `-w` so you can use `replx -c -w myfile.js` and start measuring right away.\n\nIf you want to make a comparison, you can create a file with 2 exported functions:\n\n```bash\n$ replx --comparison myfile.js\n```\n\nor\n\n```bash\n$ replx -k myfile.js\n```\n\n## Example\n\n\n```bash\n$ replx -k -w myfile.js 1000\n[B] 0.08004ms\n[A] 0.098599ms (1x slower)\n---\n[A] 0.086088ms\n[B] 0.166884ms (2x slower)\n```\n\nThis command will:\n\n- create the file `myfile.js` with 2 exports functions:\n\n```js\nmodule.exports.A = () => {\n  return \"A\";\n};\n\nmodule.exports.B = () => {\n  return \"B\";\n};\n```\n\n- open it in your default IDE (based on the file extension)\n- run the code 1000 times for each function\n- compare the time between the two functions\n- watch for file change and re-run, etc.\n\n## Help\n\nUse `replx` or `replx -h` for help.\n\n## Notes\n\nFor now, if you use replx as an inline script, be aware that the timing includes the cost of `eval()` at each loop. This means that the _time to run_ displayed is not _exactly_ the time to run your script.  \nIn the same spirit, if you use a file, the cached cost of `require()` will be included.\n\nHowever, using `replx` to compare the time-to-run of two different scripts will work as expected since the `require` cost will be the same in all the variants.\n\nThe run time can vary greatly between runs, we suggest that you run `replx` more than once to ensure the results are aligned.\n","readmeFilename":"README.md"}