Skip to content

Commit bbbfe93

Browse files
committed
initial commit
0 parents  commit bbbfe93

File tree

15 files changed

+534
-0
lines changed

15 files changed

+534
-0
lines changed

.editorconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
end_of_line = lf
6+
charset = utf-8
7+
trim_trailing_whitespace = true
8+
insert_final_newline = true
9+
10+
[{*.json,*.yml}]
11+
indent_style = space
12+
indent_size = 2

.github/workflows/ci.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: CI
2+
on: push
3+
jobs:
4+
build:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v2
8+
- name: Install modules
9+
run: yarn
10+
- name: Run tests
11+
run: yarn test

.gitignore

Lines changed: 233 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,233 @@
1+
dist
2+
3+
# Logs
4+
logs
5+
*.log
6+
npm-debug.log*
7+
yarn-debug.log*
8+
yarn-error.log*
9+
lerna-debug.log*
10+
11+
# Diagnostic reports (https://nodejs.org/api/report.html)
12+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
13+
14+
# Runtime data
15+
pids
16+
*.pid
17+
*.seed
18+
*.pid.lock
19+
20+
# Directory for instrumented libs generated by jscoverage/JSCover
21+
lib-cov
22+
23+
# Coverage directory used by tools like istanbul
24+
coverage
25+
*.lcov
26+
27+
# nyc test coverage
28+
.nyc_output
29+
30+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
31+
.grunt
32+
33+
# Bower dependency directory (https://bower.io/)
34+
bower_components
35+
36+
# node-waf configuration
37+
.lock-wscript
38+
39+
# Compiled binary addons (https://nodejs.org/api/addons.html)
40+
build/Release
41+
42+
# Dependency directories
43+
node_modules/
44+
jspm_packages/
45+
46+
# Snowpack dependency directory (https://snowpack.dev/)
47+
web_modules/
48+
49+
# TypeScript cache
50+
*.tsbuildinfo
51+
52+
# Optional npm cache directory
53+
.npm
54+
55+
# Optional eslint cache
56+
.eslintcache
57+
58+
# Microbundle cache
59+
.rpt2_cache/
60+
.rts2_cache_cjs/
61+
.rts2_cache_es/
62+
.rts2_cache_umd/
63+
64+
# Optional REPL history
65+
.node_repl_history
66+
67+
# Output of 'npm pack'
68+
*.tgz
69+
70+
# Yarn Integrity file
71+
.yarn-integrity
72+
73+
# dotenv environment variables file
74+
.env
75+
.env.test
76+
77+
# parcel-bundler cache (https://parceljs.org/)
78+
.cache
79+
.parcel-cache
80+
81+
# Next.js build output
82+
.next
83+
out
84+
85+
# Nuxt.js build / generate output
86+
.nuxt
87+
dist
88+
89+
# Gatsby files
90+
.cache/
91+
# Comment in the public line in if your project uses Gatsby and not Next.js
92+
# https://nextjs.org/blog/next-9-1#public-directory-support
93+
# public
94+
95+
# vuepress build output
96+
.vuepress/dist
97+
98+
# Serverless directories
99+
.serverless/
100+
101+
# FuseBox cache
102+
.fusebox/
103+
104+
# DynamoDB Local files
105+
.dynamodb/
106+
107+
# TernJS port file
108+
.tern-port
109+
110+
# Stores VSCode versions used for testing VSCode extensions
111+
.vscode-test
112+
113+
# yarn v2
114+
.yarn/cache
115+
.yarn/unplugged
116+
.yarn/build-state.yml
117+
.yarn/install-state.gz
118+
.pnp.*# Logs
119+
logs
120+
*.log
121+
npm-debug.log*
122+
yarn-debug.log*
123+
yarn-error.log*
124+
lerna-debug.log*
125+
126+
# Diagnostic reports (https://nodejs.org/api/report.html)
127+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
128+
129+
# Runtime data
130+
pids
131+
*.pid
132+
*.seed
133+
*.pid.lock
134+
135+
# Directory for instrumented libs generated by jscoverage/JSCover
136+
lib-cov
137+
138+
# Coverage directory used by tools like istanbul
139+
coverage
140+
*.lcov
141+
142+
# nyc test coverage
143+
.nyc_output
144+
145+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
146+
.grunt
147+
148+
# Bower dependency directory (https://bower.io/)
149+
bower_components
150+
151+
# node-waf configuration
152+
.lock-wscript
153+
154+
# Compiled binary addons (https://nodejs.org/api/addons.html)
155+
build/Release
156+
157+
# Dependency directories
158+
node_modules/
159+
jspm_packages/
160+
161+
# Snowpack dependency directory (https://snowpack.dev/)
162+
web_modules/
163+
164+
# TypeScript cache
165+
*.tsbuildinfo
166+
167+
# Optional npm cache directory
168+
.npm
169+
170+
# Optional eslint cache
171+
.eslintcache
172+
173+
# Microbundle cache
174+
.rpt2_cache/
175+
.rts2_cache_cjs/
176+
.rts2_cache_es/
177+
.rts2_cache_umd/
178+
179+
# Optional REPL history
180+
.node_repl_history
181+
182+
# Output of 'npm pack'
183+
*.tgz
184+
185+
# Yarn Integrity file
186+
.yarn-integrity
187+
188+
# dotenv environment variables file
189+
.env
190+
.env.test
191+
192+
# parcel-bundler cache (https://parceljs.org/)
193+
.cache
194+
.parcel-cache
195+
196+
# Next.js build output
197+
.next
198+
out
199+
200+
# Nuxt.js build / generate output
201+
.nuxt
202+
dist
203+
204+
# Gatsby files
205+
.cache/
206+
# Comment in the public line in if your project uses Gatsby and not Next.js
207+
# https://nextjs.org/blog/next-9-1#public-directory-support
208+
# public
209+
210+
# vuepress build output
211+
.vuepress/dist
212+
213+
# Serverless directories
214+
.serverless/
215+
216+
# FuseBox cache
217+
.fusebox/
218+
219+
# DynamoDB Local files
220+
.dynamodb/
221+
222+
# TernJS port file
223+
.tern-port
224+
225+
# Stores VSCode versions used for testing VSCode extensions
226+
.vscode-test
227+
228+
# yarn v2
229+
.yarn/cache
230+
.yarn/unplugged
231+
.yarn/build-state.yml
232+
.yarn/install-state.gz
233+
.pnp.*

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package-lock=false

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

.prettierrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) Jandrey Oliveira <[email protected]> (https://jandrey.net)
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
[action-image]: https://github.com/cezaraugusto/concat-blobs/workflows/CI/badge.svg
2+
[action-url]: https://github.com/cezaraugusto/concat-blobs/actions
3+
[npm-image]: https://img.shields.io/npm/v/concat-blobs.svg
4+
[npm-url]: https://npmjs.org/package/concat-blobs
5+
6+
7+
> Concatanate blobs into a single blobs
8+
9+
### Installation
10+
11+
```
12+
# node_modules/concat-blobs will include this repo
13+
npm install concat-blobs
14+
```
15+
16+
## Usage
17+
18+
```js
19+
import concatBlobs from "concat-blobs";
20+
21+
const resultBlobs = concatBlobs(array_of_urls, blob_type);
22+
```
23+
24+
## API
25+
26+
### concatBlobs(array_of_urls, blob_type, object?)
27+
28+
#### array_of_urls -> string with url from audio. Example: ['fixtures/audio1.mp3', 'fixtures/audio2.mp3']
29+
30+
Type: `array`
31+
32+
#### blob_type -> type audio. Examples: 'audio/mpeg', 'audio/wav', 'audio/ogg'
33+
34+
Type: `string`
35+
36+
#### object? -> return { arrayBuffers, audioBlobConcat, audioBufferConcat, audioBuffers, urlBlobs }
37+
38+
Type: `boolean`
39+
40+
## License
41+
42+
MIT (c) Jandrey Oliveira.

fixtures/audio1.mp3

3.07 MB
Binary file not shown.

fixtures/audio2.mp3

232 KB
Binary file not shown.

0 commit comments

Comments
 (0)