Skip to content

Commit 200aba4

Browse files
chore: change the name of the package for npmjs.com
1 parent 04ae020 commit 200aba4

File tree

5 files changed

+28
-29
lines changed

5 files changed

+28
-29
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Local Share 🚀
1+
# Airshare 🚀
22

33
A simple and elegant file-sharing server for your local network. Share files and directories with a beautiful, responsive web interface featuring dark/light theme support.
44

@@ -21,7 +21,7 @@ A simple and elegant file-sharing server for your local network. Share files and
2121
Install via npm:
2222

2323
```sh
24-
npm install -g local-share
24+
npm install -g airshare
2525
```
2626

2727
---
@@ -31,19 +31,19 @@ npm install -g local-share
3131
### Share the current directory:
3232

3333
```sh
34-
local-share
34+
airshare
3535
```
3636

3737
### Share a specific directory:
3838

3939
```sh
40-
local-share ~/Documents
40+
airshare ~/Documents
4141
```
4242

4343
### Use a custom port (default: 3000):
4444

4545
```sh
46-
local-share --port 8080
46+
airshare --port 8080
4747
```
4848

4949
---
@@ -53,7 +53,7 @@ local-share --port 8080
5353
### Command-Line Interface
5454

5555
```sh
56-
Usage: local-share [directory] [options]
56+
Usage: airshare [directory] [options]
5757

5858
Arguments:
5959
directory Directory to share (default: current directory)
@@ -105,7 +105,7 @@ Works with all modern browsers:
105105
## Project Structure 📁
106106

107107
```
108-
local-share/
108+
airshare/
109109
├── bin/
110110
│ └── cli.js # Command-line interface
111111
├── src/
@@ -128,15 +128,15 @@ local-share/
128128
**Mohammad Khakshoor**
129129

130130
- GitHub: [@mohammadkhakshoor](https://github.com/mohammadkhakshoor)
131-
- npm: [local-share](https://www.npmjs.com/package/local-share)
131+
- npm: [airshare](https://www.npmjs.com/package/airshare)
132132

133133
---
134134

135135
## Support 💬
136136

137137
If you encounter any issues or have questions:
138138

139-
1. Check the [GitHub Issues](https://github.com/mohammadkhakshoor/local-share/issues).
139+
1. Check the [GitHub Issues](https://github.com/mohammadkhakshoor/airshare/issues).
140140
2. Open a new issue if needed.
141141
3. Include relevant details about your environment and use case.
142142

@@ -155,4 +155,4 @@ If you encounter any issues or have questions:
155155

156156
---
157157

158-
Enjoy seamless local file sharing with **Local Share**! 🚀
158+
Enjoy seamless local file sharing with **Airshare**! 🚀

bin/cli.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@ const chalk = require('chalk');
77
const packageJson = require('../package.json');
88

99
program
10-
.name('local-share')
10+
.name('airshare')
1111
.description('A simple and elegant file sharing server for local network')
1212
.version(packageJson.version)
1313
.argument('[directory]', 'directory to share (defaults to current directory)')
1414
.option('-p, --port <number>', 'port to run the server on', '3000')
1515
.addHelpText('after', `
1616
Example usage:
17-
$ local-share # Share current directory on port 3000
18-
$ local-share ~/Documents # Share specific directory
19-
$ local-share . --port 8080 # Use custom port
20-
$ local-share -h # Show help
17+
$ airshare # Share current directory on port 3000
18+
$ airshare ~/Documents # Share specific directory
19+
$ airshare . --port 8080 # Use custom port
20+
$ airshare -h # Show help
2121
`)
2222
.action((directory, options) => {
2323
const targetDir = directory ? path.resolve(directory) : process.cwd();

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"name": "local-share",
2+
"name": "airshare",
33
"version": "1.0.0",
44
"description": "A simple and elegant file sharing server for local network",
55
"main": "src/index.js",
66
"bin": {
7-
"local-share": "bin/cli.js"
7+
"airshare": "bin/cli.js"
88
},
99
"files": [
1010
"src",
@@ -15,8 +15,7 @@
1515
"scripts": {
1616
"start": "node bin/cli.js",
1717
"lint": "eslint .",
18-
"format": "prettier --write \"**/*.{js,json,md}\"",
19-
"prepublishOnly": "npm run lint && npm run format"
18+
"format": "prettier --write \"**/*.{js,json,md}\""
2019
},
2120
"keywords": [
2221
"file-sharing",
@@ -29,19 +28,19 @@
2928
"license": "MIT",
3029
"repository": {
3130
"type": "git",
32-
"url": "git+https://github.com/mohammadkhakshoor/local-share.git"
31+
"url": "git+https://github.com/mohammadkhakshoor/airshare.git"
3332
},
3433
"bugs": {
35-
"url": "https://github.com/mohammadkhakshoor/local-share/issues"
34+
"url": "https://github.com/mohammadkhakshoor/airshare/issues"
3635
},
37-
"homepage": "https://github.com/mohammadkhakshoor/local-share#readme",
36+
"homepage": "https://github.com/mohammadkhakshoor/airshare#readme",
3837
"dependencies": {
3938
"chalk": "^4.1.2",
4039
"commander": "^8.0.0",
4140
"express": "^4.18.2",
4241
"ip": "^1.1.8",
43-
"multer": "^1.4.5-lts.1",
44-
"mime-types": "^2.1.35"
42+
"mime-types": "^2.1.35",
43+
"multer": "^1.4.5-lts.1"
4544
},
4645
"devDependencies": {
4746
"eslint": "^8.56.0",

src/views/templates.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@ function renderHeader() {
6060
return `
6161
<div class="header">
6262
<div class="header-title">
63-
<a href="https://github.com/mohammadkhakshoor/local-share" class="github-link" target="_blank" aria-label="View on GitHub">
63+
<a href="https://github.com/mohammadkhakshoor/airshare" class="github-link" target="_blank" aria-label="View on GitHub">
6464
<svg height="32" width="32" viewBox="0 0 16 16" fill="currentColor">
6565
<path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"></path>
6666
</svg>
6767
</a>
68-
<h1>Local Share</h1>
68+
<h1>Air share</h1>
6969
<button id="theme-toggle" class="theme-toggle" aria-label="Toggle theme">
7070
<span id="theme-icon">🌙</span>
7171
</button>

0 commit comments

Comments
 (0)