How to retrieve metadata about packages that are depended on at runtime.
Who does this NPM token belong to? (2 mins read).
How to work out whether an arbitrary NPM token is valid, and if so, which user account it belongs to.
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
How to convert an array of bytes to a string using Go.
How to set up OAuth2/OpenID Connect authentication with an Architect Framework application.
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).
Some common issues that occur when using node-canvas on AWS Lambda, and how to solve them.
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...
x5c from a JSON Web Key to a PEM with Node.JS (1 mins read).
How to convert a JWK's
x5c to a PEM-formatted certificate with Node.JS.
How to extract the full chain of certificates from a JWKS'
x5c parameter to files.
Publishing a NPM Package to npmjs.com from GitLab CI (1 mins read).
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).
Announcing a new NPM package for easier testing of Spectral API linting.
Test Driven Development for Your Spectral Rules, using Jest (7 mins read).
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).
How to convert an image to a
data URL using Node.JS on the command-line.
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!
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
Unit Testing Auth0 Rules (8 mins read).
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).
How to generate JWK thumbprints with Node.JS.
Converting a Byte Array to String with
Buffer in Node.JS (1 mins read).
How to convert an array of bytes to a String using Node.JS's
Creating Signed JWTs (JWS) with Node.JS (1 mins read).
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).
Converting a JSON Web Key (JWK) to an X.509 PEM file, using the
Parsing URL Querystrings with Node.JS (1 mins read).
How to easily parse a URL querystring with Node.JS.
Parsing Key-Value URL Fragments with Node.JS (1 mins read).
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).
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).
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).
Converting X.509 and PKCS#8 files to JWKS format, using the
TYKJS Middleware Gotcha When Base 64 Decoding Data (3 mins read).
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).
Hackference 2018 (31 mins read).
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.