Skip to content

Instantly share code, notes, and snippets.

View preco21's full-sized avatar
☂️
Recovering

Preco Kim preco21

☂️
Recovering
View GitHub Profile
@preco21
preco21 / readme.md
Last active March 11, 2021 11:29 — forked from coolaj86/how-to-publish-to-npm.md
NPM에 패키지(모듈) 배포하는 법

NPM 시작하기(개발자로써)

만약 이전에 NPM author 정보를 설정해놓지 않았다면, 다음 명령으로 등록하세요:

npm set init.author.name "Your Name"
npm set init.author.email "you@example.com"
npm set init.author.url "http://yourblog.com"

npm adduser

@preco21
preco21 / concat.array.buffers.js
Last active September 7, 2015 14:30 — forked from 72lions/concat.array.buffers.js
Concatenates two ArrayBuffers
/**
* Creates a new Uint8Array based on two different ArrayBuffers
*
* @private
* @param {ArrayBuffers} buffer1 The first buffer.
* @param {ArrayBuffers} buffer2 The second buffer.
* @return {ArrayBuffers} The new ArrayBuffer created out of the two.
*/
var _appendBuffer = function(buffer1, buffer2) {
var tmp = new Uint8Array(buffer1.byteLength + buffer2.byteLength);