https://github.com/tmaize/assetfs
This package can embed binary data into a deno source code
https://github.com/tmaize/assetfs
Last synced: 17 days ago
JSON representation
This package can embed binary data into a deno source code
- Host: GitHub
- URL: https://github.com/tmaize/assetfs
- Owner: TMaize
- Created: 2022-03-26T16:22:18.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-03-26T17:02:21.000Z (about 4 years ago)
- Last Synced: 2025-01-14T20:24:59.152Z (over 1 year ago)
- Language: TypeScript
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# assetfs
This package can embed binary data into a deno source code.
You can embed configuration files into source code, and build single file by `deno bundle`.
## Usage
```sh
deno run --allow-read --allow-write https://deno.land/x/assetfs/build.ts --input ./example --output example_data.ts
```
Or installs as an executable file
```sh
deno install --allow-read --allow-write -n assetfs_build https://deno.land/x/assetfs/build.ts
assetfs_build --input ./example --output example_data.ts
```
[example.ts](./example.ts)
```js
import * as fs from './example_data.ts'
```