File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11MIT License
22
3- Copyright (c) 2019 Void (cryon.io)
3+ Copyright (c) 2020 Void (cryon.io)
44
55Permission is hereby granted, free of charge, to any person obtaining a copy
66of this software and associated documentation files (the "Software"), to deal
Original file line number Diff line number Diff line change @@ -3,10 +3,17 @@ A lightweight H/JSON library for Lua
33
44Ported from [ hjson-py] ( https://github.com/hjson/hjson-py ) . Inspired by rxi - [ json.lua] ( https://github.com/rxi/json.lua ) .
55
6- * Implemented in pure Lua: tested with latest Lua ( 5.3) only
6+ * Implemented in pure Lua: tested with Lua 5.3 and 5.4
77
88## Setup
99
10+ ### Lua Rocks
11+
12+ ``` sh
13+ luarocks install hjson-lua
14+ ```
15+ ### Manual
16+
10171 . drop [ hjson.lua] ( tree/master/hjson.lua ) and [ hjson folder] ( tree/master/hjson ) folder into your project
11182 . require hjson.lua
1219 * ` hjson = require "hjson" `
Original file line number Diff line number Diff line change 1+ package = " hjson-lua"
2+ version = " 0.1.2-2"
3+ source = {
4+ url = " git://github.com/cryi/hjson-lua.git" ,
5+ }
6+ description = {
7+ summary = " A lightweight H/JSON library for Lua." ,
8+ homepage = " https://github.com/cryi/hjson-lua" ,
9+ license = " MIT"
10+ }
11+ dependencies = {
12+ " lua >= 5.3"
13+ }
14+ build = {
15+ type = " builtin" ,
16+ modules = {
17+ [" hjson" ] = " hjson.lua" ,
18+ [" hjson.decoder" ] = " hjson/decoder.lua" ,
19+ [" hjson.encoder" ] = " hjson/encoder.lua" ,
20+ [" hjson.encoderH" ] = " hjson/encoderH.lua"
21+ }
22+ }
You can’t perform that action at this time.
0 commit comments