Comments (4)
Hi @strdr4605,
- Should the
mOcKiNgCaSe
be exported as default?
Yes. if that the only functionality you are exposing.
- Should the
mOcKiNgCaSe
function be renamed inmockingcase
?
How about MockingCase
instead.
- For consistency, should the Definition file, Main file and Test file have all
index
ormockingcase
name?
It comes down to your personal preference. my personal preference and what I have observed from several project is as follow.
- type-definations are kept inside a
types
directory. - keep functionality under
offering-package.js
and test underoffering-package.test.js
. import them toindex.js
and then expose that/those api(s).
from mockingcase.
@distalx thank you for feedback.
type-definations are kept inside a
types
directory.
As the package is not big I don't want to have redundant folders.
One solution could be to move the main files to src
folder
...
src
mockingcase.d.ts
mockingcase.js
mockingcase.test.js
...
How about
MockingCase
instead.
The name only affects how you call the function in the browser by CDN. MockingCase
is a class name, so maybe better to stick with mockingCase
or mockingcase
as in first place it is a function ?!
from mockingcase.
In that case mockingCase
or mockingcase
both sounds good.
from mockingcase.
Closing as most of the questions resolved
from mockingcase.
Related Issues (20)
- Add default value for input or throw an error
- Update options type for bs-mockingcase HOT 1
- Add options for toMockingCase()
- Add functionality to override console.log HOT 8
- Add functionality that changes all text on an HTML page HOT 6
- Add option that converts only specific letters HOT 8
- Add config for options on importing the package HOT 2
- Add linter config so that everybody can use the same
- Fix package to work from CDN HOT 2
- Fix mOcKiNgCaSe.config overridedDefaultOptions? HOT 2
- Change usage in README HOT 4
- Add back to table of contents button HOT 13
- Remove unnecessary links from table of contents HOT 4
- Move main files to src folder HOT 4
- Rename mOcKiNgCaSe in mockingcase HOT 6
- Fix Browser Usage link in table of contents HOT 1
- Add templates for issues and pull requests HOT 3
- Add @typedef for options
- Change default value for upper, lower options.
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 mockingcase.