5.0.0 • Published 11 days ago

gulp-redis-lua2js v5.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
11 days ago

gulp-redis-lua2js

Build Status npm package Coverage Status

Convert lua scripts to node modules using redis-lua2js

Install

$ npm install --save-dev gulp-redis-lua2js

Usage

Convert pdel.lua to pdel.js:

import gulp from 'gulp';
import lua2js from 'gulp-redis-lua2js';

gulp.task('lua', function() {
  // Backend locales
  return gulp.src('pdel.lua')
  .pipe(lua2js())
  .pipe(gulp.dest('lua'));
});

For a real life example, check redis-pdel

API

lua2js({ useFilenameAsName, ...options })

Converts the given lua scripts into node modules.

useFilenameAsName

Type: boolean, default: true, if no name was explicitly specified in the options, use the filename (without lua extension) as the name of the command when converting

options

The options to lua2js documented in redis-lua2js

License

See the LICENSE file for license rights and limitations (MIT).

5.0.0

11 days ago

4.0.3

1 year ago

4.0.2

2 years ago

4.0.1

2 years ago

4.0.0

2 years ago

3.0.0

3 years ago

2.0.0

4 years ago

1.1.0

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.1.0

8 years ago