Code Monkey home page Code Monkey logo

node-get-uri's Introduction

node-get-uri's People

Contributors

kulakowka avatar rexxars avatar robcresswell avatar tootallnate 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

node-get-uri's Issues

switch ftp client?

node-ftp seems very outdated... no update for 4-5 years
how about switching client to something new? like basic-ftp or something else?

Unhandled 'error' event

Unhandled 'error' event in ftp.js, for example 'Error: socket hang up'

maybe should add this
client.once('error', onerror);

Potential security issue

Hey there!

I belong to an open source security research community, and a member (@Sampaguitas) has found an issue, but doesn’t know the best way to disclose it.

If not a hassle, might you kindly add a SECURITY.md file with an email, or another contact method? GitHub recommends this best practice to ensure security issues are responsibly disclosed, and it would serve as a simple instruction for security researchers in the future.

Thank you for your consideration, and I look forward to hearing from you!

(cc @huntr-helper)

S3 protocol handler

Would you be interested in a pull-request for an S3 protocol handler that accepts URLs of the form s3://bucket/path/to/key? I wrote one for an application we're building. It works well, but I haven't yet implemented a cache option. Because the aws-sdk node package is somewhat large, I'd suggest only conditionally importing the s3 protocol if the aws-sdk is available.

Invalid FTP URI format

FTP paths not working if it contains the space symbol. It's converted to HTTP protocol format (%20), which not supported(?) by FTP standard.

I think the FTP paths shouldn't be escaped at all.

Temporary fix in ftp.js:27:

var filepath = unescape(parsed.pathname);

Breaking changes have been made in a patch version

Hi just wanted to let you know that going into version 2.0.3 you've updated major versions of your dependencies without incrementing your own major version number.

This means that those maintaining legacy code on node <=5 will probably hit issues with block scoped variables amongst other things the next time they update any modules that depend, anywhere in the dependency chain, on this module.

readable.streams from other http methods

even though this is get-uri, would it be too far outside its scope to return readable.streams on other HTTP methods, namely POST?

Would you be open to review another pull that lets us pass the method as an option when calling the function for that protocol? something like:

opts = {

method: 'post',
...

and this time I would definitely git rebase my fork before sending the pull...

Promise version should not require options

It seems an empty options object is required to use async/await:

// Invalid
const stream = await getUri(uri);
// Valid
const stream = await getUri(uri, {});

TypeScript won't compile the first version.

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.