deno.land / std@0.139.0

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
# Deno Standard Modules
[![codecov](https://codecov.io/gh/denoland/deno_std/branch/main/graph/badge.svg?token=w6s3ODtULz)](https://codecov.io/gh/denoland/deno_std)
These modules do not have external dependencies and they are reviewed by theDeno core team. The intention is to have a standard set of high quality codethat all Deno projects can use fearlessly.
Contributions are welcome!
## Releases
Standard library is currently tagged independently of Deno version. This willchange once the library is stabilized.
To check compatibility of different version of standard library with Deno CLIsee[this list](https://raw.githubusercontent.com/denoland/dotland/main/versions.json).
## How to use
These modules will eventually be tagged in accordance with Deno releases but asof today we do not yet consider them stable and so we version the standardmodules differently from the Deno runtime to reflect this.
It is strongly recommended that you link to tagged releases to avoid unintendedupdates and breaking changes.
Don't link to / import any module whose path:
- Has a name or parent with an underscore prefix: `_foo.ts`, `_util/bar.ts`.- Is that of a test module or test data: `test.ts`, `foo_test.ts`, `testdata/bar.txt`.
Don't import any symbol with an underscore prefix: `export function _baz() {}`.
These elements are not considered part of the public API, thus no stability isguaranteed for them.
## Documentation
To browse documentation for modules:
- Go to https://deno.land/std/.- Navigate to any module of interest.- Click "View Documentation".
## Contributing
**NOTE: This repository was unarchived and synced on Feb, 1st, 2021. If youalready had it cloned, we suggest to do a fresh clone to avoid git conflicts.**
deno_std is a loose port of [Go's standard library](https://golang.org/pkg/).When in doubt, simply port Go's source code, documentation, and tests. There aremany times when the nature of JavaScript, TypeScript, or Deno itself justifiesdiverging from Go, but if possible we want to leverage the energy that went intobuilding Go. We generally welcome direct ports of Go's code.
Please ensure the copyright headers cite the code's origin.
Follow the [style guide](https://deno.land/manual/contributing/style_guide).
### Opening a pull request
After cloning don't forget to `git submodule update --init`.
Before opening a PR make sure to:
- have the latest Deno version installed locally- add tests that cover your changes.- `deno task test` passes.- `deno fmt` passes without changing files.- `deno lint` passes.
Give the PR a descriptive title.
Examples of good titles:
- fix(http): Fix race condition in server- docs(fmt): Update docstrings- feat(log): Handle nested messages
Examples of bad titles:
- fix #7123- update docs- fix bugs
Ensure there is a related issue and it is referenced in the PR text.
For contributions to the Node compatibility library please check the[`std/node` contributing guide](./node/README.md)
_About CI checks_:
We currently have 9 checks on CI. Each PR should pass all of these checks to beaccepted.
- test with Deno canary on Windows- test with Deno canary on Linux- test with Deno canary on macOS- test Node polyfill with Deno canary on Windows- test Node polyfill with Deno canary on Linux- test Node polyfill with Deno canary on macOS- lint- wasm crypto check- CLA
_Typechecking code in Markdown files_:
If you want to run `deno test --doc x.md` you will need to specify the flag`--import-map=test_import_map.json`, this import map is in the root of deno_std.
_For maintainers_:
To release a new version a tag in the form of `x.y.z` should be added.
std
Deno standard library
GitHub Repositorydenoland/deno_std
GitHub Stars
2121

Version Info

Tagged at
a week ago