{"id":15814091,"url":"https://github.com/mateusmaso/underscore.prefilter","last_synced_at":"2025-04-01T01:50:14.403Z","repository":{"id":11024285,"uuid":"13354578","full_name":"mateusmaso/underscore.prefilter","owner":"mateusmaso","description":"Underscore helper for pre-filtering methods before calling them","archived":false,"fork":false,"pushed_at":"2015-02-10T06:57:13.000Z","size":188,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-06T04:22:10.241Z","etag":null,"topics":["javascript","prefilter","underscore"],"latest_commit_sha":null,"homepage":"","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/mateusmaso.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-10-05T23:49:10.000Z","updated_at":"2015-02-10T06:56:30.000Z","dependencies_parsed_at":"2022-09-03T02:10:40.500Z","dependency_job_id":null,"html_url":"https://github.com/mateusmaso/underscore.prefilter","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/mateusmaso%2Funderscore.prefilter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mateusmaso%2Funderscore.prefilter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mateusmaso%2Funderscore.prefilter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mateusmaso%2Funderscore.prefilter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mateusmaso","download_url":"https://codeload.github.com/mateusmaso/underscore.prefilter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246569007,"owners_count":20798341,"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":["javascript","prefilter","underscore"],"created_at":"2024-10-05T04:22:27.471Z","updated_at":"2025-04-01T01:50:14.386Z","avatar_url":"https://github.com/mateusmaso.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"underscore.prefilter [![Build Status](https://travis-ci.org/mateusmaso/underscore.prefilter.svg?branch=master)](https://travis-ci.org/mateusmaso/underscore.prefilter)\n====================\n\nThis library is an extension for Underscore which allows wrapping a conditional method before executing the main one, if true it calls the subsequent method.\n\n## Features\n\n* Prevent functions to be called unintentionally.\n\n## Dependencies\n\n* underscore.js (\u003e= 1.5.0)\n\n## Node\n\n```javascript\nvar _ = require('underscore');\n_.mixin(require('underscore.prefilter'));\n```\n\n## Examples\n\n```javascript\nvar bark = function(sentence) {\n  console.log(\"woof \" + sentence + \"!\");\n};\n\nbark = _.prefilter(bark, function(sentence) {\n  return !_.isNumber(sentence);\n});\n\nbark(\"woof\"); // woof woof!\nbark(123); // undefined\n```\n\n## License\n\nCopyright (c) 2013-2014 Mateus Maso. Released under an MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmateusmaso%2Funderscore.prefilter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmateusmaso%2Funderscore.prefilter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmateusmaso%2Funderscore.prefilter/lists"}