Skip to content

Support for Deno (only 5 lines changed) #874

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

jeff-hykin
Copy link

Public API Changes
None

Description
The only functional change is a conditional check for Deno (created by the author of NodeJS). Roslibjs effectively already supports Deno, because Deno very very closely implements web standards. The only thing causing it to fail is that Roslibjs assumes NodeJS when there's no window object.

The only other change (appending .ts) is because Deno natively supports typescript, so long as the full file path is specified.

E.g. the following now works:

cd roslibjs
deno
>import * as ros from "./src/RosLib.js"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant