gexecjs

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


Keywords
js, runjs, execjs, grunjs, grun_js, pyexecjs
License
MIT
Install
pip install gexecjs==0.0.1

Documentation

介绍

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

安装

pip install -U grun_js

示例

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