{"name":"@fimbul/bifrost","version":"0.15.0-dev.20181018","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.8.1 || >= 3.0.0-dev || >= 3.0.0-insiders || 3.0.0-rc || >= 3.1.0-dev"},"dependencies":{"@fimbul/ymir":"0.15.0-dev.20181018","get-caller-file":"^2.0.0","tslib":"^1.8.1","tsutils":"^3.1.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.15.0-dev.20181018","_npmVersion":"6.4.1","_nodeVersion":"10.12.0","_npmUser":{"name":"harbard","email":"klaus.meinhardt1@gmail.com"},"dist":{"integrity":"sha512-Ohf0L/Y4vT5YSS+Q5KJuN40u17gLyxeNLmDtxyAKvwt6p/WzkPPPsS8JsZimGK4vG+nzzEqyahB685QegHtk8A==","shasum":"7a90392b299998b1e9c5f900fd501800525e0491","tarball":"http://registry-npm.ywwl.com/@fimbul/bifrost/download/@fimbul/bifrost-0.15.0-dev.20181018.tgz","fileCount":7,"unpackedSize":27807,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbx98HCRA9TVsSAnZWagAA6bYP/3s0E+lLa+Jzyl+hwvgZ\ng742ZYcIIXDvJBPXxCaiVfacs+VDmCjDU/Ur1pJfjAP4MbVL6sJTjUqM+1YU\n7bkQn74Lza39gnUf2f3tX6JW6n6ERhydG+sgMP8nYQfcLQHLt7OSYF9ha2HC\nudmwyQYMCmbwh7EWTzWh+7P9KZ2Pm1vO7V3P8aFfwXAj2M6JsKWG6fJeihDj\nubbs+iCaGmmpFtTJo4815QDv77KE2Zgx8g5rXE7/AAlJL1xGit4S1Y57jTjl\naWc29UpRyc6kXvSliJlh88BO9dZ4F60/YQ1AbRLkkwg4F8oMWfs5p2faOGxH\nPQ3d/EX2qugrz++25Bpzphxw/BjCPli5ExjfxwBYN2J8Mz0d7gRjGgi7ODpD\n00zv4f4mKyRs2qKhabvdbnODbNCBlBmN7jwoHsB7MEPF15Bww/M4TYfAWC8c\nJ84B6V7uNuIMG3NROKu+h44FwOiYRmx+5PEDLqQtKUM/8ReVFKGEZpcYAaG1\nf5pIu4VqrFQo4M7AUBHR6pC9ZjSxaotvIlrHFjoT1SkdUxSsVWHWhacgHvDg\nQ464SADYtROs5jrvZm8X2mrkgl7bZK8mD0tDt+9s0Fvu0EE1DNsqm0SRUZRP\n9yAdbBDo/zvm4BlXdLgZhURQF4OGFwMWNUdmCCS5Uh2AOkCJvTjssacqgQun\nHkV0\r\n=nPk9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBebJXnCzx5ibrPMK7vMIN7JL1kVwgK1b6pCJxeiGzuiAiAmqZEKHmjm05IlmVzKxj7un8YH+mcbZjU9Yn2c0SEk8g=="}],"size":8950,"noattachment":false,"key":"/@fimbul/bifrost/-/@fimbul/bifrost-0.15.0-dev.20181018.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.15.0-dev.20181018_1539825414866_0.020131126666600885"},"_hasShrinkwrap":false,"publish_time":1539825415039,"_cnpm_publish_time":1539825415039,"dist-tags":{"latest":"0.24.0","next":"0.24.0"}}