feat: renaming js => javascript
This commit is contained in:
@@ -20,7 +20,7 @@ pub mod linux {
|
||||
///
|
||||
/// # Example
|
||||
///
|
||||
/// ```js
|
||||
/// ```javascript
|
||||
/// import "api::linux" as linux;
|
||||
///
|
||||
/// let k_version = linux::get_kernel_version();
|
||||
@@ -44,7 +44,7 @@ pub mod linux {
|
||||
///
|
||||
/// # Example
|
||||
///
|
||||
/// ```js
|
||||
/// ```javascript
|
||||
/// import "api::linux" as linux;
|
||||
///
|
||||
/// let battery_perc = linux::get_battery_perc();
|
||||
@@ -88,7 +88,7 @@ pub mod linux {
|
||||
///
|
||||
/// # Example
|
||||
///
|
||||
/// ```js
|
||||
/// ```javascript
|
||||
/// import "api::linux" as linux;
|
||||
///
|
||||
/// let cpu_info = linux::get_cpu_info();
|
||||
@@ -143,7 +143,7 @@ pub mod linux {
|
||||
///
|
||||
/// # Example
|
||||
///
|
||||
/// ```js
|
||||
/// ```javascript
|
||||
/// import "api::linux" as linux;
|
||||
///
|
||||
/// let ram_info = linux::get_ram_info();
|
||||
@@ -201,7 +201,7 @@ pub mod linux {
|
||||
///
|
||||
/// # Example
|
||||
///
|
||||
/// ```js
|
||||
/// ```javascript
|
||||
/// import "api::linux" as linux;
|
||||
///
|
||||
/// let gpu_info = linux::get_gpu_info();
|
||||
@@ -272,7 +272,7 @@ pub mod linux {
|
||||
///
|
||||
/// # Example
|
||||
///
|
||||
/// ```js
|
||||
/// ```javascript
|
||||
/// import "api::linux" as linux;
|
||||
///
|
||||
/// let disk_info = linux::get_disk_info();
|
||||
|
||||
@@ -21,7 +21,7 @@ pub mod wifi {
|
||||
///
|
||||
/// # Example
|
||||
///
|
||||
/// ```js
|
||||
/// ```javascript
|
||||
/// import "api::wifi" as wifi;
|
||||
///
|
||||
/// let networks = wifi::scan();
|
||||
@@ -66,7 +66,7 @@ pub mod wifi {
|
||||
///
|
||||
/// # Example
|
||||
///
|
||||
/// ```js
|
||||
/// ```javascript
|
||||
/// import "api::wifi" as wifi;
|
||||
///
|
||||
/// let networks = wifi::scan();
|
||||
@@ -111,7 +111,7 @@ pub mod wifi {
|
||||
///
|
||||
/// # Example
|
||||
///
|
||||
/// ```js
|
||||
/// ```javascript
|
||||
/// import "api::wifi" as wifi;
|
||||
///
|
||||
/// let networks = wifi::scan();
|
||||
@@ -146,7 +146,7 @@ pub mod wifi {
|
||||
///
|
||||
/// # Example
|
||||
///
|
||||
/// ```js
|
||||
/// ```javascript
|
||||
/// import "api::wifi" as wifi;
|
||||
///
|
||||
/// let connection = wifi::current_connection();
|
||||
@@ -225,7 +225,7 @@ pub mod wifi {
|
||||
///
|
||||
/// # Example
|
||||
///
|
||||
/// ```js
|
||||
/// ```javascript
|
||||
/// import "api::wifi" as wifi;
|
||||
///
|
||||
/// wifi::connect("MySecretNetwork", "password123");
|
||||
@@ -277,7 +277,7 @@ pub mod wifi {
|
||||
///
|
||||
/// # Example
|
||||
///
|
||||
/// ```js
|
||||
/// ```javascript
|
||||
/// import "api::wifi" as wifi;
|
||||
///
|
||||
/// wifi::connect_without_password("MySecretNetwork", "password123");
|
||||
@@ -329,7 +329,7 @@ pub mod wifi {
|
||||
///
|
||||
/// # Example
|
||||
///
|
||||
/// ```js
|
||||
/// ```javascript
|
||||
/// import "api::wifi" as wifi;
|
||||
///
|
||||
/// wifi::disconnect();
|
||||
@@ -402,7 +402,7 @@ pub mod wifi {
|
||||
///
|
||||
/// # Example
|
||||
///
|
||||
/// ```js
|
||||
/// ```javascript
|
||||
/// import "api::wifi" as wifi;
|
||||
///
|
||||
/// wifi::disable_adapter();
|
||||
@@ -453,7 +453,7 @@ pub mod wifi {
|
||||
///
|
||||
/// # Example
|
||||
///
|
||||
/// ```js
|
||||
/// ```javascript
|
||||
/// import "api::wifi" as wifi;
|
||||
///
|
||||
/// wifi::enable_adapter();
|
||||
@@ -516,7 +516,7 @@ pub mod wifi {
|
||||
///
|
||||
/// # Example
|
||||
///
|
||||
/// ```js
|
||||
/// ```javascript
|
||||
/// import "api::wifi" as wifi;
|
||||
///
|
||||
/// wifi::enable_adapter();
|
||||
|
||||
@@ -17,7 +17,7 @@ pub mod command {
|
||||
///
|
||||
/// # Example
|
||||
///
|
||||
/// ```js
|
||||
/// ```javascript
|
||||
/// import "std::command" as cmd;
|
||||
///
|
||||
/// // Run a shell command (e.g., list directory contents)
|
||||
@@ -46,7 +46,7 @@ pub mod command {
|
||||
///
|
||||
/// # Example
|
||||
///
|
||||
/// ```js
|
||||
/// ```javascript
|
||||
/// import "std::command" as cmd;
|
||||
///
|
||||
/// // Run a shell command and capture its output
|
||||
|
||||
@@ -16,7 +16,7 @@ pub mod env {
|
||||
///
|
||||
/// # Example
|
||||
///
|
||||
/// ```js
|
||||
/// ```javascript
|
||||
/// import "std::env" as env;
|
||||
///
|
||||
/// // Get the value of the "HOME" environment variable
|
||||
@@ -41,7 +41,7 @@ pub mod env {
|
||||
///
|
||||
/// # Example
|
||||
///
|
||||
/// ```js
|
||||
/// ```javascript
|
||||
/// import "std::env" as env;
|
||||
///
|
||||
/// // Set the value of the "MY_VAR" environment variable
|
||||
@@ -60,7 +60,7 @@ pub mod env {
|
||||
///
|
||||
/// # Example
|
||||
///
|
||||
/// ```js
|
||||
/// ```javascript
|
||||
/// import "std::env" as env;
|
||||
///
|
||||
/// // Get the home directory
|
||||
@@ -81,7 +81,7 @@ pub mod env {
|
||||
///
|
||||
/// # Example
|
||||
///
|
||||
/// ```js
|
||||
/// ```javascript
|
||||
/// import "std::env" as env;
|
||||
///
|
||||
/// // Get the current working directory
|
||||
@@ -106,7 +106,7 @@ pub mod env {
|
||||
///
|
||||
/// # Example
|
||||
///
|
||||
/// ```js
|
||||
/// ```javascript
|
||||
/// import "std::env" as env;
|
||||
///
|
||||
/// // Get the username of the current user
|
||||
|
||||
@@ -12,7 +12,7 @@ pub mod monitor {
|
||||
///
|
||||
/// # Example
|
||||
///
|
||||
/// ```js
|
||||
/// ```javascript
|
||||
/// import "std::monitor" as monitor;
|
||||
///
|
||||
/// let count = monitor::count();
|
||||
@@ -30,7 +30,7 @@ pub mod monitor {
|
||||
///
|
||||
/// # Example
|
||||
///
|
||||
/// ```js
|
||||
/// ```javascript
|
||||
/// import "std::monitor" as monitor;
|
||||
///
|
||||
/// let resolution = monitor::primary_resolution();
|
||||
@@ -49,7 +49,7 @@ pub mod monitor {
|
||||
///
|
||||
/// # Example
|
||||
///
|
||||
/// ```js
|
||||
/// ```javascript
|
||||
/// import "std::monitor" as monitor;
|
||||
///
|
||||
/// let resolution_str = monitor::primary_resolution_str();
|
||||
@@ -68,7 +68,7 @@ pub mod monitor {
|
||||
///
|
||||
/// # Example
|
||||
///
|
||||
/// ```js
|
||||
/// ```javascript
|
||||
/// import "std::monitor" as monitor;
|
||||
///
|
||||
/// let resolutions = monitor::all_resolutions();
|
||||
@@ -86,7 +86,7 @@ pub mod monitor {
|
||||
///
|
||||
/// # Example
|
||||
///
|
||||
/// ```js
|
||||
/// ```javascript
|
||||
/// import "std::monitor" as monitor;
|
||||
///
|
||||
/// let resolutions_str = monitor::all_resolutions_str();
|
||||
@@ -112,7 +112,7 @@ pub mod monitor {
|
||||
///
|
||||
/// # Example
|
||||
///
|
||||
/// ```js
|
||||
/// ```javascript
|
||||
/// import "std::monitor" as monitor;
|
||||
///
|
||||
/// let dimensions = monitor::dimensions(0);
|
||||
@@ -135,7 +135,7 @@ pub mod monitor {
|
||||
///
|
||||
/// # Example
|
||||
///
|
||||
/// ```js
|
||||
/// ```javascript
|
||||
/// import "std::monitor" as monitor;
|
||||
///
|
||||
/// let dimensions_str = monitor::dimensions_str(0);
|
||||
@@ -158,7 +158,7 @@ pub mod monitor {
|
||||
///
|
||||
/// # Example
|
||||
///
|
||||
/// ```js
|
||||
/// ```javascript
|
||||
/// import "std::monitor" as monitor;
|
||||
///
|
||||
/// let dpi = monitor::dpi(0);
|
||||
@@ -180,7 +180,7 @@ pub mod monitor {
|
||||
///
|
||||
/// # Example
|
||||
///
|
||||
/// ```js
|
||||
/// ```javascript
|
||||
/// import "std::monitor" as monitor;
|
||||
///
|
||||
/// let dpi_str = monitor::dpi_str(0);
|
||||
|
||||
@@ -16,7 +16,7 @@ pub mod text {
|
||||
///
|
||||
/// # Example
|
||||
///
|
||||
/// ```js
|
||||
/// ```javascript
|
||||
/// import "std::text" as text;
|
||||
///
|
||||
/// let result = text::to_slug("Hello World!");
|
||||
@@ -48,7 +48,7 @@ pub mod text {
|
||||
///
|
||||
/// # Example
|
||||
///
|
||||
/// ```js
|
||||
/// ```javascript
|
||||
/// import "std::text" as text;
|
||||
///
|
||||
/// let result = text::to_camel_case("hello world example");
|
||||
@@ -93,7 +93,7 @@ pub mod text {
|
||||
///
|
||||
/// # Example
|
||||
///
|
||||
/// ```js
|
||||
/// ```javascript
|
||||
/// import "std::text" as text;
|
||||
///
|
||||
/// let result = text::truncate_chars("Hello World!", 5);
|
||||
@@ -118,7 +118,7 @@ pub mod text {
|
||||
///
|
||||
/// # Example
|
||||
///
|
||||
/// ```js
|
||||
/// ```javascript
|
||||
/// import "std::text" as text;
|
||||
///
|
||||
/// let result = text::to_upper("hello");
|
||||
@@ -140,7 +140,7 @@ pub mod text {
|
||||
///
|
||||
/// # Example
|
||||
///
|
||||
/// ```js
|
||||
/// ```javascript
|
||||
/// import "std::text" as text;
|
||||
///
|
||||
/// let result = text::to_lower("HELLO");
|
||||
|
||||
@@ -57,7 +57,7 @@ These functions are built-in and available globally, meaning they can be used di
|
||||
|
||||
For example, to get the value of PI, you can simply write:
|
||||
|
||||
```js
|
||||
```javascript
|
||||
let x = PI();
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user