{"_id":"cypress-log","_rev":"3-1e1cb2419544c27022767d8b5ea1b525","name":"cypress-log","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.0":{"name":"cypress-log","version":"1.0.0","description":"Custom Cypress command that overrides the default cy.log() command and adds the ability to log to the terminal and the Command Log.","main":"index.js","scripts":{"test":"npx cypress run","cy:open":"npx cypress open","release":"release-it --github.release","release:ci":"npm run release -- --ci --npm.skipChecks --no-git.requireCleanWorkingDir","release:patch":"npm run release -- patch","release:minor":"npm run release -- minor","release:major":"npm run release -- major"},"repository":{"type":"git","url":"git+https://github.com/elaichenkov/cypress-log.git"},"keywords":["cypress","log","e2e","testing","plugin"],"author":{"name":"Yevhen Laichenkov","email":"elaichenkov@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/elaichenkov/cypress-log/issues"},"homepage":"https://github.com/elaichenkov/cypress-log#readme","devDependencies":{"cypress":"^13.6.1","release-it":"^17.0.1"},"_id":"cypress-log@1.0.0","gitHead":"f158a93ddd69c7aafeaab426dc66364203d8b854","_nodeVersion":"20.9.0","_npmVersion":"10.1.0","dist":{"integrity":"sha512-SvS1MfxCndpy/ndeSBdQZN1QO1/2f10cVYr+WZuxVwAcMywurWgvBTZl29gToqGvhEISv+JIS3Axis7j1xb4HQ==","shasum":"0b927cc52ad07a04c0009dbbcf4e6b88c285893a","tarball":"https://registry.npmjs.org/cypress-log/-/cypress-log-1.0.0.tgz","fileCount":8,"unpackedSize":5351,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDsIcQGdX60dn5UPkhbFRzhHWqLtJ0Xp7x99U1FFXBjqAiBlXumjzbZa0tiUDs7DmeJtOLu+DYni2ZFVYuE9KlVjiw=="}]},"_npmUser":{"name":"elaichenkov","email":"elaichenkov@gmail.com"},"directories":{},"maintainers":[{"name":"elaichenkov","email":"elaichenkov@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cypress-log_1.0.0_1703113733927_0.8087949247336383"},"_hasShrinkwrap":false},"1.0.1":{"name":"cypress-log","version":"1.0.1","description":"Custom Cypress command that overrides the default cy.log() command and adds the ability to log to the terminal and the Command Log.","main":"index.js","scripts":{"test":"npx cypress run","cy:open":"npx cypress open","release":"release-it --github.release","release:ci":"npm run release -- --ci --npm.skipChecks --no-git.requireCleanWorkingDir","release:patch":"npm run release -- patch","release:minor":"npm run release -- minor","release:major":"npm run release -- major"},"repository":{"type":"git","url":"git+https://github.com/elaichenkov/cypress-log.git"},"keywords":["cypress","log","e2e","testing","plugin"],"author":{"name":"Yevhen Laichenkov","email":"elaichenkov@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/elaichenkov/cypress-log/issues"},"homepage":"https://github.com/elaichenkov/cypress-log#readme","devDependencies":{"cypress":"^13.6.1","release-it":"^17.0.1"},"_id":"cypress-log@1.0.1","gitHead":"048d15c24068d83d8304fcd9e7303c7ce0c78008","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-62TP4u2uDDZD2Ju9y1YyMfMyZ6HWnP+8rwOTDtIZCPwDX6aapWk/zEoNn5m9dlQkzXhWh3yL3lCh7ZxReYGDag==","shasum":"bf601dde54b7de9222a963e735c10601040b2c93","tarball":"https://registry.npmjs.org/cypress-log/-/cypress-log-1.0.1.tgz","fileCount":10,"unpackedSize":20474,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC78f/LSl9AC1Kwo2QhhplTur5spZ2PbkYTSQ7cf2wOlQIgXcxOQa4xjpujkUErAK5cSSQCd3UgWLA0sEsI/ZImWC4="}]},"_npmUser":{"name":"elaichenkov","email":"elaichenkov@gmail.com"},"directories":{},"maintainers":[{"name":"elaichenkov","email":"elaichenkov@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cypress-log_1.0.1_1703115317421_0.01006298370708092"},"_hasShrinkwrap":false},"1.0.2":{"name":"cypress-log","version":"1.0.2","description":"Custom Cypress command that overrides the default cy.log() command and adds the ability to log to the terminal and the Command Log.","main":"index.js","scripts":{"test":"npx cypress run","cy:open":"npx cypress open","release":"release-it --github.release","release:ci":"npm run release -- --ci --npm.skipChecks --no-git.requireCleanWorkingDir","release:patch":"npm run release -- patch","release:minor":"npm run release -- minor","release:major":"npm run release -- major"},"repository":{"type":"git","url":"git+https://github.com/elaichenkov/cypress-log.git"},"keywords":["cypress","log","e2e","testing","plugin"],"author":{"name":"Yevhen Laichenkov","email":"elaichenkov@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/elaichenkov/cypress-log/issues"},"homepage":"https://github.com/elaichenkov/cypress-log#readme","devDependencies":{"cypress":"^13.6.1","release-it":"^17.0.1"},"_id":"cypress-log@1.0.2","gitHead":"07d2affe8587403bd43f477f99f2cbfd7726f93a","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-coXoDTnKokf515VZeV24+AImVxhJP5vtkekdm6QwppuqaGfmwZKGwRbJIb+7NdDTQlzgWgQxfFzux68IgsNMXA==","shasum":"f06e56528b8f0c9989189c59d73e494f0a099113","tarball":"https://registry.npmjs.org/cypress-log/-/cypress-log-1.0.2.tgz","fileCount":7,"unpackedSize":18935,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCXIFJ0pX61mhMOsaiRL2zgAWTBJJ/LPjKg+yWTkGWcCQIgXsDW7ZI1jEyu6rNH7mS0c0ry2t4xPK15CSDeUkI3VyY="}]},"_npmUser":{"name":"elaichenkov","email":"elaichenkov@gmail.com"},"directories":{},"maintainers":[{"name":"elaichenkov","email":"elaichenkov@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cypress-log_1.0.2_1703115629756_0.8924399857702945"},"_hasShrinkwrap":false},"1.0.3":{"name":"cypress-log","version":"1.0.3","description":"Custom Cypress command that overrides the default cy.log() command and adds the ability to log to the terminal and the Command Log.","main":"index.js","scripts":{"test":"npx cypress run","cy:open":"npx cypress open","release":"release-it --github.release","release:ci":"npm run release -- --ci --npm.skipChecks --no-git.requireCleanWorkingDir","release:patch":"npm run release -- patch","release:minor":"npm run release -- minor","release:major":"npm run release -- major"},"repository":{"type":"git","url":"git+https://github.com/elaichenkov/cypress-log.git"},"keywords":["cypress","log","e2e","testing","plugin"],"author":{"name":"Yevhen Laichenkov","email":"elaichenkov@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/elaichenkov/cypress-log/issues"},"homepage":"https://github.com/elaichenkov/cypress-log#readme","devDependencies":{"cypress":"^13.6.1","release-it":"^17.0.1"},"_id":"cypress-log@1.0.3","gitHead":"cf23fa6ca4cb943045b5c25e392d5ffd6af1d337","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-LaqW95a5FbULAQuIRXfv/cpjLMzXvjayZoqj3B0fYduJzwuHrCj+x+RvSEKxoW7wG1hSY4PDm8MSdoj9QbSzow==","shasum":"ef886fff51f8f2a4b5c7a3beee10ccd78b6534e9","tarball":"https://registry.npmjs.org/cypress-log/-/cypress-log-1.0.3.tgz","fileCount":7,"unpackedSize":17610,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCagnCLTht5pfDpWJkKt89bmFBmcnXczp7kJFddD092AwIhAJchONwpUPUviwlm0R2kkq/+81mFI2uwJ0536R8khIw6"}]},"_npmUser":{"name":"elaichenkov","email":"elaichenkov@gmail.com"},"directories":{},"maintainers":[{"name":"elaichenkov","email":"elaichenkov@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cypress-log_1.0.3_1703186456352_0.4726466050958309"},"_hasShrinkwrap":false}},"time":{"created":"2023-12-20T23:08:53.926Z","1.0.0":"2023-12-20T23:08:54.190Z","modified":"2023-12-21T19:20:56.727Z","1.0.1":"2023-12-20T23:35:17.623Z","1.0.2":"2023-12-20T23:40:29.944Z","1.0.3":"2023-12-21T19:20:56.565Z"},"maintainers":[{"name":"elaichenkov","email":"elaichenkov@gmail.com"}],"description":"Custom Cypress command that overrides the default cy.log() command and adds the ability to log to the terminal and the Command Log.","homepage":"https://github.com/elaichenkov/cypress-log#readme","keywords":["cypress","log","e2e","testing","plugin"],"repository":{"type":"git","url":"git+https://github.com/elaichenkov/cypress-log.git"},"author":{"name":"Yevhen Laichenkov","email":"elaichenkov@gmail.com"},"bugs":{"url":"https://github.com/elaichenkov/cypress-log/issues"},"license":"MIT","readme":"# cypress-log\n\n> Intelligible package that overrides the default behavior of the `cy.log()` method by giving the ability to print whatever you want not only in Cypress Runner UI but in the terminal as well. This is super useful when you don't want to handle what to invoke a built-in command or a task, but you still want to use one command for logging everything everywhere.\n\n## Install\n\n```shell\nnpm install -D cypress-log\n```\n\n## Usage\n\nIn your `cypress/support/e2e.js` file, add the following:\n\n```js\nimport 'cypress-log';\n```\n\nAlso, you need to add the following to your `cypress.config.js` file:\n\n```js\n// import the log function\nconst { log } = require('cypress-log/log.task');\n\nmodule.exports = {\n  // ...\n  e2e: {\n    setupNodeEvents(on, config) {\n      // add the function to the task\n      on('task', { log });\n    },\n  },\n  // ...\n};\n```\n\nThen, you can use the `cy.log` command in your tests as you've used to do it before. The only difference is that you can any data type as an argument. For example:\n\n```js\ncy.log('Hello, World!');\ncy.log({ foo: 'bar', baz: { nested: 'prop' } });\ncy.log(['foo', 'bar']);\ncy.log('another message', ['one', 'two', 'three'], { foo: 'foo' });\n```\n\nSo, if you run your tests in the Cypress Runner UI, you will see the following:\n\n![ui](./assets/ui.png)\n\nand if you run your tests in non-interactive mode, you will see the following in the terminal:\n\n![terminal](./assets/terminal.png)\n\n## Author\n\nYevhen Laichenkov <elaichenkov@gmail.com>\n\n## License\n\n[MIT](./LICENSE)\n","readmeFilename":"README.md"}