# file-n-functions

> A cli app for creating a file and declaring functions, to quickly get up and running.

Latest version **1.0.0** (published 2023-08-03) · ISC license · 0 weekly downloads

## Install

```sh
npm install file-n-functions
pnpm add file-n-functions
yarn add file-n-functions
bun add file-n-functions
```

Provides the command `fnf`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2023-08-03 |
| First published | 2023-08-03 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| Author | Mohamed Abdulnassir |
| Maintainers | moeabdulnas |
| Keywords | create files, declare functions, functions, fnf, files |

## Links

- npm: https://www.npmjs.com/package/file-n-functions
- npm.io page: https://npm.io/package/file-n-functions

## Alternatives

- [unionfs](https://npm.io/package/unionfs.md) — 2.2M weekly downloads
- [path-starts-with](https://npm.io/package/path-starts-with.md) — 35.9K weekly downloads
- [redzip](https://npm.io/package/redzip.md) — 1.2K weekly downloads
- [vscode-anymatch](https://npm.io/package/vscode-anymatch.md) — 848 weekly downloads
- [@ledgerhq/coin-filecoin](https://npm.io/package/@ledgerhq/coin-filecoin.md) — 793 weekly downloads

## Recent versions

- 1.0.0 (latest) — 2023-08-03
- 0.0.2 — 2023-08-03
- 0.0.122 — 2023-08-03
- 0.0.121 — 2023-08-03
- 0.0.12 — 2023-08-03
- 0.0.1 — 2023-08-03

## README

# file-n-functions

A command-line interface (CLI) app for quickly generating a file and declaring functions.


## Installation

You can install `file-n-functions` globally to access it from anywhere in your terminal, or locally to use it within a specific project.

```bash
# Global installation
npm install -g file-n-functions

# Local installation (within a project)
npm install file-n-functions
```

## Usage
```bash
# Run with the "fnf" command.
fnf

# You will get a prompt for creating a file and declaring functions

# First word will be the filename and the rest of words function names 
# For file names it accepts .ts, .tsx, .js, .jsx.
# If extension is not added, defaulted to .js file.
# If file doesn't exist, it will create one.

Create file and functions: myFile.ts helloWorld foo bar

# Output:
Declared helloWorld() helloWorld in myFle.js.
Declared foo() foo in myFile.js.
Declared bar bar in myFile.js.
```
### Result
```js
//myFile.ts
function helloWorld() {
    //TODO: Write function
}

function foo() {
    //TODO: Write function
}

function bar() {
    //TODO: Write function
}
```

## Requirement
- Node.js 
- npm


## Licence
This project is licensed under the MIT License.

## Contributing
Contributions are welcome! Feel free to open issues and submit pull requests.

## Project link
https://github.com/moeabdulnas/file-n-functions

---
_Source: https://npm.io/package/file-n-functions · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
