Skip to content

Proper ESM usage? #59

@MarketingPip

Description

@MarketingPip

@flagxor

Could we get this for proper ESM usage so not defined directly in window as well a method to handle console.log out with our own functions?

Current usage is:

import basic from "https://esm.sh/gh/google/wwwbasic/wwwbasic.js" // from NPM
// var basic = require('./wwwbasic.js'); // from within the cloned repository directory
 window.Basic(
`
PRINT "Hello World!"
FOR i = 1 to 10
  PRINT "Counting "; i
NEXT i
`);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions