maneetoo/libjs
Everything what you need to write code in Luau with JS built-in objects
Lib-JS is fully based on ECMAScript® 2027 Language Specification and Mozilla MDN Web Docs - JavaScript and writen on pure Luau and can be run by any Luau runtime (ex. Roblox, Lune, Lute) - NOT LUA.
Warning
Not Recommended
This library is still under development and is not recommended for use in large-scale projects. Some methods have yet to be implemented but are planned for the future, as is documentation on how to use the library.
Previous art
Initially, Lib-JS was created to interpret JS methods for the purpose of porting Vue.js to Luau. While it currently serves this specific function, the library will be expanded in the future with new methods and enhancements to existing ones.
Installation
LibJS = "maneetoo/[email protected]"
Pesde [RECOMMENDED]
pesde add maneetoo/libjs
or
LibJS = { name = "maneetoo/libjs", version = "^1.0.0" }
Example of Use
const LibJS = require "@lib-js"
const Boolean, Error, Number, String, globalThis =
LibJS.Boolean, LibJS.Error, LibJS.Number, LibJS.String, LibJS.globalThis
globalThis.multiplyNumber = function(number: any, multiplyBy: any, convertToString: any): number
const convertToStringValue: boolean = Boolean(convertToString)
const numberValue: number, multiplyByValue: number =
Number(number), Number(multiplyBy)
const multipliedNumber: number = numberValue * multiplyByValue
if convertToStringValue then
return String(multipliedNumber)
end
return multipliedNumber
end
License
Lib-JS is licensed under MIT License
Copyright © 2026 @maneetoo