fengari_lua 1.1.0

  • Readme
  • Changelog
  • Installing
  • 50

fengari-lua: Dart bindings for fengari-web, a Lua 5.3 interpreter. #

Installation #

  1. Add the fengari_lua package to your pubspec:
  fengari_lua: ^1.1.0
  1. Add fengari-web.js to your html:
    <script src="https://github.com/fengari-lua/fengari-web/releases/download/v0.1.4/fengari-web.js"></script>

Usage #

This library comes with bindings for most of the Lua API, see https://www.lua.org/manual/5.3/

It also includes a wrapper which greatly simplifies interaction with Lua states, Example:

import 'package:fengari_lua/lua.dart';
main() {
  var state = LuaState();
    print("Hello, World!")

1.1.0 #

  • Fixed several bugs in fengari bindings.
  • Added fengari-interop library.
  • Added many more methods to LuaState, including the ability to load modules.

1.0.0-hotfix.1 #

  • Added CHANGELOG.md.
  • Added README.md to lua_repl example.
  • Added screenshot to lua_repl example.

1.0.0 #

  • First release!
  • Implements entire fengari-web v0.1.4 Lua bindings.
  • Implements LuaState wrapper for simplifying interaction with Lua states.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  fengari_lua: ^1.1.0

2. Install it

You can install packages from the command line:

with pub:

$ pub get

Alternatively, your editor might support pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:fengari_lua/fengari.dart';
import 'package:fengari_lua/lua.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Oct 16, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.5.1
  • pana: 0.12.21


Detected platforms: web, other

Platform components identified in package: js.

Health suggestions

Format lib/fengari.dart.

Run dartfmt to format lib/fengari.dart.

Format lib/lua.dart.

Run dartfmt to format lib/lua.dart.

Maintenance suggestions

Maintain an example.

None of the files in the package's example/ directory matches known example patterns.

Common filename patterns include main.dart, example.dart, and fengari_lua.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.2.0 <3.0.0
js ^0.6.0 0.6.1+1
quiver >=2.0.0 <3.0.0 2.0.5
Transitive dependencies
matcher 0.12.5
meta 1.1.7
path 1.6.4
stack_trace 1.9.3
Dev dependencies
pedantic ^1.7.0
test ^1.6.4