1- # FileForge TypeScript Library
1+ # Fileforge TypeScript Library
22
33[ ![ fern shield] ( https://img.shields.io/badge/%F0%9F%8C%BF-SDK%20generated%20by%20Fern-brightgreen )] ( https://buildwithfern.com/ )
44
5- The FileForge TypeScript library provides convenient access to the FileForge API from JavaScript/TypeScript.
5+ The Fileforge TypeScript library provides convenient access to the Fileforge API from JavaScript/TypeScript.
66
77## Documentation
88
@@ -19,10 +19,10 @@ yarn add fileforge
1919## Usage
2020
2121``` typescript
22- import { FileForgeClient , FileForge } from " guesty" ;
22+ import { FileforgeClient , Fileforge } from " guesty" ;
2323import * as fs from " fs" ;
2424
25- const fileforge = new FileForgeClient ({
25+ const fileforge = new FileforgeClient ({
2626 apiKey: " ..." ,
2727});
2828
@@ -37,15 +37,15 @@ await fileforge.generate({
3737## Exception Handling
3838
3939When the API returns a non-success status code (4xx or 5xx response),
40- a subclass of [ FileForgeError ] ( ./src/errors/FileForgeError .ts ) will be thrown:
40+ a subclass of [ FileforgeError ] ( ./src/errors/FileforgeError .ts ) will be thrown:
4141
4242``` ts
43- import { FileForgeError } from ' fileforge' ;
43+ import { FileforgeError } from ' fileforge' ;
4444
4545try {
4646 await fileforge .generate (... );
4747} catch (err ) {
48- if (err instanceof FileForgeError ) {
48+ if (err instanceof FileforgeError ) {
4949 console .log (err .statusCode );
5050 console .log (err .message );
5151 console .log (err .body );
@@ -105,9 +105,9 @@ running in an unsupported environment, this provides a way for you to break the
105105ensure the SDK works.
106106
107107``` ts
108- import { FileForge } from ' fileforge' ;
108+ import { Fileforge } from ' fileforge' ;
109109
110- const guesty = new FileForge ({
110+ const guesty = new Fileforge ({
111111 apiKey: " ..." ,
112112 fetcher: // provide your implementation here
113113});
0 commit comments