GithubHelp home page GithubHelp logo

Comments (5)

sindresorhus avatar sindresorhus commented on July 28, 2024

Even if it did that, there's no guarantee that the file system is not already out of sync from your expectations and the filename has been used.

from unused-filename.

fabiospampinato avatar fabiospampinato commented on July 28, 2024

If I'm understanding this correctly you're kind of saying that since there would still be issues to take into consideration, which would be outside of the scope of this library, it would probably be better to handle this particular issue and all the others together outside of this library? 🤔

If so I'd be happy to close this issue and handle it and the other issues in a separate write-to-unused-filename package.

from unused-filename.

sindresorhus avatar sindresorhus commented on July 28, 2024

Exactly. Happy to link to your module if you make it.

from unused-filename.

fabiospampinato avatar fabiospampinato commented on July 28, 2024

👍 I'll post a link to it here when it's published.

from unused-filename.

fabiospampinato avatar fabiospampinato commented on July 28, 2024

5 months later (🙀), but here it is: write-unused-path. In the end I thought it made sense to write get-unused-path too. While I was at it I got a little carried away and I rewrote filenamify too, but instead of stripping out forbidden characters it replaces them with similar-looking unicode characters, I'm not sure if that's actually a good idea but I'll give it a try.

I'm closing the other issue I opened in this repo as I don't need it anymore.

from unused-filename.

Related Issues (6)

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.