@shd101wyy/yo 0.0.29 → 0.0.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -0
- package/out/cjs/index.cjs +7558 -7830
- package/out/cjs/yo-cli.cjs +7557 -7829
- package/out/esm/index.mjs +7457 -7729
- package/out/types/src/codegen/async/runtime-core.d.ts +2 -1
- package/out/types/src/codegen/async/runtime-io-common.d.ts +3 -1
- package/out/types/src/codegen/async/runtime-io-linux.d.ts +1 -0
- package/out/types/src/codegen/async/runtime-io-macos.d.ts +1 -0
- package/out/types/src/codegen/async/runtime-io-windows.d.ts +1 -0
- package/out/types/src/codegen/async/runtime.d.ts +2 -1
- package/out/types/src/codegen/async/state-machine.d.ts +18 -2
- package/out/types/src/codegen/functions/context.d.ts +5 -0
- package/out/types/src/codegen/parallelism/runtime.d.ts +2 -1
- package/out/types/src/codegen/utils/index.d.ts +2 -0
- package/out/types/src/expr.d.ts +1 -0
- package/out/types/src/target.d.ts +1 -0
- package/out/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/std/cli/arg_parser.yo +365 -0
- package/std/collections/array_list.yo +108 -0
- package/std/collections/hash_map.yo +1 -1
- package/std/collections/hash_set.yo +7 -7
- package/std/collections/linked_list.yo +1 -1
- package/std/encoding/base64.yo +73 -0
- package/std/fs/file.yo +113 -6
- package/std/fs/types.yo +21 -0
- package/std/glob/glob.yo +206 -0
- package/std/http/http.yo +196 -0
- package/std/io/reader.yo +17 -0
- package/std/io/writer.yo +19 -0
- package/std/net/tcp.yo +1 -1
- package/std/prelude.yo +69 -0
- package/std/string/string.yo +398 -4
- package/std/sync/cond.yo +19 -19
- package/std/sync/mutex.yo +16 -16
- package/std/sys/bufio/buf_reader.yo +2 -2
- package/std/sys/future.yo +3 -3
- package/std/toml/toml.yo +179 -0
- package/std/testing/assert.yo +0 -173
package/README.md
CHANGED
|
@@ -109,6 +109,25 @@ $ sudo dnf install liburing-devel
|
|
|
109
109
|
$ sudo pacman -S liburing
|
|
110
110
|
```
|
|
111
111
|
|
|
112
|
+
## Standard Library
|
|
113
|
+
|
|
114
|
+
Yo ships with a comprehensive standard library covering strings, collections, file I/O, networking, encoding, regex, crypto, and more. For the full module reference, see **[Standard Library Modules](./docs/STD_LIBRARY_MODULES.md)**.
|
|
115
|
+
|
|
116
|
+
Key modules include:
|
|
117
|
+
|
|
118
|
+
| Module | Import | Description |
|
|
119
|
+
| ----------- | ------------------------------------------------------------ | ----------------------------------------------------------- |
|
|
120
|
+
| String | `open import "std/string"` | UTF-8 strings with parsing, search, transform |
|
|
121
|
+
| Collections | `"std/collections/array_list"`, `hash_map`, `hash_set`, etc. | ArrayList, HashMap, HashSet, BTreeMap, Deque, PriorityQueue |
|
|
122
|
+
| File System | `open import "std/fs/file"` | Async file I/O, directories, metadata |
|
|
123
|
+
| Networking | `open import "std/net/tcp"` | TCP/UDP sockets, DNS resolution |
|
|
124
|
+
| JSON | `open import "std/encoding/json"` | Full JSON parser/stringifier |
|
|
125
|
+
| TOML | `"std/toml/toml"` | TOML config file parser |
|
|
126
|
+
| HTTP | `"std/http/http"` | HTTP request builder, response parser |
|
|
127
|
+
| Regex | `open import "std/regex/regex"` | Regular expression engine |
|
|
128
|
+
| Crypto | `open import "std/crypto/sha256"` | SHA-256, MD5, random |
|
|
129
|
+
| Formatting | `open import "std/fmt"` | `print`, `println` for any `ToString` type |
|
|
130
|
+
|
|
112
131
|
## Code examples
|
|
113
132
|
|
|
114
133
|
Check the [./tests](./tests/) and [./std](./std/) folders for code examples.
|