Forest Logo
search
package_2

libjs

By @maneetoo

Roblox

Mirrored from Wally

Lib-JS

Everything what you need to write code in Luau with JS built-in objects

Get On Wally Get On Pesde GitHub Releases Roblox OSS Discord Server Changelog My Works

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

Wally

LibJS = "maneetoo/lib-js@1.0.0"

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

Package Details

Install command (Click to copy)


Version

1.0.3

License

MIT

check_circle

Safe for commercial use

Automated license review — not legal advice.