Skip to content
This repository has been archived by the owner on Mar 25, 2022. It is now read-only.

Deno Port #19

Open
grantcarthew opened this issue May 11, 2020 · 4 comments
Open

Deno Port #19

grantcarthew opened this issue May 11, 2020 · 4 comments

Comments

@grantcarthew
Copy link

grantcarthew commented May 11, 2020

Now that demo is fast approaching v1.0, I was looking to see if the modules I use will work on deno.

The pg-format module is not natively supported in deno because it used the CJS require and module.exports statements.

Is there a chance of either moving pg-format to the now supported ESM format, or building an ESM version?

I was thinking about forking this project to migrate it to import/export however it would be better to keep it here and add the support for ESM directly.

@grantcarthew
Copy link
Author

Change of plans.
I migrated all the tests over to deno and had to fix the Buffer.
I'm hosting it as a deno only project now.
https://github.com/grantcarthew/deno-pg-format

Happy to move it if needed.

@rpedela
Copy link

rpedela commented May 14, 2020

Looks good! I am open to a PR if you are still interested.

@grantcarthew
Copy link
Author

Deno only? What about Node.js? Also, I have published it on the deno third party modules list. Happy to change that also, however they both can't exist because of the Buffer support. Deno uses a Deno.Buffer.

@grantcarthew grantcarthew changed the title ECMAScript Module Support Deno Port May 22, 2020
@moltar
Copy link

moltar commented May 23, 2021

I made a TypeScript port here: https://github.com/ScaleLeap/pg-format

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

No branches or pull requests

3 participants