{"id":21387510,"url":"https://github.com/nju33/nullpo","last_synced_at":"2025-06-12T07:03:24.469Z","repository":{"id":65466487,"uuid":"86996220","full_name":"nju33/nullpo","owner":"nju33","description":"Remove falsey values from array and object","archived":false,"fork":false,"pushed_at":"2018-03-09T08:51:58.000Z","size":95,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-26T15:43:05.769Z","etag":null,"topics":["array","compact","object"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/nullpo","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/nju33.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":"2017-04-02T15:39:25.000Z","updated_at":"2017-04-02T15:43:10.000Z","dependencies_parsed_at":"2023-02-20T20:30:58.229Z","dependency_job_id":null,"html_url":"https://github.com/nju33/nullpo","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/nju33%2Fnullpo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nju33%2Fnullpo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nju33%2Fnullpo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nju33%2Fnullpo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nju33","download_url":"https://codeload.github.com/nju33/nullpo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235204562,"owners_count":18952331,"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":["array","compact","object"],"created_at":"2024-11-22T12:13:25.321Z","updated_at":"2025-01-23T00:14:35.141Z","avatar_url":"https://github.com/nju33.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nullpo\n\nRemove falsey values from array and object\n\n![npm: nullpo](https://img.shields.io/npm/v/nullpo.svg)\n[![CircleCI](https://circleci.com/gh/nju33/nullpo.svg?style=svg\u0026circle-token=b9754c3905f1550fda28736f28fc2a4a4ca08735)](https://circleci.com/gh/nju33/nullpo)\n[![Coverage Status](https://coveralls.io/repos/github/nju33/nullpo/badge.svg?branch=master)](https://coveralls.io/github/nju33/nullpo?branch=master)\n[![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)\n[![TypeScript](https://badges.frapsoft.com/typescript/code/typescript.svg?v=101)](https://github.com/ellerbrock/typescript-badges/)\n\n## Install\n\n```bash\nyarn add [-D] nullpo\n```\n\n## Usage\n\n```js\nimport nullpo from 'nullpo';\n\nnullpo(['foo', null, '', 123, false, () =\u003e {}]);\n// [ 'foo', 123, [Function] ]\n\nnullpo({\n  foo: 'foo',\n  null: null,\n  empty: '',\n  number: 123,\n  boolean: false,\n  function() {}\n});\n// {\n//   foo: 'foo',\n//   number: 123,\n//   function: [Function: function]\n// }\n\n\nnullpo('foo');  // 'foo'\nnullpo(123);  // 123\n```\n\n## API\n\n```ts\nexport type NullpoArray = any[];\nexport type NullpoObject = {[k: string]: any};\n\ndeclare function nullpo(args: NullpoArray): NullpoArray;\ndeclare function nullpo(args: NullpoObject): NullpoObject;\ndeclare function nullpo(args: any): any;\n\n```\n\n## Lisence\n\nThe MIT License (MIT)\n\nCopyright (c) 2017 nju33 \u003cnju33.ki@gmail.com\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnju33%2Fnullpo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnju33%2Fnullpo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnju33%2Fnullpo/lists"}