{"id":15503054,"url":"https://github.com/johno/is-present","last_synced_at":"2026-05-11T07:35:14.852Z","repository":{"id":57277522,"uuid":"27897057","full_name":"johno/is-present","owner":"johno","description":"Check whether a value is present (nonblank).","archived":false,"fork":false,"pushed_at":"2015-09-30T21:12:27.000Z","size":148,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-03T20:07:54.895Z","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/johno.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":"2014-12-11T23:34:19.000Z","updated_at":"2018-03-02T16:43:41.000Z","dependencies_parsed_at":"2022-09-18T07:05:19.720Z","dependency_job_id":null,"html_url":"https://github.com/johno/is-present","commit_stats":null,"previous_names":["johnotander/is-present"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/johno/is-present","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johno%2Fis-present","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johno%2Fis-present/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johno%2Fis-present/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johno%2Fis-present/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johno","download_url":"https://codeload.github.com/johno/is-present/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johno%2Fis-present/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266303689,"owners_count":23908374,"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","status":"online","status_checked_at":"2025-07-21T11:47:31.412Z","response_time":64,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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-10-02T09:12:00.789Z","updated_at":"2026-05-11T07:35:09.834Z","avatar_url":"https://github.com/johno.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# is-present [![Build Status](https://travis-ci.org/johnotander/is-present.svg?branch=master)](https://travis-ci.org/johnotander/is-present)\n\nCheck whether a value is nonblank.\n\n## Installation\n\n```\nnpm i --save is-present\n```\n\n## Usage\n\n```javascript\nvar isPresent = require('is-present');\n\nisPresent([]);              // =\u003e false\nisPresent({});              // =\u003e false\nisPresent(0);               // =\u003e false\nisPresent(function(){});    // =\u003e false\nisPresent(null);            // =\u003e false\nisPresent(undefined);       // =\u003e false\nisPresent('');              // =\u003e false\nisPresent('    ');          // =\u003e false\nisPresent('\\r\\t\\n ');       // =\u003e false\n\nisPresent(['a', 'b']);      // =\u003e true\nisPresent({ a: 'b' });      // =\u003e true\nisPresent('string');        // =\u003e true\nisPresent(42);              // =\u003e true\nisPresent(function(a,b){}); // =\u003e true\n```\n\n## Acknowledgements\n\nA negation for [is-blank](https://github.com/johnotander/is-blank) which extends\n[is-empty](https://github.com/ianstormtaylor/is-empty) and\n[is-whitespace](https://github.com/jonschlinkert/is-whitespace).\n\n## License\n\nMIT\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\nCrafted with \u003c3 by [John Otander](http://johnotander.com) ([@4lpine](https://twitter.com/4lpine)).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohno%2Fis-present","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohno%2Fis-present","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohno%2Fis-present/lists"}