Skip to content

Commit

Permalink
Move to fridgefm (#119)
Browse files Browse the repository at this point in the history
* change naming
* rm legacy
* upd packages
  • Loading branch information
ch1ller0 authored Sep 9, 2020
1 parent 8f3ee80 commit 8ada81d
Show file tree
Hide file tree
Showing 6 changed files with 1,413 additions and 1,267 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Radio engine for NodeJS
[![build](https://img.shields.io/circleci/build/github/Kefir100/radio-ch1ller.svg)](https://circleci.com/gh/Kefir100/radio-ch1ller)
[![coverage](https://img.shields.io/codecov/c/gh/Kefir100/radio-ch1ller.svg)](https://codecov.io/gh/Kefir100/radio-ch1ller)
[![build](https://img.shields.io/circleci/build/github/Kefir100/fridgefm-radio-core.svg)](https://circleci.com/gh/Kefir100/fridgefm-radio-core)
[![coverage](https://img.shields.io/codecov/c/gh/Kefir100/fridgefm-radio-core.svg)](https://codecov.io/gh/Kefir100/fridgefm-radio-core)
[![npm](https://img.shields.io/npm/dw/@kefir100/radio-engine.svg)](https://www.npmjs.com/package/@kefir100/radio-engine)
![GitHub](https://img.shields.io/github/license/kefir100/radio-ch1ller.svg)
![GitHub](https://img.shields.io/github/license/kefir100/fridgefm-radio-core.svg)
![node](https://img.shields.io/node/v/@kefir100/radio-engine.svg)

## Usage
Expand All @@ -13,11 +13,11 @@

### Installation
```
npm i @kefir100/radio-engine --save
npm i @fridgefm/radio-engine --save
```
### Server
```javascript
const { Station } = require('@kefir100/radio-engine');
const { Station } = require('@fridgefm/radio-engine');
const station = new Station();

station.addFolder('User/Music');
Expand Down Expand Up @@ -99,7 +99,7 @@ event fires when there is some error
station.on('error', (e) => { handleError(e) });
```

## or just go to [EXAMPLES](./examples/server.js)
## or just go to [examples](./examples/server.js)
```
yarn build
node examples/server.js
Expand Down
40 changes: 20 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@kefir100/radio-engine",
"name": "@fridgefm/radio-core",
"author": "Grigory Gorshkov",
"version": "2.3.1",
"version": "2.3.2",
"description": "internet radio engine made on NodeJS platform",
"license": "MIT",
"main": "./lib/index.js",
Expand All @@ -25,7 +25,7 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/Kefir100/radio-ch1ller.git"
"url": "git+https://github.com/Kefir100/fridgefm-radio-core.git"
},
"scripts": {
"build": "tsc",
Expand All @@ -35,33 +35,33 @@
"test:cov": "yarn test --collectCoverage=true"
},
"dependencies": {
"chalk": "^4.0.0",
"chalk": "^4.1.0",
"dev-null": "^0.1.1",
"express": "^4.17.1",
"get-mp3-duration": "^1.0.0",
"highland": "^2.13.4",
"klaw-sync": "^6.0.0",
"lodash": "^4.17.15",
"node-id3": "^0.1.16"
"node-id3": "^0.1.18"
},
"devDependencies": {
"@types/express": "^4.17.6",
"@types/jest": "^25.2.1",
"@types/lodash": "^4.14.150",
"@types/node": "^13.13.4",
"@typescript-eslint/eslint-plugin": "^2.30.0",
"eslint": "^6.8.0",
"eslint-config-airbnb-typescript": "^7.2.1",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-jest": "^23.8.2",
"husky": "^4.2.5",
"jest": "^25.5.1",
"lint-staged": ">=10.2.0",
"ts-jest": "^25.4.0",
"typescript": "^3.8.3"
"@types/express": "^4.17.8",
"@types/jest": "^26.0.13",
"@types/lodash": "^4.14.161",
"@types/node": "^14.6.4",
"@typescript-eslint/eslint-plugin": "^4.1.0",
"eslint": "^7.8.1",
"eslint-config-airbnb-typescript": "^10.0.0",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-jest": "^24.0.0",
"husky": "^4.3.0",
"jest": "^26.4.2",
"lint-staged": ">=10.3.0",
"ts-jest": "^26.3.0",
"typescript": "^4.0.2"
},
"bugs": {
"url": "https://github.com/Kefir100/radio-ch1ller/issues"
"url": "https://github.com/Kefir100/fridgefm-radio-core/issues"
},
"homepage": "http://fridgefm.com",
"directories": {
Expand Down
5 changes: 0 additions & 5 deletions src/sound/Track.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { deprecateError } from '../utils/deprecate';
import { createSoundStream, getMetaAsync, getStats } from './methods/sound';
import type { TrackI, TrackStats } from '../types/Track.h';

Expand All @@ -20,8 +19,4 @@ export class Track implements TrackI {
public getSound() {
return createSoundStream(this.fsStats);
}

public getMeta() {
return deprecateError('getMeta', 'getMetaAsync', 'https://github.com/Kefir100/radio-ch1ller/issues/6');
}
}
6 changes: 3 additions & 3 deletions src/sound/defaults/responseHeaders.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@

// TODO add icy metaint https://github.com/Kefir100/radio-ch1ller/issues/16
// TODO add icy metaint https://github.com/Kefir100/fridgefm-radio-core/issues/16
export const responseHeaders = {
'Cache-Control': 'no-cache,no-store,must-revalidate,max-age=0',
'Content-Type': 'audio/mpeg',
'icy-br': '56',
'icy-genre': 'house',
'icy-metaint': '0',
'icy-name': '@kefir100/radio-engine',
'icy-notice1': 'Live radio powered by https://www.npmjs.com/package/@kefir100/radio-engine',
'icy-name': '@fridgefm/radio-engine',
'icy-notice1': 'Live radio powered by https://www.npmjs.com/package/@fridgefm/radio-engine',
'icy-pub': '0',
'icy-url': 'https://',
};
1 change: 0 additions & 1 deletion src/types/Track.h.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,5 @@ export interface TrackI {
playCount: number;
fsStats: TrackStats;
getSound: () => Readable;
getMeta: () => never;
getMetaAsync: () => Promise<ShallowTrackMeta>;
}
Loading

0 comments on commit 8ada81d

Please sign in to comment.