emojitsu icon indicating copy to clipboard operation
emojitsu copied to clipboard

Usage in a bucklescript/js project?

Open idkjs opened this issue 2 years ago • 2 comments

Any chance I can import this in a reasonml/rescript project and call the methods on some emoji string. I would love to be able to call find-name on a list of emojis.

Thank you for sharing.

idkjs avatar May 05 '22 14:05 idkjs

Hi! I think you should be able to import and use the functions in https://github.com/shonfeder/emojitsu/blob/master/lib/github.ml

I don’t use reasonml/rescript, so haven’t tried that use case myself. But if you hit any problems with that use case and I can help resolve them, let me know.

If it would help you to have this published on Opam, I should be able to make that happen too.

shonfeder avatar May 05 '22 18:05 shonfeder

@shonfeder thanks for getting back to me.

I may not be explaining this correctly so let me tell you what i am trying to do and you can tell me if its possible. I am trying to recreate this type in ReasonML. https://github.com/makenotion/notion-sdk-js/blob/20a7ba7a61aeec1328b99f3497f0e67848de0532/src/api-endpoints.ts#L810 which is a variant.

Could I use this lib or some of your functions to do something like that?

Thank you, sir.

idkjs avatar May 31 '22 09:05 idkjs