{"id":15828975,"url":"https://github.com/afeiship/next-filter-nil","last_synced_at":"2025-04-01T11:11:47.678Z","repository":{"id":57112655,"uuid":"209976631","full_name":"afeiship/next-filter-nil","owner":"afeiship","description":"Filter null/undefined value.","archived":false,"fork":false,"pushed_at":"2020-11-22T09:30:18.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-06T08:08:32.716Z","etag":null,"topics":["filter","next","nil","null","undefined"],"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/afeiship.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":"2019-09-21T11:52:18.000Z","updated_at":"2020-11-22T09:30:20.000Z","dependencies_parsed_at":"2022-08-21T02:40:33.068Z","dependency_job_id":null,"html_url":"https://github.com/afeiship/next-filter-nil","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-filter-nil","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-filter-nil/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-filter-nil/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-filter-nil/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/afeiship","download_url":"https://codeload.github.com/afeiship/next-filter-nil/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246628229,"owners_count":20808106,"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":["filter","next","nil","null","undefined"],"created_at":"2024-10-05T11:00:25.699Z","updated_at":"2025-04-01T11:11:47.658Z","avatar_url":"https://github.com/afeiship.png","language":"JavaScript","readme":"# next-filter-nil\n\u003e Filter null/undefined value.\n\n[![version][version-image]][version-url]\n[![license][license-image]][license-url]\n[![size][size-image]][size-url]\n[![download][download-image]][download-url]\n\n## installation\n```bash\nnpm install -S @jswork/next-filter-nil\n```\n\n## usage\n```js\nimport '@jswork/next-filter-nil';\n\nnx.filterNil({\n  left: null,\n  right: 0,\n  title: {\n    text: '堆叠区域图'\n  },\n  tooltip: {\n    trigger: 'axis',\n    axisPointer: {\n      type: 'cross',\n      label: {\n        left: null,\n        right: 10,\n        backgroundColor: '#6a7985'\n      }\n    }\n  },\n  legend: {\n    data: ['邮件营销', '联盟广告', '视频广告', '直接访问', '搜索引擎']\n  },\n  toolbox: {\n    feature: {\n      saveAsImage: {\n        target: null\n      }\n    }\n  }\n},null);\n\n\n// ================= result  ================= \n{\n  right: 0,\n  title: {\n    text: '堆叠区域图'\n  },\n  tooltip: {\n    trigger: 'axis',\n    axisPointer: {\n      type: 'cross',\n      label: {\n        right: 10,\n        backgroundColor: '#6a7985'\n      }\n    }\n  },\n  legend: {\n    data: ['邮件营销', '联盟广告', '视频广告', '直接访问', '搜索引擎']\n  },\n  toolbox: {\n    feature: {\n      saveAsImage: { }\n    }\n  }\n}\n```\n\n## license\nCode released under [the MIT license](https://github.com/afeiship/next-filter-nil/blob/master/LICENSE.txt).\n\n[version-image]: https://img.shields.io/npm/v/@jswork/next-filter-nil\n[version-url]: https://npmjs.org/package/@jswork/next-filter-nil\n\n[license-image]: https://img.shields.io/npm/l/@jswork/next-filter-nil\n[license-url]: https://github.com/afeiship/next-filter-nil/blob/master/LICENSE.txt\n\n[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-filter-nil\n[size-url]: https://github.com/afeiship/next-filter-nil/blob/master/dist/next-filter-nil.min.js\n\n[download-image]: https://img.shields.io/npm/dm/@jswork/next-filter-nil\n[download-url]: https://www.npmjs.com/package/@jswork/next-filter-nil\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Fnext-filter-nil","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fafeiship%2Fnext-filter-nil","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Fnext-filter-nil/lists"}