Tag nodejs
Dynamically retrieving the version of a Node.JS/Typescript dependency, at runtime (1 mins read).
How to retrieve metadata about packages that are depended on at runtime.
Who does this NPM token belong to? (2 mins read).
![Featured image for sharing metadata for article](https://media.jvt.me/03019529e6.png)
How to work out whether an arbitrary NPM token is valid, and if so, which user account it belongs to.
Post details
If you are working on a large JS project run $> npx unimported It will tell you what dependencies are not being used in your code. In my case I found 5 npm modules and over 20 React components that were no longer part of the UI 🤯Jorge 💻 (@ja_codes)Tue, 10 May 2022 11:00 +0000
Post details
Node 18 came out today and ... 🥁🥁🥁🥁🥁 we finally have global `fetch`! So good. 🥰 Big thanks to @ronagy42, @ArrowoodTech, @matteocollina and @targos89 for shipping it! 👏 🔗 Release notes: nodejs.org/en/blog/announ…Stefan Judis (@stefanjudis)Tue, 19 Apr 2022 19:34 +0000
Converting a Byte Array to String from a Node.JS Buffer
, in Go (1 mins read).
![Featured image for sharing metadata for article](https://media.jvt.me/b41202acf7.png)
How to convert an array of bytes to a string using Go.
Protecting an Architect Framework Application with OAuth2 or OpenID Connect Authentication (4 mins read).
![Featured image for sharing metadata for article](https://media.jvt.me/4bea95efe8.png)
How to set up OAuth2/OpenID Connect authentication with an Architect Framework application.
Post details
OpenID Certified™ Relying Party (OpenID Connect/OAuth 2.0 Client) implementation for Node.js. - GitHub - panva/node-openid-client: OpenID Certified™ Relying Party (OpenID Connect/OAuth 2.0 Client) ...
Getting node-canvas to run on AWS Lambda (3 mins read).
![Featured image for sharing metadata for article](https://media.jvt.me/770ef46545.png)
Some common issues that occur when using node-canvas on AWS Lambda, and how to solve them.
Post details
AWS Lambda Layer with node-canvas and its dependencies packaged, provides a Cairo backed Mozilla Web Canvas API implementation - GitHub - charoitel/lambda-layer-canvas-nodejs: AWS Lambda Layer with...
Converting an x5c
from a JSON Web Key to a PEM with Node.JS (1 mins read).
![Featured image for sharing metadata for article](https://media.jvt.me/03019529e6.png)
How to convert a JWK's x5c
to a PEM-formatted certificate with Node.JS.
Extracting x5c
s from a JSON Web Key Set (JWKS) to PEM files with Node.js (1 mins read).
![Featured image for sharing metadata for article](https://media.jvt.me/03019529e6.png)
How to extract the full chain of certificates from a JWKS' x5c
parameter to files.
Post details
Library authors: Please ship .mjs instead of .esm.js or /esm/index.js Thank you 😇Anthony Fu (@antfu7)Thu, 30 Dec 2021 06:24 GMT
Post details
Just use an npm package.
Den Delimarsky (@DennisCode)Sun, 26 Dec 2021 05:17 GMT
Publishing a NPM Package to npmjs.com from GitLab CI (1 mins read).
![Featured image for sharing metadata for article](https://media.jvt.me/03019529e6.png)
How to publish an NPM package to the public NPM registry, using GitLab CI.
Announcing a new package: @jamietanna/spectral-test-harness
(1 mins read).
![Featured image for sharing metadata for article](https://media.jvt.me/ba93c1e17a.png)
Announcing a new NPM package for easier testing of Spectral API linting.
Test Driven Development for Your Spectral Rules, using Jest (7 mins read).
![Featured image for sharing metadata for article](https://media.jvt.me/ba93c1e17a.png)
How to write unit tests for Spectral API linting, in a test-driven development fashion.
Converting an Image to a Base64 data
URL with Node.JS (1 mins read).
![Featured image for sharing metadata for article](https://media.jvt.me/03019529e6.png)
How to convert an image to a data
URL using Node.JS on the command-line.
Post details
JS Devs: Would not be caught dead using PHP Also JS Devs: Furiously reinventing PHP since 2013swyx (@swyx)Mon, 22 Nov 2021 23:19 GMT
A very interesting attack - having tested a few editors with colleagues, none of us could've caught it without spotting that there's a slightly wider character in a couple of places!
Post details
I think that I just accidentally wrote most of a node-based endpoint discovery, parser, and sender for webmentions. I think a version already exists in npm, but would it be useful for other `#indieweb` folk to have this as a package? S'all async and promises.Charlie Don't Surf (@sonniesedge)Fri, 22 Jan 2021 16:54 GMT
Post details
Developing web apps with Node (h/t bit.ly/nodecat)Addy Osmani (@addyosmani)Thu, 12 Nov 2020 09:00 GMT
Unit Testing Auth0 Rules (8 mins read).
![Featured image for sharing metadata for article](https://media.jvt.me/3f2f6fc169.png)
How to write unit tests for your Auth0 Rules, without running it on an Auth0 tenant.
Generating JWK Thumbprints with Node.JS (1 mins read).
![Featured image for sharing metadata for article](https://media.jvt.me/03019529e6.png)
How to generate JWK thumbprints with Node.JS.
Converting a Byte Array to String with Buffer
in Node.JS (1 mins read).
![Featured image for sharing metadata for article](https://media.jvt.me/03019529e6.png)
How to convert an array of bytes to a String using Node.JS's Buffer
class.
Creating Signed JWTs (JWS) with Node.JS (1 mins read).
![Featured image for sharing metadata for article](https://media.jvt.me/03019529e6.png)
How to use the jsonwebtoken library to create a Signed JSON Web Token (JWS) with Node.JS.
Converting a JSON Web Key to a X.509 .pem
file (in Node.JS) (2 mins read).
![Featured image for sharing metadata for article](https://media.jvt.me/03019529e6.png)
Converting a JSON Web Key (JWK) to an X.509 PEM file, using the node-jose
library.
Parsing URL Querystrings with Node.JS (1 mins read).
![Featured image for sharing metadata for article](https://media.jvt.me/03019529e6.png)
How to easily parse a URL querystring with Node.JS.
Parsing Key-Value URL Fragments with Node.JS (1 mins read).
![Featured image for sharing metadata for article](https://media.jvt.me/03019529e6.png)
How to easily parse a URL fragment containing key-value pairs of data, with Node.JS.
Verifying Signed JWTs (JWS) with Node.JS (3 mins read).
![Featured image for sharing metadata for article](https://media.jvt.me/0b0440faeb.jpeg)
How to use the jsonwebtoken and node-jose libraries to verify the signature of a Signed JSON Web Token (JWS) with Node.JS.
Pretty Printing JSON using Node.JS on the Command Line (1 mins read).
![Featured image for sharing metadata for article](https://media.jvt.me/03019529e6.png)
Using Node.JS's JSON module to pretty print JSON objects from the command line.
Converting X.509 and PKCS#8 .pem
file to a JWKS (in Node.JS) (2 mins read).
![Featured image for sharing metadata for article](https://media.jvt.me/03019529e6.png)
Converting X.509 and PKCS#8 files to JWKS format, using the node-jose
library.
TYKJS Middleware Gotcha When Base 64 Decoding Data (3 mins read).
![Featured image for sharing metadata for article](https://media.jvt.me/a23b41f74b.jpeg)
How to workaround the Failed to base64 decode: illegal base64 data at input byte
error when trying to use b64dec
in TYKJS middleware.
Unit Testing Your TYK (TYKJS) Middleware (6 mins read).
![Featured image for sharing metadata for article](https://media.jvt.me/a23b41f74b.jpeg)
Writing unit tests (in this case using Jasmine) for the TYK API Gateway's JavaScript middleware functionality.
Hackference 2018 (31 mins read).
![Featured image for sharing metadata for article](https://media.jvt.me/7750434458.png)
A review of my time at Hackference's 1-day conference and 24-hour hackathon.
You're currently viewing page 1 of 1, of 46 posts.