Sha256: 673b3d2dadc6684e2cbf38ee6769306e2851520d05356027f1f62d61132c3579

Contents?: true

Size: 805 Bytes

Versions: 1

Compression:

Stored size: 805 Bytes

Contents

# Strict::Data::Uri

This en- and decodes data URIs.

This was inspired by [data-uri](https://rubygems.org/gems/data-uri).

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'strict-data-uri'
```

And then execute:

```bash
bundle install
```

## Usage

Encode a string into a data URI:

```ruby
Strict::Data::Uri.encode "string"
# => data:text/plain;base64,c3RyaW5n
```

Decode a data URI:

```ruby
Strict::Data::Uri.decode "data:text/plain;base64,c3RyaW5n"
# => string
```

## Testing

To run the tests:

```bash
bundle exec rake
```

## Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/strict-data-uri.

## License

The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
strict-data-uri-0.1.1 README.md