object-path
object-path copied to clipboard
Rename the main file more meaningful
Hi @mariocasciaro ,
I'm a member of cdnjs, we want to host this library.
Because I found that the main file is index.js, I'd like to discuss if it's possible to name the filename with meaningful name like object-path.js.
Thank you.
https://github.com/cdnjs/cdnjs/issues/9559
Hi @pvnr0082t , could you please elaborate the reason for the renaming?
@mariocasciaro It's just a suggestion for better naming scheme and it will let users easily know what files they include. If you still want to use index.js, that's okay. It's up to you. :smile:
Sure, I'll take it in consideration. I'll work on it after the holiday season ;)
@mariocasciaro , will you get to this? I requested object-path to be included in cdnjs.
@gerhardcit It's a delicate change that could break people's code. I need to think this through. This will probably need a major version bump.
You know the saying, "if the mountain won't come to Muhammad...". The mountain of npm libraries are using
index.jsand it won't move to meaningful, semantic names. CDNJS should adapt to that, there's too much hassle to negotiate every single repo to be renamed. Plus, some of CDNJS competitors (Rawgit for example) are already serving all libraries, no matter with meaningful names or withindex.js.See: https://cdn.rawgit.com/mariocasciaro/object-path/99d9d300/index.js it's served no problem.
Why can't CDNJS do that too?
I wonder what was the reason of writing this comment.
Meaningful name will significantly ease finding all say object-path.js with file explorer and then drag those to your VC/ST editor. That's just one reason. In gulp.js it's also helpful having human readable library names. Since there's no convention in where the main file should reside (dist/src/libs or just /) and what its name should be, it's up to community to vote for renaming.