Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Built for Runik API v0.3.9
import { Client, Users } from 'runik'
const client = new Client()
.setEndpoint('http://localhost:9000/api/v1')
.setKey('API_KEY')
const users = new Users(client)
// Get all users
await users.get()
// Create user
await users.signUp(
'infrared.studio@skiff.com',
'myPassword',
'http://localhost:5173/verify'
)
// Login to user
const user = await users.signIn('infrared.studio@skiff.com', 'myPassword', true) // set true to make the session expire
// Get logged in user
await user.get()
// Get user sessions
await user.getSessions()
// Update signed in users email
await user.updateEmail('newemail@example.com', 'http://localhost:5173/verify')
// Update signed in users password
await user.updatePassword('myPassword', 'newPassword')
// Sign out on all devices
await user.deleteSessions('myPassword')
// Sign out of current session
await user.signOut()
// Delete signed in user
await user.delete('myPassword')
FAQs
SDK for Runik API
The npm package runik receives a total of 1 weekly downloads. As such, runik popularity was classified as not popular.
We found that runik demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.