Code Monkey home page Code Monkey logo

get-css's People

Contributors

autarc avatar faebeee avatar fbuchinger avatar johno avatar jxnblk avatar layoutanalysis avatar rsoury avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

get-css's Issues

Support for a CLI?

I think a CLI would be pretty useful. I've got a few different use cases where I'd like to do something like:

getcss http://foo.bar > foobar.css

Do you think this would be worthwhile to incorporate into this project? I'd be happy to submit a PR with the functionality above if you think it's worth it.

Ensure `resolve-link` handles undefined input

TypeError: Cannot read property 'match' of undefined
    at resolveUrl (/var/www/cssstats/node_modules/get-css/utils/resolve-url.js:4:10)
    at createLink (/var/www/cssstats/node_modules/get-css/utils/create-link.js:6:10)
    at Object.<anonymous> (/var/www/cssstats/node_modules/get-css/index.js:53:25)
    at exports.each (/var/www/cssstats/node_modules/cheerio/lib/api/traversing.js:294:24)
    at parseHtml (/var/www/cssstats/node_modules/get-css/index.js:51:27)
    at Request._callback (/var/www/cssstats/node_modules/get-css/index.js:133:7)
    at Request.self.callback (/var/www/cssstats/node_modules/request/request.js:198:22)
    at emitTwo (events.js:87:13)
    at Request.emit (events.js:172:7)
    at Request.<anonymous> (/var/www/cssstats/node_modules/request/request.js:1063:14)

Add support for css imports.

Currently, get-css doesn't have support for CSS @imports, so no CSS shows up in a base file consisting of:

@import url(foo.css);
@import url(bar.css);

Additionally, CSS files with content and @imports are not receiving all the CSS the document contains.

If you'd like, @jxnblk, I can start tackling this in the next day or so. I suspect it will require some rejiggering of the index.js because one has to assume that any @imported CSS file could also contain another @import.

Thanks for the awesome work, by the way. This is an awesome module.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.