{"id":15413452,"url":"https://github.com/wooorm/is-hidden","last_synced_at":"2025-09-11T13:15:02.310Z","repository":{"id":57277257,"uuid":"41439231","full_name":"wooorm/is-hidden","owner":"wooorm","description":"Check if `filename` is hidden (starts with a dot)","archived":false,"fork":false,"pushed_at":"2022-11-12T08:57:36.000Z","size":56,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-06-19T12:08:13.831Z","etag":null,"topics":["basename","file","hidden","path"],"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/wooorm.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":"funding.yml","license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"wooorm"}},"created_at":"2015-08-26T17:22:02.000Z","updated_at":"2023-09-08T17:00:59.000Z","dependencies_parsed_at":"2022-09-18T08:40:30.710Z","dependency_job_id":null,"html_url":"https://github.com/wooorm/is-hidden","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/wooorm/is-hidden","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wooorm%2Fis-hidden","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wooorm%2Fis-hidden/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wooorm%2Fis-hidden/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wooorm%2Fis-hidden/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wooorm","download_url":"https://codeload.github.com/wooorm/is-hidden/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wooorm%2Fis-hidden/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264486324,"owners_count":23616021,"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":["basename","file","hidden","path"],"created_at":"2024-10-01T16:57:09.090Z","updated_at":"2025-07-09T15:35:47.825Z","avatar_url":"https://github.com/wooorm.png","language":"JavaScript","funding_links":["https://github.com/sponsors/wooorm"],"categories":[],"sub_categories":[],"readme":"# is-hidden\n\n[![Build][build-badge]][build]\n[![Coverage][coverage-badge]][coverage]\n[![Downloads][downloads-badge]][downloads]\n[![Size][size-badge]][size]\n\nTiny package that checks if a basename (`.gitignore`, `example.js`) is\nhidden (starts with a dot).\n\n## Contents\n\n*   [What is this?](#what-is-this)\n*   [When should I use this?](#when-should-i-use-this)\n*   [Install](#install)\n*   [Use](#use)\n*   [API](#api)\n    *   [`isHidden(basename)`](#ishiddenbasename)\n*   [Types](#types)\n*   [Compatibility](#compatibility)\n*   [Contribute](#contribute)\n*   [Security](#security)\n*   [License](#license)\n\n## What is this?\n\nTiny package that checks if a basename is hidden.\n\n## When should I use this?\n\nProbably not, you can do check this yourself.\nI was doing this so many times that I made it a package years ago.\n\n## Install\n\nThis package is [ESM only][esm].\nIn Node.js (version 14.14+, 16.0+), install with [npm][]:\n\n```sh\nnpm install is-hidden\n```\n\nIn Deno with [`esm.sh`][esmsh]:\n\n```js\nimport {isHidden} from 'https://esm.sh/is-hidden@2'\n```\n\nIn browsers with [`esm.sh`][esmsh]:\n\n```html\n\u003cscript type=\"module\"\u003e\n  import {isHidden} from 'https://esm.sh/is-hidden@2?bundle'\n\u003c/script\u003e\n```\n\n## Use\n\n```js\nimport {isHidden} from 'is-hidden'\n\nisHidden('.git') // =\u003e true\nisHidden('readme.md') // =\u003e false\n```\n\n## API\n\nThis package exports the identifier `isHidden`.\nThere is no default export.\n\n### `isHidden(basename)`\n\nCheck if `basename` is hidden (starts with a dot).\n\n## Types\n\nThis package is fully typed with [TypeScript][].\nIt exports no additional types.\n\n## Compatibility\n\nThis package is at least compatible with all maintained versions of Node.js.\nAs of now, that is Node.js 14.14+ and 16.0+.\nIt also works in Deno and modern browsers.\n\n## Contribute\n\nYes please!\nSee [How to Contribute to Open Source][contribute].\n\n## Security\n\nThis package is safe.\n\n## License\n\n[MIT][license] © [Titus Wormer][author]\n\n\u003c!-- Definitions --\u003e\n\n[build-badge]: https://github.com/wooorm/is-hidden/workflows/main/badge.svg\n\n[build]: https://github.com/wooorm/is-hidden/actions\n\n[coverage-badge]: https://img.shields.io/codecov/c/github/wooorm/is-hidden.svg\n\n[coverage]: https://codecov.io/github/wooorm/is-hidden\n\n[downloads-badge]: https://img.shields.io/npm/dm/is-hidden.svg\n\n[downloads]: https://www.npmjs.com/package/is-hidden\n\n[size-badge]: https://img.shields.io/bundlephobia/minzip/is-hidden.svg\n\n[size]: https://bundlephobia.com/result?p=is-hidden\n\n[npm]: https://docs.npmjs.com/cli/install\n\n[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c\n\n[esmsh]: https://esm.sh\n\n[typescript]: https://www.typescriptlang.org\n\n[contribute]: https://opensource.guide/how-to-contribute/\n\n[license]: license\n\n[author]: https://wooorm.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwooorm%2Fis-hidden","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwooorm%2Fis-hidden","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwooorm%2Fis-hidden/lists"}