Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fisker/read-file-shebang
Read shebang from a file
https://github.com/fisker/read-file-shebang
Last synced: 6 days ago
JSON representation
Read shebang from a file
- Host: GitHub
- URL: https://github.com/fisker/read-file-shebang
- Owner: fisker
- License: mit
- Created: 2022-07-15T07:01:18.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-19T22:26:00.000Z (27 days ago)
- Last Synced: 2024-11-02T06:22:34.560Z (14 days ago)
- Language: JavaScript
- Homepage:
- Size: 875 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 20
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# read-file-shebang
[![Build Status][github_actions_badge]][github_actions_link]
[![Coverage][coveralls_badge]][coveralls_link]
[![Npm Version][package_version_badge]][package_link]
[![MIT License][license_badge]][license_link][github_actions_badge]: https://img.shields.io/github/workflow/status/fisker/read-file-shebang/CI/master?style=flat-square
[github_actions_link]: https://github.com/fisker/read-file-shebang/actions?query=branch%3Amaster
[coveralls_badge]: https://img.shields.io/coveralls/github/fisker/read-file-shebang/master?style=flat-square
[coveralls_link]: https://coveralls.io/github/fisker/read-file-shebang?branch=master
[license_badge]: https://img.shields.io/npm/l/read-file-shebang.svg?style=flat-square
[license_link]: https://github.com/fisker/read-file-shebang/blob/master/license
[package_version_badge]: https://img.shields.io/npm/v/read-file-shebang.svg?style=flat-square
[package_link]: https://www.npmjs.com/package/read-file-shebang> Read shebang from a file
## Install
```bash
yarn add read-file-shebang
```## Usage
```js
import readShebang from 'read-file-shebang'console.log(await readShebang('/path/to/file'))
// -> #!/usr/bin/env node
```