Skip to content

Commit befef42

Browse files
committed
doc
1 parent 799d6a6 commit befef42

File tree

113 files changed

+214
-8557
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+214
-8557
lines changed

.jsdoc.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
{
22
"source": {
3-
"include": ["src", "package.json", "README.md"],
3+
"include": [
4+
"src",
5+
"package.json",
6+
"README.md",
7+
"CONTRIBUTING.md",
8+
"LICENSE.md"
9+
],
410
"includePattern": ".js$"
511
},
612
"plugins": ["plugins/markdown"],

CONTRIBUTING.md

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
# Contributing to this project
2+
3+
* [Contributors Agreement](#user-content-contributors-agreement)
4+
* [Introduction](#Introduction)
5+
* [I don't want to read this whole thing I just have a question!!!](#user-content-i-dont-want-to-read-this-whole-thing-i-just-have-a-question)
6+
* [How Can I Contribute?](#user-content-how-can-i-contribute)
7+
* [Reporting Bugs](#user-content-reporting-bugs)
8+
* [Suggesting Enhancements](#user-content-suggesting-enhancements)
9+
* [Creating Pull Requests](#user-content-creating-pull-requests)
10+
11+
## Contributors Agreement
12+
13+
By submitting patches to this project you agree to allow them to be redistributed under the project's license, according to the normal forms and usages of the open-source community.
14+
15+
## Introduction
16+
17+
First off, thank you for considering contributing to this project. It's people like you that make it such a great tool.
18+
19+
Following these guidelines helps to communicate that you respect the time of the developers managing and developing this open source project. In return, they should reciprocate that respect in addressing your issue, assessing changes, and helping you finalize your pull requests.
20+
21+
This is an open source project and we love to receive contributions from our community — you! There are many ways to contribute, from writing tutorials or blog posts, improving the documentation, submitting bug reports and feature requests or writing code which can be incorporated into the main project itself.
22+
23+
### I don't want to read this whole thing I just have a question!!!
24+
25+
We currently allow our users to use the issue tracker for support questions. But please be wary that maintaining an open source project can take a lot of time from the maintainers. If asking for a support question, state it clearly and take the time to explain your problem properly. Also, if your problem is not strictly related to this project we recommend you to use Stack Overlow instead.
26+
27+
## How Can I Contribute?
28+
29+
### Feature Requests
30+
31+
This section guides you through submitting an enhancement suggestion for this project, including completely new features and minor improvements to existing functionality. Following these guidelines helps maintainers and the community understand your suggestion and find related suggestions.
32+
33+
Before creating enhancement suggestions, please check the list of enhancements suggestions in the issue tracker as you might find out that you don't need to create one. When you are creating an enhancement suggestion, please include as many details as possible.
34+
35+
#### How Do I Submit A (Good) Enhancement Suggestion?
36+
37+
Enhancement suggestions are tracked as [GitHub issues](https://guides.github.com/features/issues/). Create an issue on the project's repository and provide the following information:
38+
39+
* **Use a clear and descriptive title** for the issue to identify the suggestion.
40+
* **Provide a step-by-step description of the suggested enhancement** in as many details as possible.
41+
* **Provide specific examples to demonstrate the steps**. It's always better to get more information. You can include links to files or GitHub projects, copy/pasteable snippets or even print screens or animated GIFS. If you're providing snippets in the issue, use [Markdown code blocks](https://help.github.com/articles/markdown-basics/#multiple-lines).
42+
* **Describe the current behavior** and **explain which behavior you expected to see instead** and why.
43+
* **List some other similar projects where this enhancement exists.**
44+
* **Specify which version of the project you're using.**
45+
* **Specify the current environment you're using.** if this is a useful information.
46+
47+
### Reporting Bugs
48+
49+
Before creating bug reports, please check the existing bug reports as you might find out that you don't need to create one. When you are creating a bug report, please include as many details as possible.
50+
51+
#### How Do I Submit A (Good) Bug Report?
52+
53+
Bugs are tracked as [GitHub issues](https://guides.github.com/features/issues/). Create an issue on the project's repository and provide the following information.
54+
55+
Explain the problem and include additional details to help maintainers reproduce the problem:
56+
57+
* **Use a clear and descriptive title** for the issue to identify the problem.
58+
* **Describe the exact steps which reproduce the problem** in as many details as possible. For example, start by explaining how you used the project. When listing steps, **don't just say what you did, but explain how you did it**.
59+
* **Provide specific examples to demonstrate the steps**. It's always better to get more information. You can include links to files or GitHub projects, copy/pasteable snippets or even print screens or animated GIFS. If you're providing snippets in the issue, use [Markdown code blocks](https://help.github.com/articles/markdown-basics/#multiple-lines).
60+
* **Describe the behavior you observed after following the steps** and point out what exactly is the problem with that behavior.
61+
* **Explain which behavior you expected to see instead and why.**
62+
* **If the problem wasn't triggered by a specific action**, describe what you were doing before the problem happened and share more information using the guidelines below.
63+
64+
Provide more context by answering these questions:
65+
66+
* **Did the problem start happening recently** (e.g. after updating to a new version) or was this always a problem?
67+
* If the problem started happening recently, **can you reproduce the problem in an older version?** What's the most recent version in which the problem doesn't happen?
68+
* **Can you reliably reproduce the issue?** If not, provide details about how often the problem happens and under which conditions it normally happens.
69+
70+
Include details about your configuration and environment:
71+
72+
* **Which version of the project are you using?**
73+
* **What's the name and version of the OS you're using**?
74+
* **Any other information that could be useful about you environment**
75+
76+
### Creating Pull Requests
77+
78+
#### How Do I Submit A (Good) Pull Request?
79+
80+
* **Be warned that the contributors agreement displayed on top of this document is applicable as soon as you create a pull request**.
81+
* **Use a clear and descriptive title** for the pull request to state the improvement you made to the code or the bug you solved.
82+
* **Provide a link to the related issue** if the pull request is a follow up of an existing bug report or enhancement suggestion.
83+
* **Comment why this pull request represents an enhancement** and give a rationale explaining why you did it that way and not another way.
84+
* **Use the same coding style than the one used in this project**.
85+
* **Welcome suggestions from the maintainers to improve your pull request**.

README.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,48 @@
33
[![Node.js CI](https://github.com/nicolas-van/modern-async/workflows/Node.js%20CI/badge.svg)](https://github.com/nicolas-van/modern-async/actions) [![npm](https://img.shields.io/npm/v/modern-async)](https://www.npmjs.com/package/modern-async)
44

55
A modern JavaScript tooling library for asynchronous operations using async/await and promises.
6+
7+
This library is a modernized alternative to a lot of libraries like [Async.js](https://caolan.github.io/async/v3/) that were created using the legacy callback style to handle asynchronous operations. Its goal is to be as complete as any of those libraries while being built from the very beginning with async/await and promises in mind.
8+
9+
[See the documentation](https://nicolas-van.github.io/modern-async).
10+
11+
* Exclusively uses async/await and promises in its code, tests and documentation.
12+
* Has almost no dependencies.
13+
* Has 100% code coverage.
14+
* Bundled for ESM modules, CommonJS and UMD.
15+
* Works in node >= 10.0 and in the vast majority of browsers (if using babel or the UMD version).
16+
17+
## This project accepts feature requests !
18+
19+
The goal of modern-async is to be as complete as possible. I coded everything I missed in past while developing, yet it's difficult to know what people would really need. So if you would like some more feature start by [reading the contribution guide](https://github.com/nicolas-van/modern-async/blob/master/CONTRIBUTING.md).
20+
21+
## Installation
22+
23+
```bash
24+
npm install --save modern-async
25+
```
26+
27+
## Usage
28+
29+
```javascript
30+
import { map, asyncRoot, sleep } from 'modern-async'
31+
32+
// or
33+
34+
const { map, asyncRoot, sleep } = require('modern-async')
35+
36+
asyncRoot(async () => {
37+
const array = [1, 2, 3]
38+
const result = await map(array, async (v) => {
39+
await sleep(10)
40+
return v * 2
41+
})
42+
console.log(result)
43+
})
44+
```
45+
46+
[See the documentation for the rest](https://nicolas-van.github.io/modern-async).
47+
48+
## License
49+
50+
[See the license here](https://github.com/nicolas-van/modern-async/blob/master/LICENSE.md)

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang="en">
33
<head>
44
<script>
5-
window.location = "./modern-async/0.1.0"
5+
window.location = "./modern-async/0.1.2"
66
</script>
77
</head>
88
</html>

0 commit comments

Comments
 (0)