8000 Provide sync API · Issue #77 · tuananh/camaro · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Provide sync API #77
Open
Open
@jverce

Description

@jverce

Since it's a straightforward change (as far as I can tell), I'd like to work on providing an alternative synchronous API for this lib.

This would mean keeping the async API as-is:

  • transform
  • toJson
  • prettyPrint

The new API would provide the new sync functions:

  • transformSync
  • toJsonSync
  • prettyPrintSync

My proposal will most probably involve refactoring the async calls so that they return a Promise that wraps up a call to their corresponding sync alternative (since that's what's done currently). This change should be backwards compatible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0