Skip to content

zaerl/js-to-lua

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@zaerl/lua

Transform Javascript objects to Lua tables. This is a draft project. Do not use!

Install

npm install @zaerl/lua

Usage

Don't do it!

import { objectToLuaTable } from '@zaerl/lua';

const table = objectToLuaTable(obj);
console.log(table);

You can pass everything that is an object in Javascript such as {} or []. If you pass a string it attempts to JSON.parse(obj) it.

License

MIT

About

Transform Javascript objects to Lua tables

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published