Skip to content

bit4bit/mujs.cr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mujs

Crystal Lang embedded Javascript interpreter using MuJS.

Example

require "mujs"

js = Mujs.new

js.defn("print", 1) do |args|
  puts args[0].as(String)
end

js.dostring(%[print("hello world")])

more examples at spec/mujs_spec.cr.

Installation

  1. Add the dependency to your shard.yml:

    dependencies:
      mujs:
        github: bit4bit/mujs.cr
  2. Run shards install

Usage

see spec/mujs_spec.cr

Development

Contributing

  1. Fork it (https://github.com/bit4bit/mujs.cr/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

About

Mujs javascript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published