{"_id":"@buxlabs/jasmine-converter","_rev":"7-37ff1ecbd90da2ea405c4f5cc94ded01","name":"@buxlabs/jasmine-converter","description":"A convestion utility for jasmine","dist-tags":{"latest":"0.3.3"},"versions":{"0.3.0":{"name":"@buxlabs/jasmine-converter","version":"0.3.0","description":"A convestion utility for jasmine","main":"index.js","scripts":{"test":"ava \"test/spec/**/*.js\"","coverage":"nyc npm t"},"engines":{"node":">= 8.1.2"},"repository":{"type":"git","url":"git+https://github.com/buxlabs/jasmine-converter.git"},"bin":{"jasmineconverter":"./bin/cli.js"},"keywords":["jasmine","converter"],"author":{"name":"Emil Ajdyna"},"license":"MIT","bugs":{"url":"https://github.com/buxlabs/jasmine-converter/issues"},"homepage":"https://github.com/buxlabs/jasmine-converter#readme","devDependencies":{"ava":"^0.19.1","nyc":"^11.0.2","shelljs":"^0.7.8"},"dependencies":{"@buxlabs/ast":"^0.4.0","commander":"^2.9.0","glob":"^7.1.2"},"gitHead":"97869b0215b8614b563b0a62dce76b4eb0766fbc","_id":"@buxlabs/jasmine-converter@0.3.0","_npmVersion":"5.0.3","_nodeVersion":"8.1.2","_npmUser":{"name":"buxlabs","email":"emil@ajdyna.com"},"dist":{"integrity":"sha512-m9xwe0frda0K341KWQxor5nVT23avMJS5MAaQEK1+oFOZUPsZZF7D93Ub1AgpSvyHASkwoGTVg/gt+IYXC/3Ww==","shasum":"04b37d4413196203176199d0abe9c6eee795fcc3","tarball":"https://registry.npmjs.org/@buxlabs/jasmine-converter/-/jasmine-converter-0.3.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCttMdl1MzvvI+pmgKrKRqhoRZYFxNqYW/C84GvgwMRsQIgRghbVHJybegEB1GOmI7tzmtNK2SZTKHIpSq9rFB+two="}]},"maintainers":[{"name":"buxlabs","email":"emil@ajdyna.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jasmine-converter-0.3.0.tgz_1498141362945_0.9970576846972108"},"directories":{}},"0.3.1":{"name":"@buxlabs/jasmine-converter","version":"0.3.1","description":"A convestion utility for jasmine","main":"index.js","scripts":{"test":"ava \"test/spec/**/*.js\"","coverage":"nyc npm t"},"engines":{"node":">= 8.1.2"},"repository":{"type":"git","url":"git+https://github.com/buxlabs/jasmine-converter.git"},"bin":{"jasmineconverter":"./bin/cli.js"},"keywords":["jasmine","converter"],"author":{"name":"Emil Ajdyna"},"license":"MIT","bugs":{"url":"https://github.com/buxlabs/jasmine-converter/issues"},"homepage":"https://github.com/buxlabs/jasmine-converter#readme","devDependencies":{"ava":"^0.19.1","nyc":"^11.0.2","shelljs":"^0.7.8"},"dependencies":{"@buxlabs/ast":"^0.4.0","commander":"^2.9.0","glob":"^7.1.2"},"gitHead":"02fbe97faca3db241714155c21559a54152dc2dd","_id":"@buxlabs/jasmine-converter@0.3.1","_npmVersion":"5.0.3","_nodeVersion":"8.1.2","_npmUser":{"name":"buxlabs","email":"emil@ajdyna.com"},"dist":{"integrity":"sha512-3OQ/SYCa+smwwAfFu6ueW+l6kVA9gH/Co0WLgog4HnWvxF1zi6ZBf1HRdvLlG33UIpRkpsjr5+9NxbkCv3bFeg==","shasum":"5cf72e66bc760673cbcfbec4dd28977650f25fde","tarball":"https://registry.npmjs.org/@buxlabs/jasmine-converter/-/jasmine-converter-0.3.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAQUwfiM2IL75Te0HSZAuZ5esVmYbh6R6+4y5NHV6uEvAiBV8QxchHkFB4JT2dqXrFsPmUIRuw8PoGVRRNVB2B7Qbw=="}]},"maintainers":[{"name":"buxlabs","email":"emil@ajdyna.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jasmine-converter-0.3.1.tgz_1498206410623_0.3914814677555114"},"directories":{}},"0.3.2":{"name":"@buxlabs/jasmine-converter","version":"0.3.2","description":"A convestion utility for jasmine","main":"index.js","scripts":{"test":"ava \"test/spec/**/*.js\"","coverage":"nyc npm t"},"engines":{"node":">= 8.1.2"},"repository":{"type":"git","url":"git+https://github.com/buxlabs/jasmine-converter.git"},"bin":{"jasmineconverter":"./bin/cli.js"},"keywords":["jasmine","converter"],"author":{"name":"Emil Ajdyna"},"license":"MIT","bugs":{"url":"https://github.com/buxlabs/jasmine-converter/issues"},"homepage":"https://github.com/buxlabs/jasmine-converter#readme","devDependencies":{"ava":"0.19.1","nyc":"11.0.2","shelljs":"0.7.8"},"dependencies":{"@buxlabs/ast":"0.4.1","commander":"2.9.0","glob":"7.1.2"},"gitHead":"823cc75eccb2c5c05778b8973abbfcc52ec21182","_id":"@buxlabs/jasmine-converter@0.3.2","_npmVersion":"5.0.3","_nodeVersion":"8.1.2","_npmUser":{"name":"buxlabs","email":"emil@ajdyna.com"},"dist":{"integrity":"sha512-Y6qdWPT5BYXpXkK0mAyKfL6G+FiHeW/ZVkYM995lPhaBHyvXFqJFLX5kJIFOTRWeswZu2i9BgZK+hQM2LKsoMA==","shasum":"64bb86e500fcf62645335a0f256418fe173e944b","tarball":"https://registry.npmjs.org/@buxlabs/jasmine-converter/-/jasmine-converter-0.3.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDtEbD3chOXZ9GTVZzoPj58uyB31Vf9lEeFs+sfX8OyQwIgT61WRQ7Agpx+rIdSiDuxwdWexqP93nHmKOCGaZaYiTg="}]},"maintainers":[{"name":"buxlabs","email":"emil@ajdyna.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jasmine-converter-0.3.2.tgz_1498211727842_0.3229182241484523"},"directories":{}},"0.3.3":{"name":"@buxlabs/jasmine-converter","version":"0.3.3","description":"A convestion utility for jasmine","main":"index.js","scripts":{"test":"ava \"test/spec/**/*.js\"","coverage":"nyc npm t"},"engines":{"node":">= 8.1.2"},"repository":{"type":"git","url":"git+https://github.com/buxlabs/jasmine-converter.git"},"bin":{"jasmineconverter":"./bin/cli.js"},"keywords":["jasmine","converter"],"author":{"name":"Emil Ajdyna"},"license":"MIT","bugs":{"url":"https://github.com/buxlabs/jasmine-converter/issues"},"homepage":"https://github.com/buxlabs/jasmine-converter#readme","devDependencies":{"ava":"0.19.1","nyc":"11.0.2","shelljs":"0.7.8"},"dependencies":{"@buxlabs/ast":"0.4.1","commander":"2.9.0","glob":"7.1.2"},"gitHead":"e58c9aef4671a2927db14148ceeff1cf18afaaab","_id":"@buxlabs/jasmine-converter@0.3.3","_npmVersion":"5.0.3","_nodeVersion":"8.1.2","_npmUser":{"name":"buxlabs","email":"emil@ajdyna.com"},"dist":{"integrity":"sha512-WrUMe+0FBteF4+zC+Vk1yaTx+2u0nim14Rg7H9ITpGYfp3WEd89SwJax9if2MVZLOcbptaExMqExfH5N5WSIIA==","shasum":"a360e44390f86d92047959b008bc31bb03d0af57","tarball":"https://registry.npmjs.org/@buxlabs/jasmine-converter/-/jasmine-converter-0.3.3.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCuOF6DzqWvzNk0uN2pVgh+/PEWw6bibKm4YaNP+e2PfQIgCLJNTgJ/wM4cq44s0wcTywefa/dmUFoZmG7MiyRnY2k="}]},"maintainers":[{"name":"buxlabs","email":"emil@ajdyna.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jasmine-converter-0.3.3.tgz_1498219713857_0.4999083327129483"},"directories":{}}},"readme":"# jasmine-converter\n\n[![Greenkeeper badge](https://badges.greenkeeper.io/buxlabs/jasmine-converter.svg?token=00ff27e988d5ebef74945f35a52c1d09d5783491657ae5133cbfb82f6e65c428&ts=1498123326960)](https://greenkeeper.io/)\n\n## Installation\n\n`npm install -g @buxlabs/jasmine-converter`\n\n## What does it do?\n\nThe library was created to convert jasmine specs from the following format:\n\n```js\ndescribe(\"Test\", function () {\n    var a;\n    \n    beforeEach(function () {\n        a = 5; \n    });\n    \n    it(\"works\", function () {\n        expect(a).toBe(5);\n    });\n});\n```\n\nto:\n\n```js\ndescribe(\"Test\", function () {\n    beforeEach(function () {\n        this.a = 5; \n    });\n    \n    it(\"works\", function () {\n        expect(this.a).toBe(5);\n    });\n});\n```\n\nThe difference between formats is that the first one causes memory leaks due to \nthe internal design of the library, the second one is the suggested solution to \nthe problem.\n\n## Usage\n\n### cli\n\nConvert a single file with:\n\n`jasmineconverter app.spec.js > app.spec.js`\n\nConvert multiple files in given dir recursively and replace them with:\n\n`jasmineconverter --src=src --glob=**/*.spec.js --replace`\n\n### Options\n```sh\n\n  Usage: jasmineconverter [options]\n\n  Options:\n\n    -s, --src <dirname>     Directory of the source files\n    -g, --glob [glob]       Glob pattern for the src to match for input files\n    -r, --recursive         Set glob pattern to **/*.js with no hassle\n    --replace               Replace the input files with results\n\n```","maintainers":[{"email":"emilajdyna@gmail.com","name":"buxlabs-dev"},{"email":"emil@ajdyna.com","name":"emilos"}],"time":{"modified":"2022-04-04T21:11:00.254Z","created":"2017-06-22T14:22:43.996Z","0.3.0":"2017-06-22T14:22:43.996Z","0.3.1":"2017-06-23T08:26:51.623Z","0.3.2":"2017-06-23T09:55:28.865Z","0.3.3":"2017-06-23T12:08:34.905Z"},"homepage":"https://github.com/buxlabs/jasmine-converter#readme","keywords":["jasmine","converter"],"repository":{"type":"git","url":"git+https://github.com/buxlabs/jasmine-converter.git"},"author":{"name":"Emil Ajdyna"},"bugs":{"url":"https://github.com/buxlabs/jasmine-converter/issues"},"license":"MIT","readmeFilename":"README.md"}