diff options
Diffstat (limited to 'std')
-rw-r--r-- | std/fmt/README.md | 2 | ||||
-rw-r--r-- | std/fs/README.md | 20 | ||||
-rw-r--r-- | std/fs/empty_dir.ts | 2 | ||||
-rw-r--r-- | std/http/cookie.ts | 2 | ||||
-rw-r--r-- | std/io/ioutil.ts | 2 | ||||
-rw-r--r-- | std/manual.md | 1 | ||||
-rw-r--r-- | std/path/README.md | 15 |
7 files changed, 22 insertions, 22 deletions
diff --git a/std/fmt/README.md b/std/fmt/README.md index f7d2ce797..48f7c50db 100644 --- a/std/fmt/README.md +++ b/std/fmt/README.md @@ -35,7 +35,7 @@ This is very much a work-in-progress. I'm actively soliciting feedback. format each element according to the format (surrounded by [] and separated by comma) (`<` Mnemonic: pull each element out of array) -- how to deal with more newfangled Javascript features ( generic Iterables, Map +- how to deal with more newfangled JavaScript features (generic Iterables, Map and Set types, typed Arrays, ...) - the implementation is fairly rough around the edges: diff --git a/std/fs/README.md b/std/fs/README.md index 288f1922f..a8b2c9614 100644 --- a/std/fs/README.md +++ b/std/fs/README.md @@ -4,7 +4,8 @@ fs module is made to provide helpers to manipulate the filesystem. ## Usage -All the following modules are exposed in `mod.ts` +All the following modules are exposed in `mod.ts` This feature is currently +unstable. To enable it use `deno run --unstable` ### emptyDir @@ -59,7 +60,7 @@ ensureSymlink("./folder/targetFile.dat", "./folder/targetFile.link.dat"); // ret ensureSymlinkSync("./folder/targetFile.dat", "./folder/targetFile.link.dat"); // void ``` -### eol +### EOL Detects and format the passed string for the targeted End Of Line character. @@ -91,21 +92,6 @@ exists("./foo"); // returns a Promise<boolean> existsSync("./foo"); // returns boolean ``` -### globToRegExp - -Generate a regex based on glob pattern and options This was meant to be using -the the `fs.walk` function but can be used anywhere else. - -```ts -import { globToRegExp } from "https://deno.land/std/fs/mod.ts"; - -globToRegExp("foo/**/*.json", { - flags: "g", - extended: true, - globstar: true, -}); // returns the regex to find all .json files in the folder foo -``` - ### move Moves a file or directory. Overwrites it if option provided diff --git a/std/fs/empty_dir.ts b/std/fs/empty_dir.ts index de52890a3..2f5d2deeb 100644 --- a/std/fs/empty_dir.ts +++ b/std/fs/empty_dir.ts @@ -43,7 +43,7 @@ export function emptyDirSync(dir: string): void { try { const items = [...readDirSync(dir)]; - // if directory already exist. then remove it's child item. + // If the directory exists, remove all entries inside it. while (items.length) { const item = items.shift(); if (item && item.name) { diff --git a/std/http/cookie.ts b/std/http/cookie.ts index 43cf3f486..521cb6ded 100644 --- a/std/http/cookie.ts +++ b/std/http/cookie.ts @@ -24,7 +24,7 @@ export interface Cookie { path?: string; /** Indicates if the cookie is made using SSL & HTTPS. */ secure?: boolean; - /** Indicates that cookie is not accessible via Javascript. **/ + /** Indicates that cookie is not accessible via JavaScript. **/ httpOnly?: boolean; /** Allows servers to assert that a cookie ought not to * be sent along with cross-site requests. */ diff --git a/std/io/ioutil.ts b/std/io/ioutil.ts index c7b92fc1d..aff9f05e2 100644 --- a/std/io/ioutil.ts +++ b/std/io/ioutil.ts @@ -67,7 +67,7 @@ export async function readLong(buf: BufReader): Promise<number | null> { // We probably should provide a similar API that returns BigInt values. if (big > MAX_SAFE_INTEGER) { throw new RangeError( - "Long value too big to be represented as a Javascript number." + "Long value too big to be represented as a JavaScript number." ); } return Number(big); diff --git a/std/manual.md b/std/manual.md deleted file mode 100644 index 8d3cbb5aa..000000000 --- a/std/manual.md +++ /dev/null @@ -1 +0,0 @@ -# The manual has moved to //docs diff --git a/std/path/README.md b/std/path/README.md index a1f3f425d..9a9361f87 100644 --- a/std/path/README.md +++ b/std/path/README.md @@ -5,3 +5,18 @@ Usage: ```ts import * as path from "https://deno.land/std/path/mod.ts"; ``` + +### globToRegExp + +Generate a regex based on glob pattern and options This was meant to be using +the the `fs.walk` function but can be used anywhere else. + +```ts +import { globToRegExp } from "https://deno.land/std/path/glob.ts"; + +globToRegExp("foo/**/*.json", { + flags: "g", + extended: true, + globstar: true, +}); // returns the regex to find all .json files in the folder foo +``` |