1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-22 06:09:25 -05:00
A modern runtime for JavaScript and TypeScript. https://deno.com/
Find a file
Nayeem Rahman 2f90225c89 Implement expandGlob() and expandGlobSync() (denoland/deno_std#617)
fs/glob.ts:
- Improve prototypes for expandGlob() and expandGlobSync() from denoland/deno_std#604.
- Rename glob() to globToRegExp().
- Add normalizeGlob() and joinGlobs().
- Extract GlobToRegExpOptions from GlobOptions, remove the strict
  and filepath options.

fs/globrex.ts:
- Add GlobrexOptions.

fs/path/constants.ts:
- Add SEP_PATTERN.

fs/walk.ts:
- Add WalkOptions::includeFiles
- Default WalkOptions::includeDirs to true.
- Don't traverse directories matching a skip pattern.
- Remove walkSync()'s default root value.

prettier:
- Refactor to use expandGlob().

testing:
- Make findTestModules() an async generator.
Original: 8c90bd9d0b
2019-10-02 13:59:27 -04:00
.ci Test runner v2 (denoland/deno_std#604) 2019-09-28 09:33:17 -04:00
archive bump prettier to 1.18.2 (denoland/deno_std#592) 2019-09-11 23:31:23 -04:00
bundle bump prettier to 1.18.2 (denoland/deno_std#592) 2019-09-11 23:31:23 -04:00
bytes rename bytes/bytes.ts to bytes/mod.ts 2019-05-24 15:40:32 +03:00
datetime datetime: use assertThrows in test (denoland/deno_std#473) 2019-06-05 14:35:35 -04:00
encoding fix TOML's key encoding (denoland/deno_std#612) 2019-09-23 11:08:57 -04:00
examples Move colors to fmt (denoland/deno_std#571) 2019-08-24 10:38:18 -07:00
flags bump prettier to 1.18.2 (denoland/deno_std#592) 2019-09-11 23:31:23 -04:00
fmt bump prettier to 1.18.2 (denoland/deno_std#592) 2019-09-11 23:31:23 -04:00
fs Implement expandGlob() and expandGlobSync() (denoland/deno_std#617) 2019-10-02 13:59:27 -04:00
http Bump v0.19.0 (denoland/deno_std#613) 2019-09-26 21:06:59 -04:00
installer fix: replace Deno.platform usages (denoland/deno_std#590) 2019-09-09 13:58:36 -04:00
io added type number to 'size' parameter (denoland/deno_std#618) 2019-09-29 10:11:18 -04:00
log bump prettier to 1.18.2 (denoland/deno_std#592) 2019-09-11 23:31:23 -04:00
media_types Update mime-db to commit c50e0d1 (denoland/deno_std#608) 2019-09-21 14:33:21 -04:00
mime bump prettier to 1.18.2 (denoland/deno_std#592) 2019-09-11 23:31:23 -04:00
multipart Avoid prototype builtin hasOwnProperty (denoland/deno_std#577) 2019-09-03 03:10:05 -04:00
prettier Implement expandGlob() and expandGlobSync() (denoland/deno_std#617) 2019-10-02 13:59:27 -04:00
strings feat: test runner (denoland/deno_std#516) 2019-08-14 20:04:56 -04:00
testing Implement expandGlob() and expandGlobSync() (denoland/deno_std#617) 2019-10-02 13:59:27 -04:00
textproto bump prettier to 1.18.2 (denoland/deno_std#592) 2019-09-11 23:31:23 -04:00
util bump prettier to 1.18.2 (denoland/deno_std#592) 2019-09-11 23:31:23 -04:00
uuid bump prettier to 1.18.2 (denoland/deno_std#592) 2019-09-11 23:31:23 -04:00
ws fix(ws) mask must not be set by default for server (denoland/deno_std#616) 2019-09-28 12:47:38 -04:00
xeval Test runner v2 (denoland/deno_std#604) 2019-09-28 09:33:17 -04:00
.editorconfig add charset & trim_trailing_whitespace (denoland/deno_std#158) 2019-01-26 14:09:53 -05:00
.eslintrc.json lint: add max line length rules (denoland/deno_std#507) 2019-06-18 21:22:01 -07:00
.gitignore Eslint fixes (denoland/deno_std#356) 2019-04-24 07:41:22 -04:00
azure-pipelines.yml Bump v0.19.0 (denoland/deno_std#613) 2019-09-26 21:06:59 -04:00
format.ts Implement expandGlob() and expandGlobSync() (denoland/deno_std#617) 2019-10-02 13:59:27 -04:00
LICENSE Happy New Year (denoland/deno_std#58) 2019-01-02 09:56:17 -05:00
README.md link colors to fmt/colors.ts (denoland/deno_std#575) 2019-08-30 13:42:31 -04:00
tsconfig.json chore: Implement strict mode (denoland/deno_std#453) 2019-05-30 08:59:30 -04:00
tsconfig.test.json chore: Implement strict mode (denoland/deno_std#453) 2019-05-30 08:59:30 -04:00

Deno Standard Modules

Build Status

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.

Contributions are welcome!

How to use

These modules are tagged in accordance with Deno releases. So, for example, the v0.3.0 tag is guaranteed to work with deno v0.3.0. You can link to v0.3.0 using the URL https://deno.land/std@v0.3.0/

It's strongly recommended that you link to tagged releases rather than the master branch. The project is still young and we expect disruptive renames in the future.

Documentation

Here are the dedicated documentations of modules:

Contributing

deno_std is a loose port of Go's standard library. 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.

Please ensure the copyright headers cite the code's origin.

Follow the style guide.