{"id":19878640,"url":"https://github.com/ironsource/node-dynamodb-path","last_synced_at":"2026-06-13T14:33:35.102Z","repository":{"id":57217835,"uuid":"44888969","full_name":"ironSource/node-dynamodb-path","owner":"ironSource","description":null,"archived":false,"fork":false,"pushed_at":"2015-10-26T09:49:39.000Z","size":120,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-11-27T09:32:27.198Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/ironSource.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}},"created_at":"2015-10-24T23:27:19.000Z","updated_at":"2015-10-26T09:49:40.000Z","dependencies_parsed_at":"2022-08-28T21:40:36.731Z","dependency_job_id":null,"html_url":"https://github.com/ironSource/node-dynamodb-path","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ironSource/node-dynamodb-path","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ironSource%2Fnode-dynamodb-path","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ironSource%2Fnode-dynamodb-path/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ironSource%2Fnode-dynamodb-path/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ironSource%2Fnode-dynamodb-path/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ironSource","download_url":"https://codeload.github.com/ironSource/node-dynamodb-path/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ironSource%2Fnode-dynamodb-path/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34288664,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-13T02:00:06.617Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-12T17:06:11.055Z","updated_at":"2026-06-13T14:33:35.086Z","avatar_url":"https://github.com/ironSource.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dynamodb-path\r\n\r\n**Convert an array path like `['x', '291', '2', 'beep', 283]` to a string path like `#x[291][2].#beep[283]` suitable for DynamoDB UpdateExpressions.**\r\n\r\n[![npm status](http://img.shields.io/npm/v/dynamodb-path.svg?style=flat-square)](https://www.npmjs.org/package/dynamodb-path) [![Dependency status](https://img.shields.io/david/ironSource/node-dynamodb-path.svg?style=flat-square)](https://david-dm.org/ironSource/node-dynamodb-path)\r\n\r\n## example\r\n\r\n```js\r\nvar ddbPath = require('dynamodb-path')\r\nvar escape = (s) =\u003e '#' + s\r\n\r\nvar arr = ['x', '291', '2', 'beep', 283]\r\nvar str = ddbPath(arr, escape)\r\n\r\nconsole.log(str) // #x[291][2].#beep[283]\r\n```\r\n\r\n## api\r\n\r\n### `ddbPath(path[, map])`\r\n\r\nTakes an array, returns a string. Will throw if `path` is invalid. If a `map` function is provided, it will be called for every string segment. You can use this mapper to escape segments and collect names for ExpressionAttributeNames.\r\n\r\n## install\r\n\r\nWith [npm](https://npmjs.org) do:\r\n\r\n```\r\nnpm install dynamodb-path\r\n```\r\n\r\n## license\r\n\r\n[MIT](http://opensource.org/licenses/MIT) © ironSource\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fironsource%2Fnode-dynamodb-path","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fironsource%2Fnode-dynamodb-path","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fironsource%2Fnode-dynamodb-path/lists"}