Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/detailyang/lua-resty-jsdecode
Javascript Escape Notation Decode To UTF-8 Bytes
https://github.com/detailyang/lua-resty-jsdecode
decoder escape-notation javascript resty
Last synced: about 1 month ago
JSON representation
Javascript Escape Notation Decode To UTF-8 Bytes
- Host: GitHub
- URL: https://github.com/detailyang/lua-resty-jsdecode
- Owner: detailyang
- License: mit
- Created: 2017-02-17T04:58:27.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-22T06:09:13.000Z (almost 8 years ago)
- Last Synced: 2024-02-15T03:34:34.199Z (10 months ago)
- Topics: decoder, escape-notation, javascript, resty
- Language: C
- Homepage:
- Size: 18.6 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-resty - lua-resty-jsdecode - 8 bytes (Libraries)
README
# lua-resty-jsdecode
[Javascript Escape Notation Decode](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) To UTF-8 Bytes with the Luajit ffi bindingTable of Contents
-----------------
* [Status](#status)
* [Compile](#compile)
* [Usage](#usage)
* [Todo](#todo)
* [Contributing](#contributing)
* [Author](#author)
* [License](#license)Status
====
[![Build Status](https://travis-ci.org/detailyang/lua-resty-jsdecode.svg?branch=master)](https://travis-ci.org/detailyang/lua-resty-jsdecode)Production Ready
Compile
=======```bash
make;
```Usage
====
Make sure `jsdecode.lua` and `libjsdecode.so` is in the `package.cpath` and `package.path````bash
local jsdecoder = jsdecode.new()jsdecoder.decode("\\u0062\\u006f\\u006f\\u006d") #boom
```Todo
=====
* Latin-1 character
* Control escape sequencesContributing
------------To contribute to lua-resty-jsdecode, clone this repo locally and commit your code on a separate branch.
PS: PR Welcome :rocket: :rocket: :rocket: :rocket:
Author
------> GitHub [@detailyang](https://github.com/detailyang)
License
-------
lua-resty-jsdecode is licensed under the [MIT] license.[MIT]: https://github.com/detailyang/ybw/blob/master/licenses/MIT