Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ishotihadus/usamin-js
https://github.com/ishotihadus/usamin-js
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ishotihadus/usamin-js
- Owner: Ishotihadus
- License: mit
- Created: 2022-06-19T05:49:10.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-06-19T05:50:01.000Z (over 2 years ago)
- Last Synced: 2024-09-16T17:52:34.870Z (4 months ago)
- Language: C++
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# UsaminJs
JavaScript generator based on RapidJSON.
## Installation
Install RapidJSON beforehand. Only header files are necessary, and no need to build.
Next, add this line to your application's Gemfile:
```ruby
gem 'usamin-js'
```And then execute:
$ bundle
Or install it yourself as:
$ gem install usamin-js
The directory of RapidJSON can be explicitly specified with `--with-rapidjson-dir` option.
$ gem install usamin-js -- --with-rapidjson-dir=/usr/local/opt/rapidjson
## Usage
```ruby
require 'usamin/js'puts Usamin::Js.generate({ abe: 'nana', time: Time.now, "3": 5 })
#=> {"abe":"nana","time":new Date(1655617665882),"3":5}
```## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/Ishotihadus/usamin-js.
## License
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT) at the request of RapidJSON.