Code Monkey home page Code Monkey logo

Comments (4)

distalx avatar distalx commented on August 21, 2024

Hi @strdr4605,

  • Should the mOcKiNgCaSe be exported as default?

Yes. if that the only functionality you are exposing.

  • Should the mOcKiNgCaSe function be renamed in mockingcase?

How about MockingCase instead.

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 under offering-package.test.js. import them to index.js and then expose that/those api(s).

from mockingcase.

strdr4605 avatar strdr4605 commented on August 21, 2024

@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.

distalx avatar distalx commented on August 21, 2024

In that case mockingCase or mockingcase both sounds good.

from mockingcase.

strdr4605 avatar strdr4605 commented on August 21, 2024

Closing as most of the questions resolved

from mockingcase.

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.