{"id":21811501,"url":"https://github.com/dnbard/stringyjs","last_synced_at":"2025-03-21T09:15:15.115Z","repository":{"id":16913551,"uuid":"19674779","full_name":"dnbard/StringyJS","owner":"dnbard","description":null,"archived":false,"fork":false,"pushed_at":"2014-05-13T18:42:29.000Z","size":156,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-26T05:41:20.049Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dnbard.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":"2014-05-11T19:05:10.000Z","updated_at":"2014-05-13T18:42:29.000Z","dependencies_parsed_at":"2022-09-24T11:01:32.008Z","dependency_job_id":null,"html_url":"https://github.com/dnbard/StringyJS","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnbard%2FStringyJS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnbard%2FStringyJS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnbard%2FStringyJS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnbard%2FStringyJS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dnbard","download_url":"https://codeload.github.com/dnbard/StringyJS/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244767798,"owners_count":20507110,"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-11-27T13:45:12.353Z","updated_at":"2025-03-21T09:15:15.088Z","avatar_url":"https://github.com/dnbard.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"#StringyJS\n\nJavascript library for working with strings.\n\n##Instalation\n* Download minified version `stringy.min.js` or debug ready version `stringy.js` of library from `dist` folder.\n* Put `\u003cscript type=\"text/javascript\" src=\"stringy.min.js\"\u003e\u003c/script\u003e` to your html file\n\n##Initialization\nStringyJS is AMD ready. You can use RequireJS or not use it (this way you can use StringyJS methods from window.Stringy global object).\n\n###Capitalize\nCapitalizes the first character in the string. If `all` is true, all words in the string will be capitalized.\n\n    Stringy.capitalize(string[, all]);\n    Stringy.capitalize('capitalize one word');\n    =\u003e Capitalize one word\n\n    Stringy.capitalize('capitalize all words', true);\n    =\u003e Capitalize All Words\n\n\n###Contain\nReturns true if the string matches search criteria(search for `what` in `where`). It may be a string or regex.\n\n    Stringy.contain(where, what);\n    Stringy.contain('Summertime', 'Summer');\n    =\u003e True\n\n    Stringy.contain('What is love?', /love/);\n    =\u003e True\n\n\n###Templates\nAssigns variables to tokens in a string. If an object is passed, it's properties can be assigned using the object's keys `{name}`, otherwise it can be accessed by the argument number beginning with `0`.\n\n    Stringy.template(template[, *arguments]);\n    Stringy.template('This is {0}!', 'template');\n    =\u003e This is template!\n    \n    Stringy.template('This is {param} template {what}', {\n      param: 'named',\n      what: 'placeholder'\n    });\n    =\u003e This is named template placeholder","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdnbard%2Fstringyjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdnbard%2Fstringyjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdnbard%2Fstringyjs/lists"}