{"_id":"responsive-filenames","_rev":"75-86cd385152fbdc2a30e0194a8f354af0","name":"responsive-filenames","dist-tags":{"latest":"1.2.2"},"versions":{"1.0.0":{"name":"responsive-filenames","version":"1.0.0","author":{"name":"New York Media"},"license":"MIT","_id":"responsive-filenames@1.0.0","maintainers":[{"name":"yoshokatana","email":"nelson@keats.me"}],"homepage":"https://github.com/nymag/responsive-filenames","bugs":{"url":"https://github.com/nymag/responsive-filenames/issues"},"bin":{"responsive-filenames":"lib/cli.js"},"dist":{"shasum":"e58e790d5e81f96d3333a36fcf6829bf422163c4","tarball":"https://registry.npmjs.org/responsive-filenames/-/responsive-filenames-1.0.0.tgz","integrity":"sha512-7cpRG8Cek7caGv9JwMy0ZtefDnf6PRiQamk9ZeBfQBba5ovffs7tm/UIWFggXKZb7PD7SuiDIYzDHsagofbhNQ==","signatures":[{"sig":"MEUCIAMtf25gbLqnA3cSNyMu/n4nOEjdY1sq4P/um0jo9ynOAiEAkXTdsDXKGB02AgGVo9XAR+XjhUufAu8/HwmP41WZlZM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"e58e790d5e81f96d3333a36fcf6829bf422163c4","gitHead":"fe0735e3663f4c6a004ec1ddadf8d231e1ffbce2","scripts":{"test":"mocha"},"_npmUser":{"name":"yoshokatana","email":"nelson@keats.me"},"repository":{"url":"https://github.com/nymag/responsive-filenames.git","type":"git"},"_npmVersion":"2.7.1","description":"Easy CSS Breakpoints","directories":{"test":"test"},"_nodeVersion":"1.6.1","dependencies":{"chalk":"^1.0.0","yargs":"^3.6.0","lodash":"^3.6.0","vinyl-fs":"^1.0.0","gulp-util":"^3.0.4","vinyl-map":"^1.0.1","gulp-concat":"^2.5.2","gulp-ignore":"^1.2.1"},"devDependencies":{"chai":"^2.2.0","mocha":"^2.2.1"}},"1.0.2":{"name":"responsive-filenames","version":"1.0.2","author":{"name":"New York Media"},"license":"MIT","_id":"responsive-filenames@1.0.2","maintainers":[{"name":"yoshokatana","email":"nelson@keats.me"}],"homepage":"https://github.com/nymag/responsive-filenames","bugs":{"url":"https://github.com/nymag/responsive-filenames/issues"},"bin":{"responsive-filenames":"lib/cli.js"},"dist":{"shasum":"a3346b78ff1e79493f5f9622836445b876d233ed","tarball":"https://registry.npmjs.org/responsive-filenames/-/responsive-filenames-1.0.2.tgz","integrity":"sha512-u52WG2hUF9KPKufFpJDLdYs0CapgYwhEJCCwQ2tUJWPXx69qTfWXc3iQ/a1iS3GGosMze65kIam/+ghJCmmeaw==","signatures":[{"sig":"MEQCIC71H1bBtmwLuvNqQdbAhhw8nNVrWbQJcyzIgh4e0jOpAiBc9dQmA13kifxpZ+KbwODNv5H3JAeKGGSC6U8QNEk2gw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"a3346b78ff1e79493f5f9622836445b876d233ed","gitHead":"6e6f14498cd558475789fa0b86cdc6fd0a7d5fd8","scripts":{"test":"mocha"},"_npmUser":{"name":"yoshokatana","email":"nelson@keats.me"},"repository":{"url":"https://github.com/nymag/responsive-filenames.git","type":"git"},"_npmVersion":"2.7.1","description":"Easy CSS Breakpoints","directories":{"test":"test"},"_nodeVersion":"1.6.1","dependencies":{"chalk":"^1.0.0","yargs":"^3.6.0","lodash":"^3.6.0","vinyl-fs":"^1.0.0","gulp-util":"^3.0.4","vinyl-map":"^1.0.1","gulp-concat":"^2.5.2","gulp-ignore":"^1.2.1"},"devDependencies":{"chai":"^2.2.0","mocha":"^2.2.1"}},"1.0.3":{"name":"responsive-filenames","version":"1.0.3","author":{"name":"New York Media"},"license":"MIT","_id":"responsive-filenames@1.0.3","maintainers":[{"name":"yoshokatana","email":"nelson@keats.me"},{"name":"nymdev","email":"nymdev@nymag.com"}],"homepage":"https://github.com/nymag/responsive-filenames","bugs":{"url":"https://github.com/nymag/responsive-filenames/issues"},"bin":{"responsive-filenames":"lib/cli.js"},"dist":{"shasum":"59c0578422e671fc8c0c8d2a88f831f2f144c5d5","tarball":"https://registry.npmjs.org/responsive-filenames/-/responsive-filenames-1.0.3.tgz","integrity":"sha512-ggc/+FSTKIPXeuEXYm8OIVdgcF3rSpC2TD83H1r+NPteDYqREEEsQF/uj2cpjO91lxpBvIMNhEDkSJ8C5AfENA==","signatures":[{"sig":"MEUCIFXAXRW7lF+1Se1eb7cSQphfqAJ4YUlNvFUlyw0YLl9dAiEAj0z3TzzpFA1+D/2dIe1Df4BjIGfKEIDzuVrJIPFV024=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"59c0578422e671fc8c0c8d2a88f831f2f144c5d5","gitHead":"d3f7114cbff14215b136ca8f0d46006ae0846d9e","scripts":{"test":"mocha"},"_npmUser":{"name":"yoshokatana","email":"nelson@keats.me"},"repository":{"url":"https://github.com/nymag/responsive-filenames.git","type":"git"},"_npmVersion":"2.7.1","description":"Easy CSS Breakpoints","directories":{"test":"test"},"_nodeVersion":"1.6.1","dependencies":{"chalk":"^1.0.0","yargs":"^3.6.0","lodash":"^3.6.0","vinyl-fs":"^1.0.0","gulp-util":"^3.0.4","vinyl-map":"^1.0.1","gulp-concat":"^2.5.2","gulp-ignore":"^1.2.1"},"devDependencies":{"chai":"^2.2.0","mocha":"^2.2.1"}},"1.1.0":{"name":"responsive-filenames","version":"1.1.0","author":{"name":"New York Media"},"license":"MIT","_id":"responsive-filenames@1.1.0","maintainers":[{"name":"yoshokatana","email":"nelson@keats.me"},{"name":"nymdev","email":"nymdev@nymag.com"}],"homepage":"https://github.com/nymag/responsive-filenames","bugs":{"url":"https://github.com/nymag/responsive-filenames/issues"},"bin":{"responsive-filenames":"lib/cli.js"},"dist":{"shasum":"5911fb47e547b0bef9cb14f526b2940ba3064512","tarball":"https://registry.npmjs.org/responsive-filenames/-/responsive-filenames-1.1.0.tgz","integrity":"sha512-wgvjDfGX4e3Aj8s1LCnrh+R0fuWIMBsVsJww+ydx8oNcPywnqjIvRt6jjPvPCgE6kBu7R9PXJl4U5xMPtpLwDg==","signatures":[{"sig":"MEQCIEZNjpxReg72scxdwliEIMumKnU4boNgMQuagrVJoB1KAiB8PLid9qcUEsyseaDq7hmpDSSRQkTYY+yqGQqDt/pKMg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"5911fb47e547b0bef9cb14f526b2940ba3064512","gitHead":"9ee7ef947ce19c6afdbf7861cae5ab51b336d3ef","scripts":{"test":"mocha"},"_npmUser":{"name":"yoshokatana","email":"nelson@keats.me"},"repository":{"url":"https://github.com/nymag/responsive-filenames.git","type":"git"},"_npmVersion":"2.5.1","description":"Easy CSS Breakpoints","directories":{"test":"test"},"_nodeVersion":"0.12.0","dependencies":{"chalk":"^1.0.0","yargs":"^3.6.0","lodash":"^3.6.0","vinyl-fs":"^1.0.0","gulp-util":"^3.0.4","vinyl-map":"^1.0.1","gulp-concat":"^2.5.2","gulp-ignore":"^1.2.1"},"devDependencies":{"chai":"^2.2.0","mocha":"^2.2.1","sinon":"^1.14.1"}},"1.2.0":{"name":"responsive-filenames","version":"1.2.0","author":{"name":"New York Media"},"license":"MIT","_id":"responsive-filenames@1.2.0","maintainers":[{"name":"yoshokatana","email":"nelson@keats.me"},{"name":"nymdev","email":"nymdev@nymag.com"}],"homepage":"https://github.com/nymag/responsive-filenames","bugs":{"url":"https://github.com/nymag/responsive-filenames/issues"},"bin":{"responsive-filenames":"lib/cli.js"},"dist":{"shasum":"2987119e8da2cd6d058b35a4e85c879a80062573","tarball":"https://registry.npmjs.org/responsive-filenames/-/responsive-filenames-1.2.0.tgz","integrity":"sha512-8/JzUdZXRiRY9dhXtM3/IMv3ZRbxXY+OLHp9N3MpshFjYOBzzQyXLYGGWxkyrRU/FJn3vG4iV2oh1OtZaZADaA==","signatures":[{"sig":"MEUCIQD9N5EZr13/SIdHMcSdJ8u3Y/jC7L+cBcQwEeI/EJsYogIgenktKb8coQ1FUSbghjzNKVVxVxP8S1AVtlR+Sc9rsTA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"2987119e8da2cd6d058b35a4e85c879a80062573","gitHead":"8b5c11d9670b3135176b09141df9bdaf0f90858e","scripts":{"test":"mocha"},"_npmUser":{"name":"yoshokatana","email":"nelson@keats.me"},"repository":{"url":"https://github.com/nymag/responsive-filenames.git","type":"git"},"_npmVersion":"2.5.1","description":"Easy CSS Breakpoints","directories":{"test":"test"},"_nodeVersion":"0.12.0","dependencies":{"chalk":"^1.0.0","yargs":"^3.6.0","lodash":"^3.6.0","vinyl-fs":"^1.0.0","gulp-util":"^3.0.4","vinyl-map":"^1.0.1","gulp-concat":"^2.5.2","gulp-ignore":"^1.2.1"},"devDependencies":{"chai":"^2.2.0","mocha":"^2.2.1","sinon":"^1.14.1"}},"1.2.1":{"name":"responsive-filenames","version":"1.2.1","author":{"name":"New York Media"},"license":"MIT","_id":"responsive-filenames@1.2.1","maintainers":[{"name":"yoshokatana","email":"nelson@keats.me"},{"name":"nymdev","email":"nymdev@nymag.com"}],"homepage":"https://github.com/nymag/responsive-filenames","bugs":{"url":"https://github.com/nymag/responsive-filenames/issues"},"bin":{"responsive-filenames":"lib/cli.js"},"dist":{"shasum":"42c95c8da1694e9edf63b718121c72d5140cb143","tarball":"https://registry.npmjs.org/responsive-filenames/-/responsive-filenames-1.2.1.tgz","integrity":"sha512-HD8D24KDcKzUbkgnNPyJwWCDPgXv64oyUO8cymRqodTpXRwF0L7jk0awyKkWORWmvNyXeVZVKq72HmbNFp91yA==","signatures":[{"sig":"MEYCIQCzeTmhTgiIzZPDHHeLInYSoF/TCYSAgB1P4xARvFW5tQIhAJx98eX2tH5U4Y9c5U4y5fl7yNgdwYAbQnYJQ0oNQYw6","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"42c95c8da1694e9edf63b718121c72d5140cb143","gitHead":"9e4dfff5046a52eeaa1360facf951e9cb84d0229","scripts":{"test":"mocha"},"_npmUser":{"name":"nymdev","email":"nymdev@nymag.com"},"repository":{"url":"git+https://github.com/nymag/responsive-filenames.git","type":"git"},"_npmVersion":"2.14.2","description":"Easy CSS Breakpoints","directories":{"test":"test"},"_nodeVersion":"4.0.0","dependencies":{"chalk":"^1.0.0","yargs":"^3.6.0","lodash":"^3.6.0","vinyl-fs":"^2.2.1","gulp-util":"^3.0.4","vinyl-map":"^1.0.1","gulp-concat":"^2.5.2","gulp-ignore":"^2.0.1"},"devDependencies":{"chai":"^3.4.1","mocha":"^2.2.1","sinon":"^1.14.1"}},"1.2.2":{"name":"responsive-filenames","version":"1.2.2","author":{"name":"New York Media"},"license":"MIT","_id":"responsive-filenames@1.2.2","maintainers":[{"name":"danestuckel","email":"danestuckel@gmail.com"},{"name":"gloddy","email":"c@gloddy.com"},{"name":"nymdev","email":"nymdev@nymag.com"},{"name":"yoshokatana","email":"nelson@keats.me"}],"homepage":"https://github.com/nymag/responsive-filenames","bugs":{"url":"https://github.com/nymag/responsive-filenames/issues"},"bin":{"responsive-filenames":"lib/cli.js"},"dist":{"shasum":"60484eea505f53213cd58cc356d0a2b5d6d765d3","tarball":"https://registry.npmjs.org/responsive-filenames/-/responsive-filenames-1.2.2.tgz","integrity":"sha512-QaI0595ImPrSWzLyCvvaE+L5l5pCPpIrXDCLPmdZ750y7/Q/zduCgOC2IgDJPqEPISDv1VX29xaF0a26wQRRrw==","signatures":[{"sig":"MEQCICzglj9oVkWM3l5oZp59caWeqS3RyjXB+JTg7NFXHPVVAiAGabWJU1MF2LRLzWP55rZkJUAxaRgsQpKmyyt2RcFUuA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"60484eea505f53213cd58cc356d0a2b5d6d765d3","gitHead":"9e4266bbf4e9c3ce3beaf55f8cf45b95c00416ec","scripts":{"test":"mocha"},"_npmUser":{"name":"ughitsaaron","email":"hello@aaronpetcoff.me"},"repository":{"url":"git+https://github.com/nymag/responsive-filenames.git","type":"git"},"_npmVersion":"3.5.0","description":"Easy CSS Breakpoints","directories":{"test":"test"},"_nodeVersion":"4.2.3","dependencies":{"chalk":"^1.0.0","yargs":"^3.6.0","lodash":"^4.2.1","vinyl-fs":"^2.2.1","gulp-util":"^3.0.4","vinyl-map":"^1.0.1","gulp-concat":"^2.5.2","gulp-ignore":"^2.0.1"},"devDependencies":{"chai":"^3.4.1","mocha":"^2.2.1","sinon":"^1.14.1"},"_npmOperationalInternal":{"tmp":"tmp/responsive-filenames-1.2.2.tgz_1456428954744_0.38199113262817264","host":"packages-5-east.internal.npmjs.com"}}},"time":{"created":"2015-03-30T17:30:16.417Z","modified":"2026-09-22T21:37:48.024Z","1.0.0":"2015-03-30T17:30:16.417Z","1.0.2":"2015-03-30T17:37:15.484Z","1.0.3":"2015-03-30T17:42:58.524Z","1.1.0":"2015-04-13T19:59:37.068Z","1.2.0":"2015-04-15T15:10:43.077Z","1.2.1":"2015-12-09T14:46:28.073Z","1.2.2":"2016-02-25T19:35:55.971Z"},"bugs":{"url":"https://github.com/nymag/responsive-filenames/issues"},"author":{"name":"New York Media"},"license":"MIT","homepage":"https://github.com/nymag/responsive-filenames","repository":{"url":"git+https://github.com/nymag/responsive-filenames.git","type":"git"},"description":"Easy CSS Breakpoints","maintainers":[{"email":"nymdev@nymag.com","name":"nymdev"},{"email":"dontae.malone@voxmedia.com","name":"dontae-vox-media"},{"email":"lchevres@nymag.com","name":"nymdocker"},{"email":"reuben.son@nymag.com","name":"reubenson"},{"email":"Keren.Lerner@nymag.com","name":"kerenlerner"},{"email":"adelina.pepenella@nymag.com","name":"nymedia"},{"email":"webops@nymag.com","name":"nymagwebops"},{"email":"daniel@daniel.sh","name":"phyllisstein"},{"email":"jordanp9312@gmail.com","name":"jordanp9312"},{"email":"ealcantara22@gmail.com","name":"ealcantara22"},{"email":"wendy.ramirez@voxmedia.com","name":"wramirez92"},{"email":"alex.brand@voxmedia.com","name":"alex-vox-media"},{"email":"tara.siegel@voxmedia.com","name":"tara.siegel"},{"email":"shilpa.shetty@voxmedia.com","name":"shilpa.shetty"},{"email":"jesscastillo28@hotmail.com","name":"jess2896"}],"readme":"# responsive-filenames\n📚📲 _\"Easy CSS Breakpoints\"_\n\n[![Build Status](https://travis-ci.org/nymag/responsive-filenames.svg)](https://travis-ci.org/nymag/responsive-filenames)\n[![Code Climate](https://codeclimate.com/github/nymag/responsive-filenames/badges/gpa.svg)](https://codeclimate.com/github/nymag/responsive-filenames)\n\nThis module allows you to easily delineate media query breakpoints by file name. For example, say we have five files:\n\n```\nall.css\nprint.css\n0-600.css\n600-1024.css\n1024+.css\n```\n\nWith responsive-filenames, you can write css in these files without worrying about cascading across media queries. The print stylesheet will be wrapped in `@media print`, and the various viewport stylesheets get wrapped in media queries based on their file name (hence `responsive-filenames`). A stylesheet called `0-600.css` will look like:\n\n```css\n@media screen and (min-width: 0px) and (max-width: 599.99px) {\n  /* styles */\n}\n```\n\nYou can specify any viewport size, and even have overlapping viewports. For example, you can have a combined mobile and tablet stylesheet, and some separate tablet fixes:\n\n```\n0-1024.css\n600-1024.css\n```\n\n# Install\n\n```\nnpm install --save responsive-filenames\n```\n\nIf you want to use it in your terminal, you can also install it globally.\n\n# Usage\n\n## Command line\n\n```bash\nresponsive-filenames input1.css [input2.css ...] [options]\n```\n\nYou can pass multiple files or glob patterns into responsive-filenames. These are all valid:\n\n```bash\nresponsive-filenames path/to/file1.css\nresponsive-filenames css/*.css\nresponsive-filenames css/*.css otherstyles/**\n```\n\nBy default the compiled css will output to stdout. You can also pass `-o filename` (or `--output filename`) to write it to a file.\n\n## In Node\n\n```js\nvar rfn = require('responsive-filenames');\n\nrfn('css/*.css', function (err, css) {\n  if (!err) {\n    // do something with the compiled css!\n  }\n});\n```\n\n### Flexible file arguments\n\nresponsive-filenames is very flexible about the arguments you pass in. You can give it a glob or an array of globs, or even multiple file arguments. These are all valid:\n\n```js\nvar callback = function (err, css) {\n  if (!err) {\n    // do something with the compiled css!\n  }\n};\n\nrfn('path/to/file1.css', callback);\nrfn(['path/to/file1.css', 'path/to/file2.css'], callback);\nrfn('css/*.css', callback);\nrfn('css/*.css', 'otherstyles/**', callback);\n```\n\n**NOTE:** The order of the files/globs you pass in is preserved, but globs themselves (usually) rely on filename order. [Read more about globbing](https://www.npmjs.com/package/glob#glob-primer).\n\n### But what about promises?\n\nThis module's async function follows node best practices, so you can easily promisify it with a library like [bluebird](https://github.com/petkaantonov/bluebird)\n\n```js\nvar Promise = require('bluebird'),\n  rfn = Promise.promisify(require('responsive-filenames'));\n\nrfn('css/*.css')\n  .then(function (css) {\n    // do something with the compiled css!\n  })\n  .catch(function (e) {\n    // oh noes!\n  });\n```\n\n## In Gulp (and other build tools)\n\nIf you pass a stream into responsive-filenames, it'll compile each file individually and output them as another stream.\n\n```js\nvar rfn = require('responsive-filenames');\n\ngulp.src('**/*.css')\n  .pipe(rfn())\n  .pipe(concat())\n  .pipe(cssmin())\n  .pipe(gulp.dest('compiled.css'));\n```","readmeFilename":"README.md","users":{"gloddy":true}}