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

Conversation

shadowspawn
Copy link
Collaborator

@shadowspawn shadowspawn commented May 30, 2022

A pattern I use in Commander is putting all example programs from the documentation into example files with imports so they can be run straight from a checkout of the repo. I find it useful myself to check behaviour matches documentation, besides letting users try them out easily.

This PR adds an example file matching an upstream documentation example, see what you think...

(I do also add examples that don't appear in the documentation for samples of features or usage that are not covered in depth in the README, which we could do here too.)

examples/simple-hard-coded.js Show resolved Hide resolved
@bcoe bcoe merged commit 36060cd into pkgjs:main Jun 3, 2022
@shadowspawn shadowspawn deleted the feature/example branch June 3, 2022 12:59
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.

4 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.