TGViewer
Channel Public Channel
JavaScript

JavaScript

@javascript

A resourceful newsletter featuring the latest and most important news, articles, books and updates in the world of #javascript πŸš€ Don't miss our Quizzes!

Let's chat: @nairihar
Subscribers
31K
Photos
1.2K
Videos
10
Links
901

Showing posts older than #1671 Β· Back to latest

Older Posts 20 shown
Post #1670 7.33K
πŸ‘ Jimp 1.6: Image Processing in Node without Native Dependencies

Most image libraries, such as the powerful Sharp, lean on external libraries to do the heavy lifting, but Jimp can handle BMPs, GIFs, JPEGs, PNGs, and TIFFs on its own for blurring, color adjustments, resizing, rotation, etc. GitHub repo.

jimp Contributors
  • πŸ”₯ 10
  • πŸ‘ 6
  • ❀ 1
  • 🀩 1
Post #1669 6.75K
  • ❀ 10
  • πŸ‘ 7
  • πŸ”₯ 2
  • 🀣 2
Post #1668 6.69K
CHALLENGE

function* gen() {
yield* [1, 2, 3].map(x => x * 2);
}

const iterator = gen();
console.log(iterator.next().value);
console.log(iterator.next().value);
console.log(iterator.next().value);
console.log(iterator.next().value);
  • πŸ‘ 5
Post #1667 7.45K
πŸŽ‰ Happy Programmers' Day

256th day of this year
  • πŸ‘ 42
  • ❀ 27
  • 🀣 14
  • πŸ”₯ 10
  • πŸ€” 5
Post #1666 6.97K
  • πŸ‘ 16
  • πŸ€” 15
  • ❀ 8
  • πŸ”₯ 2
Post #1665 6.64K
CHALLENGE

async function process() {
console.log('Start');
await new Promise(resolve => setTimeout(resolve, 0));
console.log('Middle');
return 'Done';
}

process().then(result => console.log(result));
console.log('End');
  • πŸ‘ 13
  • πŸ€” 7
  • ❀ 1
  • πŸ”₯ 1
Post #1664 6.97K
🌲 Express.js 5.0 Released; Sort Of

After a long period of seeming to merely be on life support, work on Express picked up significantly earlier this year with a big plan to push β€˜Express forward.’ The first fruit of this process is now beginning to appear with v5.0. Node 18 is now the minimum support version, there are error handling improvements, improvements to the project’s tooling, the introduction of a Threat Model, and updates to many of its dependencies.

Wesley Todd
  • ❀ 11
  • πŸ‘ 6
  • πŸ”₯ 1
  • 🀩 1
Post #1663 5.95K
  • 🀣 14
  • πŸ‘ 9
  • πŸ”₯ 6
  • ❀ 3
  • πŸ€” 2
Post #1662 6.19K
CHALLENGE

const obj = Object.freeze({
a: [1, 2, 3],
b: {
c: 4
}
});

obj.a.push(4);
obj.b.c = 5;

console.log(obj.a);
console.log(obj.b.c);
  • πŸ‘ 6
  • ❀ 4
  • πŸ”₯ 2
  • 🀩 1
Post #1661 6.49K
✌️ An SSR Performance Showdown

Fastify’s Matteo Collina set out to find the current state of server-side rendering performance across today’s most popular libraries. The first attempt faced negative feedback due to implementation issues, but the showdown has been improved and re-run.

Matteo Collina
  • ❀ 4
  • πŸ‘ 3
  • πŸ”₯ 1
Post #1660 6.11K
  • πŸ‘ 5
  • ❀ 3
  • πŸ”₯ 2
Post #1659 6.23K
CHALLENGE

function outer() {
var x = 1;

function inner() {
var x = 2;

function deeper() {
console.log(x);
}

return deeper;
}

return inner();
}

const fn = outer();
fn();
  • πŸ”₯ 8
  • πŸ€” 5
  • πŸ‘ 4
Post #1658 6.08K
πŸ™…β€β™‚οΈ Prisma 5.19.0, Now with 'Typed SQL'

Prisma is a popular declaratively-driven ORM in the Node.js / TypeScript world and its new version makes it possible to write raw SQL queries in a type-safe way.

Nikolas Burk
  • πŸ”₯ 10
  • πŸ‘ 5
  • ❀ 2
Post #1657 6.28K
  • πŸ€” 14
  • πŸ‘ 9
  • πŸ”₯ 8
  • ❀ 2
Post #1656 6.27K
CHALLENGE

let num = 5;

function change() {
let num = 10;
return function() {
return num;
};
}

const getValue = change();
num = 20;

console.log(getValue());
  • ❀ 2
  • πŸ‘ 2
Post #1655 6.35K
πŸ˜‰How to Implement the 2048 Game in JavaScript

Ania is back with one of her usual easy to follow walkthroughs of implementing a complete game in JavaScript. This time it’s the 2048 sliding puzzle game. (Two weeks ago she did Tic-Tac-Toe as well.)

Ania KubΓ³w
  • πŸ‘ 12
  • ❀ 6
  • πŸ”₯ 1
Post #1654 5.77K
  • πŸ‘ 10
  • πŸ”₯ 6
  • ❀ 2
Post #1653 6.07K
CHALLENGE

const obj = {
num: 10,
getValue() {
return this.num;
},
getUpdatedValue() {
return (() => this.num + 10)();
}
};

console.log(obj.getValue());
console.log(obj.getUpdatedValue());
  • 🀣 11
  • πŸ‘ 6
  • πŸ”₯ 3
  • ❀ 1
Post #1652 6.18K
😎 yocto-spinner: Tiny Terminal Spinner

Fresh from the one-man module powerhouse that is Sindre Sorhus comes a new project: a tiny, as simple-as-possible terminal spinner/progress control. (β€˜Yocto’ is a metric prefix that sits below nano, pico, femto, atto, and even zepto..)

Sindre Sorhus
  • ❀ 2
  • πŸ‘ 2
  • πŸ”₯ 1
Post #1651 5.96K

Forwarded from JavaScript Summit Armenia

πŸ“Œ The JavaScript Summit Armenia 2024 trailer is live!

It was an awesome event, and we’re excited to share some of the best moments with you. Huge thanks to everyone who joined us and helped make it happen.

See you next year at JavaScript Summit Armenia 2025!
  • πŸ‘ 5
  • ❀ 2
  • 🀩 2
Older posts β†’
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook β†’Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 β†’