2018-12-18 18:25:49 -05:00
|
|
|
# Deno Standard Modules
|
2018-11-07 14:28:47 -05:00
|
|
|
|
2019-01-15 12:28:09 -05:00
|
|
|
These modules do not have external dependencies and they are reviewed by the
|
|
|
|
Deno core team. The intention is to have a standard set of high quality code
|
|
|
|
that all Deno projects can use fearlessly.
|
2019-01-03 11:40:09 -05:00
|
|
|
|
2019-01-15 12:28:09 -05:00
|
|
|
Contributions are welcome!
|
2019-01-03 11:40:09 -05:00
|
|
|
|
2019-01-15 12:28:09 -05:00
|
|
|
## How to use
|
2019-01-03 11:40:09 -05:00
|
|
|
|
2020-06-28 12:25:20 -04:00
|
|
|
These modules will eventually be tagged in accordance with Deno releases but as
|
|
|
|
of today we do not yet consider them stable and so we version the standard
|
|
|
|
modules differently from the Deno runtime to reflect this.
|
2019-01-03 11:40:09 -05:00
|
|
|
|
2020-05-09 08:34:47 -04:00
|
|
|
It is strongly recommended that you link to tagged releases to avoid unintended
|
2020-06-28 12:25:20 -04:00
|
|
|
updates and breaking changes.
|
2020-05-09 08:34:47 -04:00
|
|
|
|
|
|
|
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`.
|
|
|
|
|
2020-07-11 00:52:18 -04:00
|
|
|
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 is
|
|
|
|
guaranteed for them.
|
2018-12-24 10:28:01 -05:00
|
|
|
|
2019-04-13 15:30:56 -04:00
|
|
|
## Documentation
|
|
|
|
|
2020-05-09 08:34:47 -04:00
|
|
|
To browse documentation for modules:
|
|
|
|
|
|
|
|
- Go to https://deno.land/std/.
|
|
|
|
- Navigate to any module of interest.
|
2020-07-11 00:52:18 -04:00
|
|
|
- Click "View Documentation".
|
2019-04-13 15:30:56 -04:00
|
|
|
|
2019-02-12 18:23:49 -05:00
|
|
|
## Contributing
|
2019-01-03 23:13:21 -05:00
|
|
|
|
2019-05-16 16:23:25 -04:00
|
|
|
deno_std is a loose port of [Go's standard library](https://golang.org/pkg/).
|
2019-10-09 17:22:22 -04:00
|
|
|
When in doubt, simply port Go's source code, documentation, and tests. There are
|
|
|
|
many times when the nature of JavaScript, TypeScript, or Deno itself justifies
|
|
|
|
diverging from Go, but if possible we want to leverage the energy that went into
|
|
|
|
building Go. We generally welcome direct ports of Go's code.
|
2019-05-16 16:23:25 -04:00
|
|
|
|
|
|
|
Please ensure the copyright headers cite the code's origin.
|
|
|
|
|
2020-05-11 20:36:24 -04:00
|
|
|
Follow the
|
|
|
|
[style guide](https://github.com/denoland/deno/blob/master/docs/contributing/style_guide.md).
|