{"id":13842501,"url":"https://github.com/xmonader/nimassets","last_synced_at":"2025-06-21T14:33:27.933Z","repository":{"id":33785869,"uuid":"161587049","full_name":"xmonader/nimassets","owner":"xmonader","description":"bundle your assets into single nim file inspired by go-bindata","archived":false,"fork":false,"pushed_at":"2022-05-01T21:18:41.000Z","size":31,"stargazers_count":60,"open_issues_count":6,"forks_count":7,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-11-21T13:36:29.625Z","etag":null,"topics":["assets","assets-management","bundle","go-bindata","nim"],"latest_commit_sha":null,"homepage":null,"language":"Nim","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xmonader.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-12-13T05:11:15.000Z","updated_at":"2024-08-18T06:37:24.000Z","dependencies_parsed_at":"2022-08-08T05:00:15.557Z","dependency_job_id":null,"html_url":"https://github.com/xmonader/nimassets","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xmonader/nimassets","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xmonader%2Fnimassets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xmonader%2Fnimassets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xmonader%2Fnimassets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xmonader%2Fnimassets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xmonader","download_url":"https://codeload.github.com/xmonader/nimassets/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xmonader%2Fnimassets/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261137153,"owners_count":23114885,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["assets","assets-management","bundle","go-bindata","nim"],"created_at":"2024-08-04T17:01:37.639Z","updated_at":"2025-06-21T14:33:22.909Z","avatar_url":"https://github.com/xmonader.png","language":"Nim","funding_links":[],"categories":["Nim (13)","Nim"],"sub_categories":[],"readme":"# nimassets\n\nnimassets `Nim Assets` is heavily inspired by [go-bindata](https://github.com/jteeuwen/go-bindata) to bundle all of your assets into one single nim file.\n\n## Usage\n```bash\nnimassets 0.2.2 (Bundle your assets into nim file)\n    -h  | --help          : show help\n    -v  | --version       : show version\n    -o  | --output        : output filename\n    -f  | --fast          : faster generation\n    -d  | --dir           : dir to include (recursively) [can be used multiple times -d=DIR1 -d=DIR2 ...]\n    -t  | --type          : binary | base64 | zstd | base64zstd\n    -cl | --compresslevel : compress level for zstd, default is 3\n```\n\n### Bundle\n\nTo bundle all the files in directory `templatesdir` from the `examples` folder into single nim file `assetsfile.nim`\n```bash\ncd examples\nnimassets -d=templatesdir -o=assetsfile.nim\n```\n\n`-f` or `--fast` flag can help with large assets directories\n`-t` or `--type` encoding method, default is base64\n\n\n### Use Assets\n```\nimport assetsfile # name from -o=\u003cfilename\u003e\n\necho assetsfile.getAsset(\"templatesdir/index.html\")\n```\n\n### Development\nTo run tests, simply do `nimble test` from the root of this repository.\n\nTo compile the distributable binary, run `nimble assetsBin`. It will be built and available in `./build/nimassets`.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxmonader%2Fnimassets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxmonader%2Fnimassets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxmonader%2Fnimassets/lists"}