Skip to main content

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

Project description

介绍

调用 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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gexecjs-0.0.1.tar.gz (2.7 kB view details)

Uploaded Source

File details

Details for the file gexecjs-0.0.1.tar.gz.

File metadata

  • Download URL: gexecjs-0.0.1.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.2

File hashes

Hashes for gexecjs-0.0.1.tar.gz
Algorithm Hash digest
SHA256 57e4d69040613af6b54d4b347b2bb048edd235d01416d2a9734115f690746ff5
MD5 e071e0ced1a9da3a0ec866ea7bfd72b7
BLAKE2b-256 e4932876ba327af60ab64f51598a13f6ab310f6c4c64921f3641c4159fdd36e3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page