{"id":19319726,"url":"https://github.com/hyperoslo/nsstring-hypformula","last_synced_at":"2025-04-22T17:32:08.749Z","repository":{"id":21847863,"uuid":"25171085","full_name":"hyperoslo/NSString-HYPFormula","owner":"hyperoslo","description":"Creating and running string-based formulas have never been this easy","archived":false,"fork":false,"pushed_at":"2015-11-18T13:34:38.000Z","size":76,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":18,"default_branch":"master","last_synced_at":"2024-10-06T02:15:49.351Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://hyper.no","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hyperoslo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-10-13T18:11:55.000Z","updated_at":"2016-08-13T09:17:37.000Z","dependencies_parsed_at":"2022-08-20T02:10:10.317Z","dependency_job_id":null,"html_url":"https://github.com/hyperoslo/NSString-HYPFormula","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperoslo%2FNSString-HYPFormula","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperoslo%2FNSString-HYPFormula/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperoslo%2FNSString-HYPFormula/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperoslo%2FNSString-HYPFormula/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hyperoslo","download_url":"https://codeload.github.com/hyperoslo/NSString-HYPFormula/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223902213,"owners_count":17222330,"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-10T01:25:04.517Z","updated_at":"2024-11-10T01:25:05.245Z","avatar_url":"https://github.com/hyperoslo.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NSString-HYPFormula\n\n[![Build Status](https://img.shields.io/travis/hyperoslo/NSString-HYPFormula.svg?style=flat)](https://travis-ci.org/hyperoslo/NSString-HYPFormula)\n\nCreating and running string-based formulas have never been this easy\n\n## Number formulas\n``` objc\n\nNSDictionary *values = @{\n    @\"hourly_pay\"    : @150,\n    @\"work_per_week\" : @32.5\n};\nNSNumber *result = [@\"hourly_pay * work_per_week\" hyp_runFormulaWithDictionary:values];\n// result: 4875\n```\n\n## String formulas\n``` objc\n\nNSDictionary *values = @{\n    @\"first_name\" : @\"John\",\n    @\"last_name\"  : @\"Appleseed\"\n};\nNSString *result = [@\"first_name last_name\" hyp_runFormulaWithDictionary:values];\n// result: \"John Appleseed\"\n```\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n\n## Credits\n\n[Hyper](http://hyper.no) made this. We're a digital communications agency with a passion for good code,\nand if you're using this library we probably want to hire you.\n\n## License\n\nNSString-HYPFormula is available under the MIT license. See the [LICENSE](https://raw.githubusercontent.com/hyperoslo/NSString-HYPFormula/master/LICENSE.md) file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyperoslo%2Fnsstring-hypformula","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhyperoslo%2Fnsstring-hypformula","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyperoslo%2Fnsstring-hypformula/lists"}