Comments (4)
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.
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.
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.
maybe just get the first letter in the case of just having one name?
from initials.
Related Issues (20)
- An in-range update of tape is breaking the build π¨ HOT 1
- An in-range update of semantic-release is breaking the build π¨ HOT 2
- An in-range update of semantic-release is breaking the build π¨ HOT 2
- An in-range update of semantic-release is breaking the build π¨ HOT 1
- LICENSE file HOT 4
- Limit to two characters? HOT 11
- An in-range update of browserify is breaking the build π¨ HOT 2
- An in-range update of semantic-release is breaking the build π¨ HOT 1
- An in-range update of rimraf is breaking the build π¨ HOT 1
- An in-range update of semantic-release is breaking the build π¨ HOT 1
- An in-range update of semantic-release is breaking the build π¨ HOT 3
- An in-range update of tape is breaking the build π¨ HOT 1
- An in-range update of semantic-release is breaking the build π¨ HOT 1
- An in-range update of tape is breaking the build π¨ HOT 1
- An in-range update of tape is breaking the build π¨ HOT 1
- An in-range update of semantic-release is breaking the build π¨ HOT 1
- Typescript support HOT 4
- Type Definition Error TS2309 HOT 1
- More intelligent TypeScript return type HOT 3
- The automated release is failing π¨ HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from initials.