-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove dependendency on Node.js #18
Comments
This library is designed for use in a browser environment. The only Javascript that targets a Node.js environment should be code for running tests (code inside More work is needed for performance. There is an open issue #12 where you can contribute. |
There is this code like I just googled, that "import" is not a command for Node.js, but it is a new specification of JS. But it is not supported by browsers yet, so I will probably see an error in my browser. |
@photopea The example I provided assumed the use of a transpiler like babel together with a module bundler like webpack. These are modern build tools used to convert (compile) ES6 to ES5 so that the code works in older browsers. Sorry, there was not much explanation about this. I've now updated the README and given examples of how to get started.
All of the above four options can be used to get unicode-bidirectional to work in a browser environment. |
Thank you very much. I don't use any additional software for JS development. Can you add the JS file, that works in a browser, to your repository? |
You can find the JS file that works in a browser ( Here is an example of how to use it: I think that should sort your problem so I'm closing this issue. |
Ok, thanks, it works very well. |
Whould it be possible to remove the Node.js - specific code? I think such library can be made with simple strings, arrays, numbers, there is no need to have I/O etc. inside it. I would like to use a similar tool in the browser environment.
You use many third-party libraries. I am sure that writing your own functions could improve the performance. These libraries are often stupid-proof (e.g. every time they check, if the input parameter is a string, or a number, or undefined ....) which ruins the performance.
The text was updated successfully, but these errors were encountered: