Skip to content

Latest commit

 

History

History
50 lines (32 loc) · 976 Bytes

File metadata and controls

50 lines (32 loc) · 976 Bytes

@remarkablemark/test

📦 GitHub Package test:

Read the blog post.

Prerequisites

Update .npmrc:

@remarkablemark:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}

Create auth token with scope read:packages and add it to your shell config (e.g., .zshrc):

export GITHUB_TOKEN=ghp_xxx

Or do with with GitHub CLI:

gh auth refresh -h github.com -s read:packages
echo 'export GITHUB_TOKEN=$(gh auth token)' >> ~/.zshrc

Install

Install the package:

npm install @remarkablemark/test

Usage

Use the package:

const { hello } = require('@remarkablemark/test');

console.log(hello()); // 'Hello, world!'