| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
Complete API documentation for @neabyte/textshift.
| Export | Purpose | Usage |
|---|---|---|
| TextTransform | Text transformation class | TextTransform.uppercase('hello') |
| JsonFormatter | JSON formatting class | JsonFormatter.beautify('{"a":1}') |
| TextshiftResult | Unified result type | { data?: string, error?: string } |
All methods return TextshiftResult. Exactly one of data or error is set, never both.
const result = TextTransform.uppercase('hello')
if (result.error) {
console.error(result.error)
} else {
console.log(result.data) // 'HELLO'
}| Back | FazBrowse Home | New Git URL |