{"name":"@fimbul/bifrost","version":"0.1.0-dev.20180213","description":"Compatibility layer for TSLint rules","main":"src/index","types":"src/index","scripts":{"lint:tslint":"tslint -p .","lint:wotan":"wotan","lint":"run-p lint:*","test":"ava -v test/*.spec.js"},"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"},"devDependencies":{"@fimbul/wotan":"^0.0.1","ava":"^0.25.0","npm-run-all":"^4.1.2","tslint":"^5.9.1"},"peerDependencies":{"@fimbul/wotan":"0.1.0-dev.20180213","tslint":"^5.0.0","typescript":"^2.4.1 || >= 2.8.0-dev"},"dependencies":{"tslib":"^1.8.1"},"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[![Greenkeeper badge](https://badges.greenkeeper.io/fimbullinter/wotan.svg)](https://greenkeeper.io/)\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.\n\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.\n\nYou can help these users by providing your rules in a format that Wotan understands without any plugin.\n\n## Installation\n\n```sh\nnpm install --save @fimbul/bifrost\n# or\nyarn add @fimbul/bifrost\n```\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## License\n\nApache-2.0 © [Klaus Meinhardt](https://github.com/ajafff)\n","readmeFilename":"README.md","_id":"@fimbul/bifrost@0.1.0-dev.20180213","_npmVersion":"5.6.0","_nodeVersion":"9.5.0","_npmUser":{"name":"harbard","email":"klaus.meinhardt1@gmail.com"},"dist":{"integrity":"sha512-GPc6b8ib+JXeTA8eBDtVrepBcs4STAWbuU/xXH8oSM+seY96hMcxtUcYRdIJpsvpczwjH5WHxkEcswYJTsOb2Q==","shasum":"b46fe7172c6b4343773625c1ef28afe0dc06cff6","tarball":"http://registry-npm.ywwl.com/@fimbul/bifrost/download/@fimbul/bifrost-0.1.0-dev.20180213.tgz","fileCount":7,"unpackedSize":22102,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCXpNAV+Fn5MWJyvJczPUXxlDaqEyB0h1dzBDjZvsoeQQIhANiuyaX105AuLhs3ch0aXJd2HeKJXcPDznL+ptoH3/A9"}],"size":7598,"noattachment":false,"key":"/@fimbul/bifrost/-/@fimbul/bifrost-0.1.0-dev.20180213.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.1.0-dev.20180213_1518527158548_0.02035514706405972"},"_hasShrinkwrap":false,"publish_time":1518527159280,"_cnpm_publish_time":1518527159280,"dist-tags":{"latest":"0.24.0","next":"0.24.0"}}