Git Product home page Git Product logo

Comments (4)

nikoladev avatar nikoladev commented on September 3, 2024 1

That would work, I suppose. In the end I just implemented my own small version of this that only works for my use case.

Thanks anyway :)

from initials.

gr2m avatar gr2m commented on September 3, 2024

The context I created initials for are meeting protocols. From my research folks would always use 2 letters or more. I’d rather not change it but leave the issue open to see if there are more opinions on it.

As a workaround, you can do initials.find('GitHub (G)') to get the single letter G as a custom initial. I know in that case you won’t need to use initials in the first place, but that’s all I got right now.

from initials.

nikoladev avatar nikoladev commented on September 3, 2024

I would also like the possibility to get a single letter for a single name. My use case is that I want to create initials based on first and middle names (without their last name). So if the user only has one first name I would need a one letter initial.

Would it be possible to add an option for minLength?

If not, that's ok. I can fork the project and just change the defaultValue to 1, but it would be nice to be able to officially use this library and any future bug fixes that come with it.

Thanks for the project!

from initials.

gr2m avatar gr2m commented on September 3, 2024

maybe just get the first letter in the case of just having one name?

from initials.

Related Issues (20)

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.