{"_id":"ignore-styles","_rev":"3066265","name":"ignore-styles","description":"Ignore imported style files when running in Node","dist-tags":{"latest":"5.0.1"},"maintainers":[{"name":"bkonkle","email":"brandon@konkle.us"}],"time":{"modified":"2023-11-27T03:51:10.000Z","created":"2015-11-19T21:25:34.017Z","5.0.1":"2016-08-26T22:44:33.136Z","5.0.0":"2016-08-26T22:41:35.008Z","4.0.0":"2016-06-14T02:02:00.451Z","3.0.0":"2016-06-09T04:14:07.376Z","2.0.0":"2016-05-12T12:21:50.235Z","1.2.0":"2015-12-15T21:22:24.646Z","1.1.0":"2015-12-11T12:17:33.700Z","1.0.3":"2015-11-20T07:38:18.805Z","1.0.2":"2015-11-19T21:51:53.190Z","1.0.1":"2015-11-19T21:42:56.465Z","1.0.0":"2015-11-19T21:25:34.017Z"},"users":{},"author":{"name":"Brandon Konkle","email":"brandon@konkle.us"},"repository":{"type":"git","url":"git+https://github.com/bkonkle/ignore-styles.git"},"versions":{"5.0.1":{"name":"ignore-styles","version":"5.0.1","description":"Ignore imported style files when running in Node","main":"lib/ignore-styles.js","scripts":{"test":"standard ignore-styles.js && mocha --require babel-register","build":"babel ignore-styles.js -s -o lib/ignore-styles.js","watch":"babel ignore-styles.js -s -o lib/ignore-styles.js -w","prepublish":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/bkonkle/ignore-styles.git"},"author":{"name":"Brandon Konkle","email":"brandon@konkle.us"},"license":"MIT","keywords":["webpack","css","testing"],"devDependencies":{"babel-cli":"^6.3.17","babel-plugin-transform-object-assign":"^6.3.13","babel-preset-es2015-loose":"^6.1.3","babel-preset-react":"^6.3.13","babel-register":"^6.3.13","chai":"^3.4.1","mocha":"^2.3.3","standard":"^7.1.2"},"gitHead":"5673c0b72b7c79f7b94bc1f5d7f3ccea1ef82621","bugs":{"url":"https://github.com/bkonkle/ignore-styles/issues"},"homepage":"https://github.com/bkonkle/ignore-styles#readme","_id":"ignore-styles@5.0.1","_shasum":"b49ef2274bdafcd8a4880a966bfe38d1a0bf4671","_from":".","_npmVersion":"3.10.5","_nodeVersion":"6.2.2","_npmUser":{"name":"bkonkle","email":"brandon@konkle.us"},"dist":{"shasum":"b49ef2274bdafcd8a4880a966bfe38d1a0bf4671","size":5387,"noattachment":false,"key":"/ignore-styles/-/ignore-styles-5.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/ignore-styles/download/ignore-styles-5.0.1.tgz"},"maintainers":[{"name":"bkonkle","email":"brandon@konkle.us"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/ignore-styles-5.0.1.tgz_1472251472034_0.9373296436388046"},"directories":{},"publish_time":1472251473136,"_hasShrinkwrap":false,"_cnpm_publish_time":1472251473136,"_cnpmcore_publish_time":"2021-12-17T13:25:36.946Z"},"5.0.0":{"name":"ignore-styles","version":"5.0.0","description":"Ignore imported style files when running in Node","main":"lib/ignore-styles.js","scripts":{"test":"standard ignore-styles.js && mocha --require babel-register","build":"babel ignore-styles.js -s -o lib/ignore-styles.js","watch":"babel ignore-styles.js -s -o lib/ignore-styles.js -w","prepublish":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/bkonkle/ignore-styles.git"},"author":{"name":"Brandon Konkle","email":"brandon@konkle.us"},"license":"MIT","keywords":["webpack","css","testing"],"devDependencies":{"babel-cli":"^6.3.17","babel-plugin-transform-object-assign":"^6.3.13","babel-preset-es2015-loose":"^6.1.3","babel-preset-react":"^6.3.13","babel-register":"^6.3.13","chai":"^3.4.1","mocha":"^2.3.3","standard":"^7.1.2"},"gitHead":"3049750e6b80f791feb1bf3dcfd09166579b517f","bugs":{"url":"https://github.com/bkonkle/ignore-styles/issues"},"homepage":"https://github.com/bkonkle/ignore-styles#readme","_id":"ignore-styles@5.0.0","_shasum":"c8348c4aff6809eafe0f810b9ab9010cdbfbca81","_from":".","_npmVersion":"3.10.5","_nodeVersion":"6.2.2","_npmUser":{"name":"bkonkle","email":"brandon@konkle.us"},"dist":{"shasum":"c8348c4aff6809eafe0f810b9ab9010cdbfbca81","size":5370,"noattachment":false,"key":"/ignore-styles/-/ignore-styles-5.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ignore-styles/download/ignore-styles-5.0.0.tgz"},"maintainers":[{"name":"bkonkle","email":"brandon@konkle.us"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/ignore-styles-5.0.0.tgz_1472251293072_0.7434196164831519"},"directories":{},"publish_time":1472251295008,"_hasShrinkwrap":false,"_cnpm_publish_time":1472251295008,"_cnpmcore_publish_time":"2021-12-17T13:25:37.308Z"},"4.0.0":{"name":"ignore-styles","version":"4.0.0","description":"Ignore imported style files when running in Node","main":"lib/ignore-styles.js","scripts":{"test":"standard ignore-styles.js && mocha --require babel-register","build":"babel ignore-styles.js -s -o lib/ignore-styles.js","watch":"babel ignore-styles.js -s -o lib/ignore-styles.js -w","prepublish":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/bkonkle/ignore-styles.git"},"author":{"name":"Brandon Konkle","email":"brandon@konkle.us"},"license":"MIT","keywords":["webpack","css","testing"],"devDependencies":{"babel-cli":"^6.3.17","babel-plugin-transform-object-assign":"^6.3.13","babel-preset-es2015-loose":"^6.1.3","babel-preset-react":"^6.3.13","babel-register":"^6.3.13","chai":"^3.4.1","mocha":"^2.3.3","standard":"^7.1.2"},"gitHead":"9038762ab9d719e649e63f89d62b347b163dd8aa","bugs":{"url":"https://github.com/bkonkle/ignore-styles/issues"},"homepage":"https://github.com/bkonkle/ignore-styles#readme","_id":"ignore-styles@4.0.0","_shasum":"b1b5bd1ffce13dd38659b63b6d0d0fea58fea962","_from":".","_npmVersion":"3.9.5","_nodeVersion":"6.2.1","_npmUser":{"name":"bkonkle","email":"brandon@konkle.us"},"dist":{"shasum":"b1b5bd1ffce13dd38659b63b6d0d0fea58fea962","size":5328,"noattachment":false,"key":"/ignore-styles/-/ignore-styles-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ignore-styles/download/ignore-styles-4.0.0.tgz"},"maintainers":[{"name":"bkonkle","email":"brandon@konkle.us"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/ignore-styles-4.0.0.tgz_1465869716010_0.612958945101127"},"directories":{},"publish_time":1465869720451,"_hasShrinkwrap":false,"_cnpm_publish_time":1465869720451,"_cnpmcore_publish_time":"2021-12-17T13:25:37.498Z"},"3.0.0":{"name":"ignore-styles","version":"3.0.0","description":"Ignore imported style files when running in Node","main":"lib/ignore-styles.js","scripts":{"test":"mocha --require babel-register","build":"babel ignore-styles.js -s -o lib/ignore-styles.js","watch":"babel ignore-styles.js -s -o lib/ignore-styles.js -w","prepublish":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/bkonkle/ignore-styles.git"},"author":{"name":"Brandon Konkle","email":"brandon@konkle.us"},"license":"MIT","keywords":["webpack","css","testing"],"devDependencies":{"babel-cli":"^6.3.17","babel-eslint":"^4.1.6","babel-plugin-transform-object-assign":"^6.3.13","babel-preset-es2015-loose":"^6.1.3","babel-preset-react":"^6.3.13","babel-register":"^6.3.13","chai":"^3.4.1","eslint":"^1.10.3","eslint-config-ecliptic":"^1.5.0","mocha":"^2.3.3"},"gitHead":"65d9d4978f6938b53c1ed3ca18ed06230dcae975","bugs":{"url":"https://github.com/bkonkle/ignore-styles/issues"},"homepage":"https://github.com/bkonkle/ignore-styles#readme","_id":"ignore-styles@3.0.0","_shasum":"327060d2e8c3c9c7ac18386ac1ba88bda0c81964","_from":".","_npmVersion":"3.9.5","_nodeVersion":"6.2.1","_npmUser":{"name":"bkonkle","email":"brandon@konkle.us"},"dist":{"shasum":"327060d2e8c3c9c7ac18386ac1ba88bda0c81964","size":5223,"noattachment":false,"key":"/ignore-styles/-/ignore-styles-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ignore-styles/download/ignore-styles-3.0.0.tgz"},"maintainers":[{"name":"bkonkle","email":"brandon@konkle.us"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/ignore-styles-3.0.0.tgz_1465445643848_0.5605592769570649"},"directories":{},"publish_time":1465445647376,"_hasShrinkwrap":false,"_cnpm_publish_time":1465445647376,"_cnpmcore_publish_time":"2021-12-17T13:25:38.069Z"},"2.0.0":{"name":"ignore-styles","version":"2.0.0","description":"Ignore imported style files when running in Node","main":"lib/ignore-styles.js","scripts":{"test":"mocha --require babel-register","build":"babel ignore-styles.js -s -o lib/ignore-styles.js","watch":"babel ignore-styles.js -s -o lib/ignore-styles.js -w","prepublish":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/bkonkle/ignore-styles.git"},"author":{"name":"Brandon Konkle","email":"brandon@konkle.us"},"license":"MIT","keywords":["webpack","css","testing"],"devDependencies":{"babel-cli":"^6.3.17","babel-eslint":"^4.1.6","babel-plugin-transform-object-assign":"^6.3.13","babel-preset-es2015-loose":"^6.1.3","babel-preset-react":"^6.3.13","babel-register":"^6.3.13","chai":"^3.4.1","eslint":"^1.10.3","eslint-config-ecliptic":"^1.5.0","mocha":"^2.3.3"},"gitHead":"8be5aca74b565289eee9bb420acb5bb36d124c6d","bugs":{"url":"https://github.com/bkonkle/ignore-styles/issues"},"homepage":"https://github.com/bkonkle/ignore-styles#readme","_id":"ignore-styles@2.0.0","_shasum":"456f06505ec6a43a1478bf99c6993aed75e5aad5","_from":".","_npmVersion":"3.8.3","_nodeVersion":"5.10.0","_npmUser":{"name":"bkonkle","email":"brandon@konkle.us"},"dist":{"shasum":"456f06505ec6a43a1478bf99c6993aed75e5aad5","size":5315,"noattachment":false,"key":"/ignore-styles/-/ignore-styles-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ignore-styles/download/ignore-styles-2.0.0.tgz"},"maintainers":[{"name":"bkonkle","email":"brandon@konkle.us"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/ignore-styles-2.0.0.tgz_1463055709780_0.20695000886917114"},"directories":{},"publish_time":1463055710235,"_hasShrinkwrap":false,"_cnpm_publish_time":1463055710235,"_cnpmcore_publish_time":"2021-12-17T13:25:38.245Z"},"1.2.0":{"name":"ignore-styles","version":"1.2.0","description":"Ignore imported style files when running in Node","main":"lib/ignore-styles.js","scripts":{"test":"mocha --require babel-register","build":"babel ignore-styles.js -s -o lib/ignore-styles.js","watch":"babel ignore-styles.js -s -o lib/ignore-styles.js -w","prepublish":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/bkonkle/ignore-styles.git"},"author":{"name":"Brandon Konkle","email":"brandon@konkle.us"},"license":"MIT","keywords":["webpack","css","testing"],"devDependencies":{"babel-cli":"^6.3.17","babel-eslint":"^4.1.6","babel-plugin-transform-object-assign":"^6.3.13","babel-preset-es2015-loose":"^6.1.3","babel-preset-react":"^6.3.13","babel-register":"^6.3.13","chai":"^3.4.1","eslint":"^1.10.3","eslint-config-ecliptic":"^1.5.0","mocha":"^2.3.3"},"gitHead":"225500b6858f54cb93b0c3da5f600172c84b68b8","bugs":{"url":"https://github.com/bkonkle/ignore-styles/issues"},"homepage":"https://github.com/bkonkle/ignore-styles#readme","_id":"ignore-styles@1.2.0","_shasum":"6bbfbaae7d7addf9f9a0b225310cd56f5d980d61","_from":".","_npmVersion":"3.5.2","_nodeVersion":"5.1.0","_npmUser":{"name":"bkonkle","email":"brandon@konkle.us"},"dist":{"shasum":"6bbfbaae7d7addf9f9a0b225310cd56f5d980d61","size":4710,"noattachment":false,"key":"/ignore-styles/-/ignore-styles-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ignore-styles/download/ignore-styles-1.2.0.tgz"},"maintainers":[{"name":"bkonkle","email":"brandon@konkle.us"}],"directories":{},"publish_time":1450214544646,"_hasShrinkwrap":false,"_cnpm_publish_time":1450214544646,"_cnpmcore_publish_time":"2021-12-17T13:25:38.456Z"},"1.1.0":{"name":"ignore-styles","version":"1.1.0","description":"Ignore imported style files when running in Node","main":"lib/ignore-styles.js","scripts":{"test":"mocha --require babel-register","build":"babel ignore-styles.js -s -o lib/ignore-styles.js","watch":"babel ignore-styles.js -s -o lib/ignore-styles.js -w","prepublish":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/bkonkle/ignore-styles.git"},"author":{"name":"Brandon Konkle","email":"brandon@konkle.us"},"license":"MIT","keywords":["webpack","css","testing"],"devDependencies":{"babel-cli":"^6.3.17","babel-eslint":"^4.1.6","babel-plugin-transform-object-assign":"^6.3.13","babel-preset-es2015-loose":"^6.1.3","babel-preset-react":"^6.3.13","babel-register":"^6.3.13","chai":"^3.4.1","eslint":"^1.10.3","eslint-config-ecliptic":"^1.5.0","mocha":"^2.3.3"},"gitHead":"02297248d078f35e1a4f5fe3cf52be90cce27c34","bugs":{"url":"https://github.com/bkonkle/ignore-styles/issues"},"homepage":"https://github.com/bkonkle/ignore-styles#readme","_id":"ignore-styles@1.1.0","_shasum":"ad3e34c6dda96e767ae02e723fca29a907f6deb4","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.1.0","_npmUser":{"name":"bkonkle","email":"brandon@konkle.us"},"dist":{"shasum":"ad3e34c6dda96e767ae02e723fca29a907f6deb4","size":4337,"noattachment":false,"key":"/ignore-styles/-/ignore-styles-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ignore-styles/download/ignore-styles-1.1.0.tgz"},"maintainers":[{"name":"bkonkle","email":"brandon@konkle.us"}],"directories":{},"publish_time":1449836253700,"_hasShrinkwrap":false,"_cnpm_publish_time":1449836253700,"_cnpmcore_publish_time":"2021-12-17T13:25:38.667Z"},"1.0.3":{"name":"ignore-styles","version":"1.0.3","description":"Ignore imported style files when running in Node","main":"lib/ignore-styles.js","scripts":{"test":"mocha --compilers js:babel-register","build":"babel ignore-styles.js -s -o lib/ignore-styles.js","watch":"babel ignore-styles.js -s -o lib/ignore-styles.js -w","prepublish":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/bkonkle/ignore-styles.git"},"author":{"name":"Brandon Konkle","email":"brandon@konkle.us"},"license":"MIT","keywords":["webpack","css","testing"],"devDependencies":{"babel-cli":"^6.2.0","babel-eslint":"^4.1.5","babel-plugin-transform-object-assign":"^6.1.18","babel-preset-es2015-loose":"^6.1.2","babel-preset-react":"^6.1.18","babel-register":"^6.2.0","chai":"^3.4.1","eslint":"^1.9.0","eslint-config-ecliptic":"^1.2.1","mocha":"^2.3.3"},"gitHead":"47404bcb612733213df7a9c3a3232a95e7278b32","bugs":{"url":"https://github.com/bkonkle/ignore-styles/issues"},"homepage":"https://github.com/bkonkle/ignore-styles#readme","_id":"ignore-styles@1.0.3","_shasum":"7bb9186b6a6bb1cdf537af8431c91ee44f9c8a35","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.2","_npmUser":{"name":"bkonkle","email":"brandon@konkle.us"},"dist":{"shasum":"7bb9186b6a6bb1cdf537af8431c91ee44f9c8a35","size":4421,"noattachment":false,"key":"/ignore-styles/-/ignore-styles-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/ignore-styles/download/ignore-styles-1.0.3.tgz"},"maintainers":[{"name":"bkonkle","email":"brandon@konkle.us"}],"directories":{},"publish_time":1448005098805,"_hasShrinkwrap":false,"_cnpm_publish_time":1448005098805,"_cnpmcore_publish_time":"2021-12-17T13:25:38.863Z"},"1.0.2":{"name":"ignore-styles","version":"1.0.2","description":"Ignore imported style files when running in Node","main":"lib/ignore-styles.js","scripts":{"test":"mocha --compilers js:babel-register","build":"babel ignore-styles.js -s -o lib/ignore-styles.js","prepublish":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/bkonkle/ignore-styles.git"},"author":{"name":"Brandon Konkle","email":"brandon@konkle.us"},"license":"MIT","devDependencies":{"babel-cli":"^6.2.0","babel-eslint":"^4.1.5","babel-plugin-transform-object-assign":"^6.1.18","babel-preset-es2015-loose":"^6.1.2","babel-preset-react":"^6.1.18","babel-register":"^6.2.0","chai":"^3.4.1","eslint":"^1.9.0","eslint-config-ecliptic":"^1.2.1","mocha":"^2.3.3"},"gitHead":"18ef790a168ec3053fa1039a781033b1c3cc8573","bugs":{"url":"https://github.com/bkonkle/ignore-styles/issues"},"homepage":"https://github.com/bkonkle/ignore-styles#readme","_id":"ignore-styles@1.0.2","_shasum":"b47620b59bee81a94ab3d8cf9438d57852df96cc","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.1.0","_npmUser":{"name":"bkonkle","email":"brandon@konkle.us"},"dist":{"shasum":"b47620b59bee81a94ab3d8cf9438d57852df96cc","size":4453,"noattachment":false,"key":"/ignore-styles/-/ignore-styles-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/ignore-styles/download/ignore-styles-1.0.2.tgz"},"maintainers":[{"name":"bkonkle","email":"brandon@konkle.us"}],"directories":{},"publish_time":1447969913190,"_hasShrinkwrap":false,"_cnpm_publish_time":1447969913190,"_cnpmcore_publish_time":"2021-12-17T13:25:39.070Z"},"1.0.1":{"name":"ignore-styles","version":"1.0.1","description":"Ignore imported style files when running in Node","scripts":{"test":"mocha --compilers js:babel-register","build":"babel ignore-styles.js -s -o lib/ignore-styles.js","prepublish":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/bkonkle/ignore-styles.git"},"author":{"name":"Brandon Konkle","email":"brandon@konkle.us"},"license":"MIT","devDependencies":{"babel-cli":"^6.2.0","babel-eslint":"^4.1.5","babel-plugin-transform-object-assign":"^6.1.18","babel-preset-es2015-loose":"^6.1.2","babel-preset-react":"^6.1.18","babel-register":"^6.2.0","chai":"^3.4.1","eslint":"^1.9.0","eslint-config-ecliptic":"^1.2.1","mocha":"^2.3.3"},"gitHead":"c32cd5d1782c521ee7f009e6902791e4fcd8c997","bugs":{"url":"https://github.com/bkonkle/ignore-styles/issues"},"homepage":"https://github.com/bkonkle/ignore-styles#readme","_id":"ignore-styles@1.0.1","_shasum":"da1e9dd26f6dc272e049961628738e57ae312e0e","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.1.0","_npmUser":{"name":"bkonkle","email":"brandon@konkle.us"},"dist":{"shasum":"da1e9dd26f6dc272e049961628738e57ae312e0e","size":4388,"noattachment":false,"key":"/ignore-styles/-/ignore-styles-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/ignore-styles/download/ignore-styles-1.0.1.tgz"},"maintainers":[{"name":"bkonkle","email":"brandon@konkle.us"}],"directories":{},"publish_time":1447969376465,"_hasShrinkwrap":false,"_cnpm_publish_time":1447969376465,"_cnpmcore_publish_time":"2021-12-17T13:25:39.283Z"},"1.0.0":{"name":"ignore-styles","version":"1.0.0","description":"Ignore imported style files when running in Node","scripts":{"test":"mocha --compilers js:babel-register","build":"babel ignore-styles.js -s -o lib/ignore-styles.js","prepublish":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/bkonkle/ignore-styles.git"},"author":{"name":"Brandon Konkle","email":"brandon@konkle.us"},"license":"MIT","devDependencies":{"babel-cli":"^6.2.0","babel-eslint":"^4.1.5","babel-plugin-transform-object-assign":"^6.1.18","babel-preset-es2015-loose":"^6.1.2","babel-preset-react":"^6.1.18","babel-register":"^6.2.0","chai":"^3.4.1","eslint":"^1.9.0","eslint-config-ecliptic":"^1.2.1","mocha":"^2.3.3"},"gitHead":"7887503982df9ce4b1f2f5bcdc05b06fe6c5a2bf","bugs":{"url":"https://github.com/bkonkle/ignore-styles/issues"},"homepage":"https://github.com/bkonkle/ignore-styles#readme","_id":"ignore-styles@1.0.0","_shasum":"378a7e50b2646cd6a2136e9f64a39e1f29684469","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.1.0","_npmUser":{"name":"bkonkle","email":"brandon@konkle.us"},"dist":{"shasum":"378a7e50b2646cd6a2136e9f64a39e1f29684469","size":3496,"noattachment":false,"key":"/ignore-styles/-/ignore-styles-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ignore-styles/download/ignore-styles-1.0.0.tgz"},"maintainers":[{"name":"bkonkle","email":"brandon@konkle.us"}],"directories":{},"publish_time":1447968334017,"_hasShrinkwrap":false,"_cnpm_publish_time":1447968334017,"_cnpmcore_publish_time":"2021-12-17T13:25:39.461Z"}},"readme":"# ignore-styles\n\n[![Version][version-svg]][package-url] [![Build Status][travis-svg]][travis-url] [![License][license-image]][license-url] [![Downloads][downloads-image]][downloads-url] [![Standard][standard-svg]][standard-url]\n\nA `babel/register` style hook to ignore style imports when running in Node. This\nis for projects that use something like Webpack to enable CSS imports in\nJavaScript. When you try to run the project in Node (to test in Mocha, for\nexample) you'll see errors like this:\n\n    SyntaxError: /Users/brandon/code/my-project/src/components/my-component/style.sass: Unexpected token (1:0)\n    > 1 | .title\n    | ^\n    2 |   font-family: serif\n    3 |   font-size: 10em\n    4 |\n\nTo resolve this, require `ignore-styles` with your mocha tests:\n\n    mocha --require ignore-styles\n\nSee [DEFAULT_EXTENSIONS][default-extensions] for the full list of extensions\nignored, and send a pull request if you need more.\n\n**Note:** This is not for use *inside* Webpack. If you want to ignore extensions in Webpack you'll want to use a loader like [ignore-loader]. This is for use in Node outside of your normal Webpack build.\n\n## Installation\n\n    $ npm install --save-dev ignore-styles\n\n## More Examples\n\nTo use this with multiple Mocha requires:\n\n    mocha --require babel-register --require ignore-styles\n\nYou can also use it just like `babel/register`:\n\n```js\nimport 'ignore-styles'\n```\n\nIn ES5:\n\n```js\nrequire('ignore-styles')\n```\n\nTo customize the extensions used:\n\n```js\nimport register from 'ignore-styles'\nregister(['.sass', '.scss'])\n```\n\nTo customize the extensions in ES5:\n\n```js\nrequire('ignore-styles').default(['.sass', '.scss']);\n```\n\n## Custom handler\n\nBy default, a no-op handler is used that doesn't actually do anything. If you'd\nlike to substitute your own custom handler to do fancy things, pass it as a\nsecond argument:\n\n```js\nimport register from 'ignore-styles'\nregister(undefined, () => ({styleName: 'fake_class_name'}))\n```\n\nThe first argument to `register` is the list of extensions to handle. Leaving it\nundefined, as above, uses the default list. The handler function receives two arguments, `module` and `filename`, directly\nfrom Node.\n\nWhy is this useful? One example is when using something like\n[react-css-modules][react-css-modules]. You need the style imports to actually\nreturn something so that you can test the components, or the wrapper component\nwill throw an error. Use this to provide test class names.\n\nAnother use case would be to simply return the filename of an image so that it\ncan be verified in unit tests:\n\n```js\nconst _ = require('lodash');\nconst path = require('path');\n\nregister(undefined, (module, filename) => {\n  if (_.some(['.png', '.jpg'], ext => filename.endsWith(ext))) {\n    module.exports = path.basename(filename);\n  }\n})\n```\n\nIf the filename ends in '.png' or '.jpg', then the basename of the file is\nreturned as the value of the module on import.\n\n## License\n\nThe MIT License (MIT)\n\nCopyright (c) 2015 Brainspace Corporation\n\n[travis-svg]: https://img.shields.io/travis/bkonkle/ignore-styles/master.svg?style=flat-square\n[travis-url]: https://travis-ci.org/bkonkle/ignore-styles\n[license-image]: http://img.shields.io/badge/license-MIT-green.svg?style=flat-square\n[license-url]: LICENSE\n[downloads-image]: https://img.shields.io/npm/dm/ignore-styles.svg?style=flat-square\n[downloads-url]: http://npm-stat.com/charts.html?package=ignore-styles\n[version-svg]: https://img.shields.io/npm/v/ignore-styles.svg?style=flat-square\n[package-url]: https://npmjs.org/package/ignore-styles\n[standard-svg]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square\n[standard-url]: http://standardjs.com/\n[default-extensions]: https://github.com/bkonkle/ignore-styles/blob/master/ignore-styles.js#L1\n[react-css-modules]: https://github.com/gajus/react-css-modules\n[ignore-loader]: https://www.npmjs.com/package/ignore-loader\n","_attachments":{},"homepage":"https://github.com/bkonkle/ignore-styles#readme","bugs":{"url":"https://github.com/bkonkle/ignore-styles/issues"},"license":"MIT"}