Coder Social home page Coder Social logo

download-file-sync's People

Contributors

andersk avatar orisomething avatar sophiebits avatar vjeux avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

download-file-sync's Issues

Not working in windows ?

Hi!
In mac is working, but in windows it returns error for me:

Error: spawnSync curl ENOENT
at exports._errnoException (util.js:1050:11)
at spawnSync (child_process.js:471:20)
at Object.execFileSync (child_process.js:508:13)
at Object.module.(anonymous function) [as execFileSync] (ELECTRON_ASAR.js:173:20)
at module.exports (C:\Users\debelop\Documents\Code\example\node_modules\download-file-sync\index.js:3:6)

Thanks!

Images broken

I am using the following command to try to save some images:

var content = download (url);
fs.writeFileSync (directory + '/' + name, content);

But when I open the images they are broken. Apparently are not saved the image metadata. I have to download the file and complete and save it in full?

Doesn't work for binary files

Hi.
Your module does not work with binary files, it downloads but it creates a weird string representation, it works on txt files.

I do this
let asdf=dl(url blah blah) then fs.writeFileSync(path,asdf)
It creates the asdf file with the correct name but the contents can't be oened in any application.

What's wrong?

Thanks.

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.