Giter Site home page Giter Site logo

issueye / lichee Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 0.0 9.67 MB

一个 golang 实现的 javascript 轻量运行时小工具

Home Page: https://issueye.github.io/lichee-docs/lichee/

Go 97.62% Batchfile 0.15% JavaScript 2.23%
golang js goja javascript runtime

lichee's Introduction

LICHEE :一个运行 javascript 脚本的小工具

支持javascript 脚本执行、定时任务、http server

演示视频:

  • 定时获取数据库内容

  • 爬虫网页内容

  • go-boltdb 数据库支持

配置文件

使用 LICHEE 需要先创建一个 config.json 的配置文件,在配置文件中添加中添加对应的配置信息

{
  "local_port": 10066
}
  • local_port 提供服务的端口号

提供的 javascript api 方法

  • path/filepath
    • abs
    • join
    • ext
  • utils
    • print
    • panic
    • toString
    • toBase64
    • md5
    • sha1
    • arrayToMap
  • types
    • newInt
    • intValue
    • newBool
    • boolValue
    • newString
    • stringValue
    • makeByteSlice
    • test
    • err
    • retUndefined
    • retNull
  • time
    • sleep
    • nowString
    • nowDate
    • nowYear
    • nowMonth
    • nowDay
    • nowHour
    • nowMinute
    • nowSecond
  • os
    • O_CREATE O_WRONLY O_RDONLY O_RDWR O_APPEND O_EXCL O_SYNC O_TRUNC
    • args
    • tempDir
    • hostname
    • getEnv
    • remove
    • removeAll
    • mkdir
    • mkdirAll
    • getwd
    • chdir
    • openFile
    • create
    • open
    • stat
  • ini
    • create
    • getStr
    • getInt
    • getBool
    • getSection
    • setStr
    • setInt
    • setBool
    • save
  • fmt
    • sprintf
    • printf
    • println
    • print
  • file
    • write
    • read
  • error
    • new
  • db/local
    • query
    • exec
    • begin
      • commit
      • rollback
      • exec
      • query
  • os/exec
    • command

lichee's People

Contributors

adming-zz avatar foreverwjy avatar issueye avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

lichee's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.