{"id":22582948,"url":"https://github.com/fuseraft/interpjs","last_synced_at":"2025-03-28T16:45:09.797Z","repository":{"id":72714422,"uuid":"45855582","full_name":"fuseraft/InterpJS","owner":"fuseraft","description":"Index-based interpolation implemented in Native JavaScript","archived":false,"fork":false,"pushed_at":"2017-01-16T14:30:48.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-02T17:29:10.450Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/fuseraft.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,"governance":null}},"created_at":"2015-11-09T17:47:04.000Z","updated_at":"2021-08-08T07:12:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"999354e3-dab1-4a1a-8b16-6e624e21247e","html_url":"https://github.com/fuseraft/InterpJS","commit_stats":null,"previous_names":["fuseraft/interpjs"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fuseraft%2FInterpJS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fuseraft%2FInterpJS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fuseraft%2FInterpJS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fuseraft%2FInterpJS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fuseraft","download_url":"https://codeload.github.com/fuseraft/InterpJS/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246068269,"owners_count":20718501,"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":[],"created_at":"2024-12-08T06:13:03.597Z","updated_at":"2025-03-28T16:45:09.753Z","avatar_url":"https://github.com/fuseraft.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## I wanted index-based string interpolation for JavaScript and was bored.\n\nSo here's **interp.js**.\n\nAnd here's a [fiddle](https://jsfiddle.net/29j1v7gy/6/) to see it in action.\n\nInterpJS appends a single function to the String object so that it supports simple index-based interpolation.\n\nYou can call `interp()` and pass parameters *like this*:\n\n`'I wish I could write {0} {1}/{2}. :S'.interp('JavaScript', 24, 7);`\n\n*which returns*:\n\n`'I wish I could write JavaScript 24/7. :S'`\n\nOr you can pass an array *like this*:\n\n`'The {0} black {1} jumped over the other {1} {0}ly.'.interp(['quick', 'fox']);`\n\n*which returns*:\n\n`The quick black fox jumped over the other fox quickly.`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuseraft%2Finterpjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffuseraft%2Finterpjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuseraft%2Finterpjs/lists"}