GithubHelp home page GithubHelp logo

filenamify-url's Introduction

filenamify-url's People

Contributors

bendingbender avatar joemaller avatar richienb avatar sindresorhus avatar tiagodanin 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  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  avatar  avatar

filenamify-url's Issues

Bump humanize-url to 2.2.1

Description

gh-pages has a dependency to this library. humanize-url was recently released with a security fix for normalize-url. Once this library has been released, gh-pages will then be able to make a release without a high severity vulnerability.

image

Thanks in advance :)

Ability to reconstruct URL from filename

I have a list of test names (in reports from https://github.com/web-platform-tests/) which are of the form /encoding/legacy-mb-japanese/iso-2022-jp/iso2022jp-decode.html?5001-6000 or /xhr/xmlhttprequest-timeout-worker-synconworker.html?load fires normally, to give two examples.

I'd like write a file per test on the filesystem, and came to this repo and https://github.com/sindresorhus/filenamify for a solution.

However, I have an additional requirement of being able to reconstruct the original string byte-for-byte, so I need to be able to reverse the escaping.

In either project, a unfilenamify or unfilenamifyUrl that is guaranteed to return the original string would be great.

Why strip scheme?

Hi,

maybe a stupid question but what is the motivation for stripping away the scheme? Wouldn't keeping the scheme allow more url normalizations?

Thank you!

Version 2 isn't removing extra characters

Issuehunt badges

The output of two versions with same input.
v1:

const filenamifyUrl = require('filenamify-url');
console.log(filenamifyUrl(`http://localhost:40771?query=pageres*|<>:"\\`));
// => localhost!40771!query=pageres

v2:

const filenamifyUrl = require('filenamify-url');
console.log(filenamifyUrl(`http://localhost:40771?query=pageres*|<>:"\\`));
// => localhost!40771!query=pageres!%7C%3C%3E%3A%22%5C

IssueHunt Summary

tiagodanin tiagodanin has been rewarded.

Backers (Total: $40.00)

Submitted pull Requests


Tips


IssueHunt has been backed by the following sponsors. Become a sponsor

fail to build with package filenamify-url

error message:
node_modules/filenamify-url/index.d.ts:1:9 - error TS2305: Module '"..src_project_folder/node_modules/filenamify"' has no exported member 'Options'.

In filenamify\index.d.ts does not seem to have export Options, hence this error.

We are using "filenamify-url": "^2.1.1"

Wondering what's our wrong with our setup.

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.