openpeeps / denim

Node 💖 Nim = Denim! Build powerful NodeJS / BunJS addons with Nim language via Node API (NAPI)
https://openpeeps.github.io/denim/
MIT License
40 stars 1 forks source link

Some cool features #14

Closed Ethosa closed 9 months ago

Ethosa commented 9 months ago

Now developers can use napi_value with clean syntax:

var x = toObject({
  "hello": "world"
})
echo x.hello
x.hello = "world!!!!"
var y = toJsObject([
  1, 2, 3, 4
])
echo y.pop()
echo y

Result is

world
4
[1,2,3]