Updated Node API (markdown)
parent
9deea46f4f
commit
cba14c5695
@ -10,7 +10,7 @@ The Node.js API is fully compatible with `v24` (lts).
|
||||
## Features
|
||||
|
||||
- (Almost) all operations in the CyberChef web tool ([see exclusions](#excluded-operations))
|
||||
- ES6 `import` (<`v12`) and commonJS `require` capability
|
||||
- ES6 `import` and commonJS `require` capability
|
||||
- Configurable, composable operations
|
||||
- Import and run saved recipes from the CyberChef web tool with `chef.bake`
|
||||
|
||||
@ -39,7 +39,7 @@ console.log(chef.fromBase64("U28gbG9uZyBhbmQgdGhhbmtzIGZvciBhbGwgdGhlIGZpc2gu"))
|
||||
|
||||
### Convert a date and time to a different time zone
|
||||
```javascript
|
||||
// app.mjs (node.js >= v10, < v12)
|
||||
// app.mjs (node.js >= v24, < v25)
|
||||
import chef from "cyberchef";
|
||||
|
||||
console.log(chef.translateDateTimeFormat("15/06/2015 20:45:00", {
|
||||
@ -117,8 +117,6 @@ console.log(chef.toMorseCode("hello"));
|
||||
```
|
||||
|
||||
#### Named imports
|
||||
> **!** Named imports are currently not working in node `v12`
|
||||
|
||||
You can import specific operations using a [*deep import specifier*](https://nodejs.org/api/esm.html#esm_terminology):
|
||||
```javascript
|
||||
// app.mjs
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user