{"id":17104579,"url":"https://github.com/imyelo/barrow","last_synced_at":"2026-05-11T02:03:54.814Z","repository":{"id":28513598,"uuid":"32030235","full_name":"imyelo/barrow","owner":"imyelo","description":null,"archived":false,"fork":false,"pushed_at":"2016-04-27T07:02:33.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-04T09:07:43.298Z","etag":null,"topics":["adapter","javascript","json","mapping","nodejs"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/imyelo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-11T17:05:44.000Z","updated_at":"2017-08-17T19:40:58.000Z","dependencies_parsed_at":"2022-08-02T11:58:08.654Z","dependency_job_id":null,"html_url":"https://github.com/imyelo/barrow","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imyelo%2Fbarrow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imyelo%2Fbarrow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imyelo%2Fbarrow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imyelo%2Fbarrow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imyelo","download_url":"https://codeload.github.com/imyelo/barrow/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245162189,"owners_count":20570692,"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":["adapter","javascript","json","mapping","nodejs"],"created_at":"2024-10-14T15:37:20.455Z","updated_at":"2026-05-11T02:03:49.769Z","avatar_url":"https://github.com/imyelo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# barrow\n\n## Usage\n``` \nvar origin ={\n  a: '3',\n  b: [\n    {\n      c: 'Peter'\n    },\n    {\n      c: 'Paul'\n    }\n  ],\n  d: {\n    e: '300'\n  },\n  f: -1\n};\nvar mapping = {\n  user: Barrow.Types.repeat('b', {\n    name: 'c'\n  }),\n  _page: 'a',\n  _extra: {\n    status: 'd.e|number'\n  },\n  _ok: Barrow.Types.func(function (source) {\n    return source.f \u003e -1;\n  }),\n  _from: Barrow.Types.val('barrow')\n};\nconsole.log(Barrow(mapping).transfer(source));\n// {\n//    user: [\n//      {\n//        name: 'Peter'\n//      },\n//      {\n//        name: 'Paul'\n//      }\n//    ],\n//    _page: '3',\n//    _extra: {\n//      status: 300\n//    },\n//    _ok: false,\n//    _from: 'barrow'\n//  };\n```\n\n## License\nthe MIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimyelo%2Fbarrow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimyelo%2Fbarrow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimyelo%2Fbarrow/lists"}