{"name":"@fimbul/bifrost","version":"0.9.0-dev.20180501","description":"Compatibility layer for TSLint rules","main":"src/index","types":"src/index","author":{"name":"Klaus Meinhardt"},"license":"Apache-2.0","bugs":{"url":"https://github.com/fimbullinter/wotan/issues"},"homepage":"https://github.com/fimbullinter/wotan#readme","publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/fimbullinter/wotan.git"},"keywords":["wotan","rules","formatters","tslint","compatibility"],"peerDependencies":{"tslint":"^5.0.0","typescript":"^2.4.1 || >= 2.8.0-dev"},"dependencies":{"@fimbul/ymir":"0.9.0-dev.20180501","get-caller-file":"^1.0.2","tslib":"^1.8.1","tsutils":"^2.24.0"},"devDependencies":{"@types/get-caller-file":"^1.0.0"},"readme":"# Bifröst\n\nCompatiblity layer for TSLint rules and formatters.\n\n[![npm version](https://img.shields.io/npm/v/@fimbul/bifrost.svg)](https://www.npmjs.com/package/@fimbul/bifrost)\n[![npm downloads](https://img.shields.io/npm/dm/@fimbul/bifrost.svg)](https://www.npmjs.com/package/@fimbul/bifrost)\n[![Renovate enabled](https://img.shields.io/badge/renovate-enabled-brightgreen.svg)](https://renovateapp.com/)\n[![CircleCI](https://circleci.com/gh/fimbullinter/wotan/tree/master.svg?style=shield)](https://circleci.com/gh/fimbullinter/wotan/tree/master)\n[![Build status](https://ci.appveyor.com/api/projects/status/a28dpupxvjljibq3/branch/master?svg=true)](https://ci.appveyor.com/project/ajafff/wotan/branch/master)\n[![codecov](https://codecov.io/gh/fimbullinter/wotan/branch/master/graph/badge.svg)](https://codecov.io/gh/fimbullinter/wotan)\n[![Join the chat at https://gitter.im/fimbullinter/wotan](https://badges.gitter.im/fimbullinter/wotan.svg)](https://gitter.im/fimbullinter/wotan)\n\nMake sure to also read the [full documentation of all available modules](https://github.com/fimbullinter/wotan#readme).\n\n## Purpose\n\nAllows TSLint rule authors to provide the same rules for Wotan without any refactoring.\nAlthough `@fimbul/heimdall` already allows users to use your rules and formatters in Wotan, they still need to remember to use `-m @fimbul/heimdall` when running Wotan.\nYou can help these users by providing your rules in a format that Wotan understands without any plugin.\n\nIt also provides the exact opposite functionality: using rules originally written for Fimbullinter (wotan) as TSLint rule.\n\n## Installation\n\n```sh\nnpm install --save @fimbul/bifrost\n# or\nyarn add @fimbul/bifrost\n```\n\n## Using TSLint Rules and Formatters in Wotan\n\n### Rules\n\nGiven a TSLint rule `my-foo` in a file `myFooRule.ts`, you simply create a file `my-foo.ts` with the following content:\n\n```ts\nimport {wrapTslintRule} from '@fimbul/bifrost';\nimport {Rule} from './myFooRule.ts';\n\nconst Wrapped = wrapTslintRule(Rule, 'my-foo');\nexport {Wrapped as Rule};\n```\n\nIf you want to use a different directory for your TSLint rules and their Wotan wrapper, you just need to adjust the paths in the above example.\n\n### Formatters\n\nGiven a TSLint formatter `my-foo` in a file `myFooFormatter.ts`, you simply create a file `my-foo.ts` with the following content:\n\n```ts\nimport {wrapTslintFormatter} from '@fimbul/bifrost';\nimport {Formatter} from './myFooFormatter.ts';\n\nconst Wrapped = wrapTslintFormatter(Formatter);\nexport {Wrapped as Formatter};\n```\n\n## Using Fimbullinter Rules in TSLint\n\nGiven a Fimbullinter rule `my-foo` in a file `my-foo.ts`, you simply create a file `myFooRule.ts` with the following content:\n\n```ts\nimport {wrapRuleForTslint} from '@fimbul/bifrost';\nimport {Rule} from './my-foo.ts';\n\nconst Wrapped = wrapRuleForTslint(Rule);\nexport {Wrapped as Rule};\n```\n\n## License\n\nApache-2.0 © [Klaus Meinhardt](https://github.com/ajafff)\n","readmeFilename":"README.md","_id":"@fimbul/bifrost@0.9.0-dev.20180501","_npmVersion":"5.6.0","_nodeVersion":"9.11.1","_npmUser":{"name":"harbard","email":"klaus.meinhardt1@gmail.com"},"dist":{"integrity":"sha512-HMLrseSj/+C8LqsfTrlQePH1N7RoKHq3WeiVYsYdW+eLTkxM9FjPYryslA0wESTG4LCOBMRRKzHGgDt5QcaPYg==","shasum":"216e4819acb240a503d3b5e4800e52e396013f8b","tarball":"http://registry-npm.ywwl.com/@fimbul/bifrost/download/@fimbul/bifrost-0.9.0-dev.20180501.tgz","fileCount":7,"unpackedSize":27676,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa6PwaCRA9TVsSAnZWagAAVGMP+QHrOj3JN1YO/5L2kyn5\nUuwjOVDyh4Ag4BDYT+kpp1xH+USmEa0kx5SMpwbx5saoO0IQBkLfF3OBWU/n\nqILEcSioTLSfHXEBjkV7N97TnUq5Zi9Klbch33Mc+Go0KIXXpjkG1NHlxFTC\nizv7O2rKr2vJC8DxuHgzaM3oVCjBYsQ3hHI3L0EhMIaUfvr7dKZ0QjiRsmWk\n/QStfsI53Ykx62apr0QmTi0ilrC8/V4R/mfHON5VjRwECwrlaLo/BafPMmRg\nehs8quW+r4yzKWSP27J+M/iK3Sgb++bk1AKUxv4GGz88tLqr/paUjoZnEVmz\nQX9OonJ2Bw8fEv26Favfr7ipEvvuBheO6xpL9WEJ5NFva1QshP5kDD7d9iLD\nbO71cWuX4qqbxTS/7YHCbAHm2+5W43MNFGJACjEf4165fqvuhGMqsjwdnapk\n1VGVti1Di675L2djk4nY5Giy40xi3WRPcqIcQ2xvINYIyck5ac1WcFvsOG5m\n1EeYxeZ8oQx047bRMlnHMw70IOA0d6XD+kognaoUSDxiQkcXtAVKuIOFYK6B\n+TbHH/tSoQfxTBF6nN1EyBCMr5y7Qn79YNSlFxJdIGMVs1QqsRiAulcwmWbx\neowYXLOZfm/8uOnbx+Q4oEboaH6Xc7vm0zq8+fo4N9GjzpMJ3XFhJ+ZsDxaQ\nKsYB\r\n=M+i6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDGanRqSvgHv1xaDV+mfUWnCwKT9QON041e5S3zO3Y3zAIhALAxWhnFRI3kyH7idrG8yik5G1pkAg5+TPy32g+5fjoh"}],"size":8935,"noattachment":false,"key":"/@fimbul/bifrost/-/@fimbul/bifrost-0.9.0-dev.20180501.tgz"},"maintainers":[{"email":"klaus.meinhardt1@gmail.com","name":"ajaff"},{"email":"klaus.meinhardt1@gmail.com","name":"harbard"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bifrost_0.9.0-dev.20180501_1525218329737_0.8487124485011557"},"_hasShrinkwrap":false,"publish_time":1525218329831,"_cnpm_publish_time":1525218329831,"dist-tags":{"latest":"0.24.0","next":"0.24.0"}}