'Programming/node.js'에 해당되는 글 139건

  1. 2024.04.04 web qr decoder
  2. 2022.07.14 node.js 웹소켓 채팅 서버 예제
  3. 2022.05.19 ubuntu 18.04 / nodej.s 18.x 실패
  4. 2022.03.25 웹소켓
  5. 2020.09.16 broadway / jsmpeg
  6. 2020.02.01 node.js array.sort() 주의사항
  7. 2020.01.31 node.js postgresql transaction
  8. 2020.01.30 for 에서 async, await
  9. 2020.01.29 es6 전개문구 (...)
  10. 2020.01.29 node.js 객체 합치기
Programming/node.js2024. 4. 4. 19:31

pnpm은 또 머냐..

중국어가 써있으니 먼가 쓰기가 꺼려지는건.. 왜 일까!?

[링크 : https://www.npmjs.com/package/qrcode-decoder]

 

개발자 도구로 봐서는 외부 통신 자체는 안하는 것 같다.

[링크 : https://github.com/yugasun/qrcode-decoder]

'Programming > node.js' 카테고리의 다른 글

node.js 웹소켓 채팅 서버 예제  (0) 2022.07.14
ubuntu 18.04 / nodej.s 18.x 실패  (0) 2022.05.19
웹소켓  (0) 2022.03.25
broadway / jsmpeg  (0) 2020.09.16
node.js array.sort() 주의사항  (0) 2020.02.01
Posted by 구차니
Programming/node.js2022. 7. 14. 19:44

node.js 의 ws 패키지를 이용하여 웹소켓 채팅 서버를 만드는 예제

웹소켓 전체 목록을 통해 접속시 메시지를 보내는게 유용함.

 

[링크 : https://hudi.blog/websocket-with-nodejs/]

'Programming > node.js' 카테고리의 다른 글

web qr decoder  (0) 2024.04.04
ubuntu 18.04 / nodej.s 18.x 실패  (0) 2022.05.19
웹소켓  (0) 2022.03.25
broadway / jsmpeg  (0) 2020.09.16
node.js array.sort() 주의사항  (0) 2020.02.01
Posted by 구차니
Programming/node.js2022. 5. 19. 21:06

glic  버전 문제로 설치 불가.

17.x를 써야지 머..

 

$ node
node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by node)

$ ls -al /lib/x86_64-linux-gnu/libc.so.6
lrwxrwxrwx 1 root root 12  1월 24 21:53 /lib/x86_64-linux-gnu/libc.so.6 -> libc-2.27.so

'Programming > node.js' 카테고리의 다른 글

web qr decoder  (0) 2024.04.04
node.js 웹소켓 채팅 서버 예제  (0) 2022.07.14
웹소켓  (0) 2022.03.25
broadway / jsmpeg  (0) 2020.09.16
node.js array.sort() 주의사항  (0) 2020.02.01
Posted by 구차니
Programming/node.js2022. 3. 25. 17:43

전에 보기만 했지 다뤄본적은 없는데 크윽..

일단 웹을 통해서 소켓을 만드니까.. HTTPS 하면 자동으로 보안도 올라가고

릴레이 해주면 websocket - socket 도 가능하고..

 

[링크 : https://www.npmjs.com/package/websocket]

[링크 : https://niceman.tistory.com/109]

'Programming > node.js' 카테고리의 다른 글

node.js 웹소켓 채팅 서버 예제  (0) 2022.07.14
ubuntu 18.04 / nodej.s 18.x 실패  (0) 2022.05.19
broadway / jsmpeg  (0) 2020.09.16
node.js array.sort() 주의사항  (0) 2020.02.01
node.js postgresql transaction  (0) 2020.01.31
Posted by 구차니
Programming/node.js2020. 9. 16. 10:31

jsmpeg의 경우 mpeg1ts를 이용하여 화질이 좀 아쉬워서

h.264를 지원하면 좋을것 같아서 찾아보니 broadway라는 것이 걸려나왔다.

 

요즘은 크롬으로 대동단결에 하드웨어 h.264는 기본 제공에 가깝고 webgl 가속이면 전체 cpu 사용율도 떨어질테니

좋을것 같긴한데.. 제약사항을 좀 더 봐야 할 듯

 

jsmpeg 처럼 websocket 등으로 스트리밍을 재생을 못하고 전체 파일을 받아야만 한다면 좀 곤란한데..

The video player first needs to download the entire video before it can start playing, thus appearing to be a bit slow at first, so have patience.

[링크 : https://github.com/mbebenita/Broadway]

    [링크 : https://github.com/wangdxh/websocketvideostream]

'Programming > node.js' 카테고리의 다른 글

ubuntu 18.04 / nodej.s 18.x 실패  (0) 2022.05.19
웹소켓  (0) 2022.03.25
node.js array.sort() 주의사항  (0) 2020.02.01
node.js postgresql transaction  (0) 2020.01.31
for 에서 async, await  (0) 2020.01.30
Posted by 구차니
Programming/node.js2020. 2. 1. 18:29

숫자라고 숫자로 인식하는게 아니라서 정렬 순서가 엉망으로 보일수 있음

그렇기에 숫자라면 sort() 함수에 sort용 함수를 넣어주어야 한다.

 

[링크 : http://dudmy.net/javascript/2015/11/16/javascript-sort/]

'Programming > node.js' 카테고리의 다른 글

웹소켓  (0) 2022.03.25
broadway / jsmpeg  (0) 2020.09.16
node.js postgresql transaction  (0) 2020.01.31
for 에서 async, await  (0) 2020.01.30
es6 전개문구 (...)  (0) 2020.01.29
Posted by 구차니
Programming/node.js2020. 1. 31. 01:20

async와 await를 이용해서 순차적으로 실행하여 트랜잭션을 구현한 예제

[링크 : https://node-postgres.com/features/transactions]

'Programming > node.js' 카테고리의 다른 글

broadway / jsmpeg  (0) 2020.09.16
node.js array.sort() 주의사항  (0) 2020.02.01
for 에서 async, await  (0) 2020.01.30
es6 전개문구 (...)  (0) 2020.01.29
node.js 객체 합치기  (0) 2020.01.29
Posted by 구차니
Programming/node.js2020. 1. 30. 22:25

for문을 돌리는데 비동기로 돌아버려서

그걸 강제로 동기로 돌리는 방법 찾는중

루프를 async - await new Promise()로 하는게 일단 작동하는걸 확인함

(async function loop() {
    for (let i = 0; i < 10; i++) {
        await new Promise(resolve => setTimeout(resolve, Math.random() * 1000));
        console.log(i);
    }
})();

[링크 : https://stackoverflow.com/questions/40328932/javascript-es6-promise-for-loop/40329190]

'Programming > node.js' 카테고리의 다른 글

node.js array.sort() 주의사항  (0) 2020.02.01
node.js postgresql transaction  (0) 2020.01.31
es6 전개문구 (...)  (0) 2020.01.29
node.js 객체 합치기  (0) 2020.01.29
unserscore 라이브러리  (0) 2020.01.29
Posted by 구차니
Programming/node.js2020. 1. 29. 17:45

... 은 es6부터 추가된 문법으로

배열을 풀어서 인자로 만들어 주는 듯

 

function sum(x, y, z) {
  return x + y + z;
}

const numbers = [1, 2, 3];

console.log(sum(...numbers));
// expected output: 6

[링크 : https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Operators/Spread_syntax]

[링크 : https://2ality.com/2015/01/es6-set-operations.html]

'Programming > node.js' 카테고리의 다른 글

node.js postgresql transaction  (0) 2020.01.31
for 에서 async, await  (0) 2020.01.30
node.js 객체 합치기  (0) 2020.01.29
unserscore 라이브러리  (0) 2020.01.29
node.js 집합연산  (0) 2020.01.23
Posted by 구차니
Programming/node.js2020. 1. 29. 17:05

assign()을 쓰면 가능은 한데..

동일 이름일 경우에는 어떻게 해야할까?

 

[링크 : https://4urdev.tistory.com/22]

+

키 이름을 미리 바꾸고 합치면 되려나?

[링크 : https://www.freecodecamp.org/news/30-seconds-of-code-rename-many-object-keys-in-javascript-268f279c7bfa/]

'Programming > node.js' 카테고리의 다른 글

for 에서 async, await  (0) 2020.01.30
es6 전개문구 (...)  (0) 2020.01.29
unserscore 라이브러리  (0) 2020.01.29
node.js 집합연산  (0) 2020.01.23
node.js promise  (0) 2020.01.20
Posted by 구차니