{"id":20373078,"url":"https://github.com/gluons/nvl","last_synced_at":"2025-03-04T20:43:50.824Z","repository":{"id":65370004,"uuid":"75474725","full_name":"gluons/NVL","owner":"gluons","description":"🚮 Replace a blank value with fallback value.","archived":false,"fork":false,"pushed_at":"2020-10-13T17:10:46.000Z","size":454,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-15T06:27:11.442Z","etag":null,"topics":["blank","javascript","null","nvl"],"latest_commit_sha":null,"homepage":"https://npm.im/nvl","language":"TypeScript","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/gluons.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":"2016-12-03T13:18:57.000Z","updated_at":"2022-12-08T23:50:35.000Z","dependencies_parsed_at":"2023-01-19T23:15:19.782Z","dependency_job_id":null,"html_url":"https://github.com/gluons/NVL","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gluons%2FNVL","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gluons%2FNVL/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gluons%2FNVL/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gluons%2FNVL/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gluons","download_url":"https://codeload.github.com/gluons/NVL/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241921836,"owners_count":20042763,"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":["blank","javascript","null","nvl"],"created_at":"2024-11-15T01:16:26.165Z","updated_at":"2025-03-04T20:43:50.796Z","avatar_url":"https://github.com/gluons.png","language":"TypeScript","readme":"# NVL\n[![license](https://img.shields.io/github/license/gluons/NVL.svg?style=flat-square)](https://github.com/gluons/NVL/blob/master/LICENSE)\n[![npm](https://img.shields.io/npm/v/nvl.svg?style=flat-square)](https://www.npmjs.com/package/nvl)\n[![npm](https://img.shields.io/npm/dt/nvl.svg?style=flat-square)](https://www.npmjs.com/package/nvl)\n[![TSLint](https://img.shields.io/badge/TSLint-gluons-15757B.svg?style=flat-square)](https://github.com/gluons/tslint-config-gluons)\n[![Travis](https://img.shields.io/travis/gluons/NVL.svg?style=flat-square)](https://travis-ci.org/gluons/NVL)\n\n🚮 Replace a blank value with fallback value.\n\n## Installation\n\n```bash\nnpm install nvl\n# Or Yarn\nyarn add nvl\n```\n\n## Usage\n\n```javascript\nconst nvl = require('nvl');\n\nlet notYet = void 0; // undefined\nlet nil = null;\n\nnvl(notYet, true); // -\u003e true\nnvl(nil, 1); // -\u003e 1\nnvl([], [1]); // -\u003e []\nnvl({}, { a: 1, b: 2}); // -\u003e {}\nnvl(false, true); // -\u003e false\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgluons%2Fnvl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgluons%2Fnvl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgluons%2Fnvl/lists"}