Skip to content

npm package built with Rust + WASM that will check if the format of a string corresponds to a URL

License

Notifications You must be signed in to change notification settings

robertohuertasm/is-valid-url-wasm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

url-checker

This is a simple npm package leveraging the power of Rust + WASM in order to tell you if some String has a proper URL format or not. Just that!

For the moment, given that wasm-pack only offers either support for the browser or for NodeJs, this package can only be used on the web.

Note also that WASM loads asynchronously so the import has to be async too.

The package has been created using:

wasm-pack init -m no-install

Example

If you want to run the example, access to the example folder and run npm i. Then run npm run serve to start the webpack server.

Note that this example is using TypeScript.

Improvements

  1. Try to provide a package that can be used both in NodeJs and in the browser.
  2. Reduce the size of the .wasm file by using binaryen

About

npm package built with Rust + WASM that will check if the format of a string corresponds to a URL

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published