{"id":20464778,"url":"https://github.com/crdsonnet/jsonnetfile-libsonnet","last_synced_at":"2026-03-19T16:01:06.440Z","repository":{"id":69804259,"uuid":"595553531","full_name":"crdsonnet/jsonnetfile-libsonnet","owner":"crdsonnet","description":"Jsonnet library that can generate jsonnetfile.json for jsonnet-bundler.","archived":false,"fork":false,"pushed_at":"2023-09-16T07:23:38.000Z","size":13,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-31T23:54:57.773Z","etag":null,"topics":["jsonnet","jsonnet-libs"],"latest_commit_sha":null,"homepage":"","language":"Jsonnet","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/crdsonnet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-31T10:20:05.000Z","updated_at":"2024-01-28T21:19:00.000Z","dependencies_parsed_at":"2025-01-16T01:13:06.069Z","dependency_job_id":"56d20576-6416-4bb0-ae25-9a058fe60d58","html_url":"https://github.com/crdsonnet/jsonnetfile-libsonnet","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/crdsonnet/jsonnetfile-libsonnet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crdsonnet%2Fjsonnetfile-libsonnet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crdsonnet%2Fjsonnetfile-libsonnet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crdsonnet%2Fjsonnetfile-libsonnet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crdsonnet%2Fjsonnetfile-libsonnet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crdsonnet","download_url":"https://codeload.github.com/crdsonnet/jsonnetfile-libsonnet/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crdsonnet%2Fjsonnetfile-libsonnet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28880980,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T10:31:27.438Z","status":"ssl_error","status_checked_at":"2026-01-29T10:31:01.017Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["jsonnet","jsonnet-libs"],"created_at":"2024-11-15T13:16:27.680Z","updated_at":"2026-01-29T16:34:47.657Z","avatar_url":"https://github.com/crdsonnet.png","language":"Jsonnet","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jsonnetfile\n\n`jsonnetfile` can generate jsonnetfile.json for [jsonnet-bundler](https://github.com/jsonnet-bundler/jsonnet-bundler)\n\n\n## Install\n\n```\njb install github.com/crdsonnet/jsonnetfile-libsonnet/jsonnetfile@master\n```\n\n## Usage\n\n```jsonnet\nlocal jsonnetfile = import \"github.com/crdsonnet/jsonnetfile-libsonnet/jsonnetfile/main.libsonnet\";\n\njsonnetfile.new(legacyImports=false)\n\n```\n\n## Index\n\n* [`fn new(legacyImports=true)`](#fn-new)\n* [`fn withDependencies(value)`](#fn-withdependencies)\n* [`fn withDependenciesMixin(value)`](#fn-withdependenciesmixin)\n* [`fn withLegacyImports(value=true)`](#fn-withlegacyimports)\n* [`fn withVersion(value)`](#fn-withversion)\n* [`obj dependencies`](#obj-dependencies)\n  * [`fn withName(value)`](#fn-dependencieswithname)\n  * [`fn withSingle(value=true)`](#fn-dependencieswithsingle)\n  * [`fn withSource(value)`](#fn-dependencieswithsource)\n  * [`fn withSourceMixin(value)`](#fn-dependencieswithsourcemixin)\n  * [`fn withSum(value)`](#fn-dependencieswithsum)\n  * [`fn withVersion(value)`](#fn-dependencieswithversion)\n  * [`obj source`](#obj-dependenciessource)\n    * [`fn withGit(value)`](#fn-dependenciessourcewithgit)\n    * [`fn withGitMixin(value)`](#fn-dependenciessourcewithgitmixin)\n    * [`fn withLocal(value)`](#fn-dependenciessourcewithlocal)\n    * [`fn withLocalMixin(value)`](#fn-dependenciessourcewithlocalmixin)\n    * [`obj git`](#obj-dependenciessourcegit)\n      * [`fn withHost(value)`](#fn-dependenciessourcegitwithhost)\n      * [`fn withRepo(value)`](#fn-dependenciessourcegitwithrepo)\n      * [`fn withScheme(value)`](#fn-dependenciessourcegitwithscheme)\n      * [`fn withSubdir(value)`](#fn-dependenciessourcegitwithsubdir)\n      * [`fn withUser(value)`](#fn-dependenciessourcegitwithuser)\n    * [`obj local`](#obj-dependenciessourcelocal)\n      * [`fn withDirectory(value)`](#fn-dependenciessourcelocalwithdirectory)\n\n## Fields\n\n### fn new\n\n```ts\nnew(legacyImports=true)\n```\n\n`new` creates a jsonnetfile object\n\n\n### fn withDependencies\n\n```ts\nwithDependencies(value)\n```\n\n\n\n### fn withDependenciesMixin\n\n```ts\nwithDependenciesMixin(value)\n```\n\n\n\n### fn withLegacyImports\n\n```ts\nwithLegacyImports(value=true)\n```\n\n\n\n### fn withVersion\n\n```ts\nwithVersion(value)\n```\n\n\n\n### obj dependencies\n\n\n#### fn dependencies.withName\n\n```ts\nwithName(value)\n```\n\n\n\n#### fn dependencies.withSingle\n\n```ts\nwithSingle(value=true)\n```\n\n\n\n#### fn dependencies.withSource\n\n```ts\nwithSource(value)\n```\n\n\n\n#### fn dependencies.withSourceMixin\n\n```ts\nwithSourceMixin(value)\n```\n\n\n\n#### fn dependencies.withSum\n\n```ts\nwithSum(value)\n```\n\n\n\n#### fn dependencies.withVersion\n\n```ts\nwithVersion(value)\n```\n\n\n\n#### obj dependencies.source\n\n\n##### fn dependencies.source.withGit\n\n```ts\nwithGit(value)\n```\n\n\n\n##### fn dependencies.source.withGitMixin\n\n```ts\nwithGitMixin(value)\n```\n\n\n\n##### fn dependencies.source.withLocal\n\n```ts\nwithLocal(value)\n```\n\n\n\n##### fn dependencies.source.withLocalMixin\n\n```ts\nwithLocalMixin(value)\n```\n\n\n\n##### obj dependencies.source.git\n\n\n###### fn dependencies.source.git.withHost\n\n```ts\nwithHost(value)\n```\n\n\n\n###### fn dependencies.source.git.withRepo\n\n```ts\nwithRepo(value)\n```\n\n\n\n###### fn dependencies.source.git.withScheme\n\n```ts\nwithScheme(value)\n```\n\n\n\n###### fn dependencies.source.git.withSubdir\n\n```ts\nwithSubdir(value)\n```\n\n\n\n###### fn dependencies.source.git.withUser\n\n```ts\nwithUser(value)\n```\n\n\n\n##### obj dependencies.source.local\n\n\n###### fn dependencies.source.local.withDirectory\n\n```ts\nwithDirectory(value)\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrdsonnet%2Fjsonnetfile-libsonnet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrdsonnet%2Fjsonnetfile-libsonnet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrdsonnet%2Fjsonnetfile-libsonnet/lists"}