Skip to content

Leviathangk/runjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

介绍

调用 node 执行 js ,可指定编码格式

安装

pip install -U gexecjs

示例

    # run_js = RunJs(filepath='test.js')
    run_js = RunJs(content='''
        function getCookie(){
            return arguments
        }
    ''')
    result = run_js.run('getCookie', 'Gk')
    print(result)

About

调用 node 执行 js,可指定编码

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages