New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@monkeyplus/unorm

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@monkeyplus/unorm

Universal Orm Layer

latest
npmnpm
Version
0.5.16
Version published
Maintainers
1
Created
Source

Unorm

Herramienta para capa de datos

Uso

# yarn
yarn add @monkeyplus/unorm

# npm
npm install @monkeyplus/unorm

# pnpm
pnpm add @monkeyplus/unorm

Ejemplo

import { createOrm } from '@monkeyplus/unorm';
import { defineDriver } from '@monkeyplus/unorm/drivers/knex';

const driver = defineDriver(/* ...options */);
const orm = createOrm({ driver });

const User = orm.defineModel('users', {
  fields: ['id', 'name', 'email'],
});

// Create User
const user = await User.create({ name: 'John Doe', email: 'email@test.com' });
// Update UserByPk
const user = await User.updateByPk(1, { name: 'John Doe', email: '' });
// Delete UserByPk
const user = await User.deleteByPk(1);
// Find UserByPk
const user = await User.findByPk(1);
// FindAll
const users = await User.findAll();

FAQs

Package last updated on 02 Apr 2025

Did you know?

Socket

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.

Install

Related posts