简体   繁体   中英

Is there a way to execute javascript code in C# WebAPI?

From what I can research, executing server side usually uses node. However, my question is given a javascript file, is there a way to load it in C# and start calling function? Other options I'm looking at are AWS Lambda.

The impetus for this is I'm trying to use zxcvbn library but the C# implementation has a different result with the javascript. So to make sure the two are in sync, the server side will be using the same code as the client side which is maintained by dropbox themselves.

Thanks to @Dessus for the link, that is exactly what I wanted just didn't know the term for it.

Also, I found some implementation here which might help other.

https://github.com/darcythomas/zxcvbn.net

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM