-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
997 additions
and
1,217 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
[**JScrewIt**](../README.md) • **Docs** | ||
|
||
*** | ||
|
||
# Function: encode() | ||
|
||
> **encode**(`input`, `options`?): `string` | ||
Encodes a given string into JSFuck. | ||
|
||
## Parameters | ||
|
||
• **input**: `string` | ||
|
||
The string to encode. | ||
|
||
• **options?**: [`EncodeOptions`](../interfaces/EncodeOptions.md) | ||
|
||
An optional object specifying encoding options. | ||
|
||
## Returns | ||
|
||
`string` | ||
|
||
The encoded string. | ||
|
||
## Throws | ||
|
||
An `Error` is thrown under the following circumstances. | ||
- The specified string cannot be encoded with the specified options. | ||
- Some unknown features were specified. | ||
- A combination of mutually incompatible features was specified. | ||
- The option `runAs` (or `wrapWith`) was specified with an invalid value. | ||
|
||
Also, an out of memory condition may occur when processing very large data. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.