Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/PotentialStyx/bun-replit-plugin
Allows importing code from repls :D
https://github.com/PotentialStyx/bun-replit-plugin
Last synced: about 1 month ago
JSON representation
Allows importing code from repls :D
- Host: GitHub
- URL: https://github.com/PotentialStyx/bun-replit-plugin
- Owner: PotentialStyx
- Created: 2023-09-10T15:55:53.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-10T21:18:34.000Z (about 1 year ago)
- Last Synced: 2024-07-06T22:20:01.100Z (4 months ago)
- Language: TypeScript
- Size: 7.81 KB
- Stars: 8
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# bunimport
> [!NOTE]
> You will need to put your `connect.sid` cookie in the env var `REPLIT_TOKEN`, it should be url encoded.
> See `.env.example` for an example but replace `s%3a...` with your real `connect.sid`Put code in `index.ts`, then call `bun run build.ts && bun run out/index.js` to run it.
> [!IMPORTANT]
> If "`If you see this your code likely wont work :/`" logged in the console then build.ts has failed and `out/index.js` has not been updated with new contents.Imports are formatted like so:
```ts
import { ... } from "replit:@username/repl-slug/file/path.ts";
```Currently only ts files can be imported though all natively supported bun file types will be supported soon