Skip to content

Commit 1d29a1e

Browse files
committed
rockspec + updated readme
1 parent 1881efa commit 1d29a1e

3 files changed

Lines changed: 31 additions & 2 deletions

File tree

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2019 Void (cryon.io)
3+
Copyright (c) 2020 Void (cryon.io)
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,17 @@ A lightweight H/JSON library for Lua
33

44
Ported 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+
1017
1. drop [hjson.lua](tree/master/hjson.lua) and [hjson folder](tree/master/hjson) folder into your project
1118
2. require hjson.lua
1219
* `hjson = require "hjson"`

hjson-lua-0.1.2-2.rockspec

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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+
}

0 commit comments

Comments
 (0)