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.
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).
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
A "logical flaw" has been disclosed in the NPM package manager that allowed attackers to pass off rogue libraries as legitimate.
Recommended read: NPM Bug Allowed Attackers to Distribute Malware as Legitimate Packages https://thehackernews.com/2022/04/npm-bug-allowed-attackers-to-distribute.html?m=1
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).
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).
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...
Converting an 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.
Extracting x5c
s from a JSON Web Key Set (JWKS) to PEM files with Node.js (1 mins read).
How to extract the full chain of certificates from a JWKS' x5c
parameter to files.
Recommended read: goldbergyoni/nodebestpractices: The Node.js best practices list (January 2022) https://github.com/goldbergyoni/nodebestpractices
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
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).
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.
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!
Recommended read: The Invisible JavaScript Backdoor – Certitude Blog https://certitude.consulting/blog/en/invisible-backdoor/
Recommended read: Better `console.log` pretty printing in Node https://stackoverflow.com/a/27534731
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
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).
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 Buffer
class.
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.
Recommended read: Binary Planting with the npm CLI https://blog.npmjs.org/post/189618601100/binary-planting-with-the-npm-cli
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 node-jose
library.
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 node-jose
library.
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).
Writing unit tests (in this case using Jasmine) for the TYK API Gateway's JavaScript middleware functionality.
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 45 posts.