{"id":17472651,"url":"https://github.com/shinnn/is-mode-symlink","last_synced_at":"2025-07-11T14:33:27.840Z","repository":{"id":27234011,"uuid":"30705555","full_name":"shinnn/is-mode-symlink","owner":"shinnn","description":"Check if a file mode integer represents symbolic link","archived":false,"fork":false,"pushed_at":"2015-12-21T14:44:12.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-28T11:07:15.951Z","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":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shinnn.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":"2015-02-12T14:15:54.000Z","updated_at":"2017-06-20T06:35:18.000Z","dependencies_parsed_at":"2022-08-31T00:01:46.466Z","dependency_job_id":null,"html_url":"https://github.com/shinnn/is-mode-symlink","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/shinnn/is-mode-symlink","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shinnn%2Fis-mode-symlink","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shinnn%2Fis-mode-symlink/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shinnn%2Fis-mode-symlink/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shinnn%2Fis-mode-symlink/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shinnn","download_url":"https://codeload.github.com/shinnn/is-mode-symlink/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shinnn%2Fis-mode-symlink/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264833275,"owners_count":23670617,"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":[],"created_at":"2024-10-18T17:30:07.012Z","updated_at":"2025-07-11T14:33:27.788Z","avatar_url":"https://github.com/shinnn.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# is-mode-symlink\n\n[![NPM version](https://img.shields.io/npm/v/is-mode-symlink.svg)](https://www.npmjs.com/package/is-mode-symlink)\n[![Bower version](https://img.shields.io/bower/v/is-mode-symlink.svg)](https://github.com/shinnn/is-mode-symlink/releases)\n[![Build Status](https://travis-ci.org/shinnn/is-mode-symlink.svg?branch=master)](https://travis-ci.org/shinnn/is-mode-symlink)\n[![Build status](https://ci.appveyor.com/api/projects/status/t4ac6ds7y4d3ak6o?svg=true)](https://ci.appveyor.com/project/ShinnosukeWatanabe/is-mode-symlink)\n[![Coverage Status](https://img.shields.io/coveralls/shinnn/is-mode-symlink.svg)](https://coveralls.io/r/shinnn/is-mode-symlink)\n[![devDependency Status](https://david-dm.org/shinnn/is-mode-symlink/dev-status.svg)](https://david-dm.org/shinnn/is-mode-symlink#info=devDependencies)\n\nCheck if a [file mode](https://en.wikipedia.org/wiki/File_system_permissions) integer represents [symbolic link](https://en.wikipedia.org/wiki/Symbolic_link)\n\n```javascript\nisModeSymlink(41453) //=\u003e true;\nisModeSymlink(33261) //=\u003e false;\n```\n\nLike [Node](https://nodejs.org/)'s [`stats.isSymbolicLink()`](https://nodejs.org/api/fs.html#fs_class_fs_stats), but so portable as to work everywhere.\n\n## Installation\n\n### Package managers\n\n#### [npm](https://www.npmjs.com/)\n\n```\nnpm install is-mode-symlink\n```\n\n#### [bower](http://bower.io/)\n\n```\nbower install is-mode-symlink\n```\n\n#### [Duo](http://duojs.org/)\n\n```javascript\nconst isModeSymlink = require('shinnn/is-mode-symlink');\n```\n\n### Standalone\n\n[Download the script file directly.](https://raw.githubusercontent.com/shinnn/is-mode-symlink/master/browser.js)\n\n## API\n\n### isModeSymlink(*mode*)\n\n*mode*: `Number`  \nReturn: `Boolean`\n\nIt returns `true` if the number represents file mode of symbolic link, otherwise `false`.\n\n## License\n\n[The Unlicense](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshinnn%2Fis-mode-symlink","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshinnn%2Fis-mode-symlink","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshinnn%2Fis-mode-symlink/lists"}