Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@casper124578/utils

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@casper124578/utils

A package with useful node util functions

  • 1.5.3
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

@casper124578/utils

A package with useful node util functions (mostly for my personal projects)

Example

ts example

import * as yup from "yup";
import { validateSchema } from "@casper124578/utils";

const testSchemaObj = {
  email: yup.string().required().email(),
  password: yup.string().required().min(8),
};

// later in the code
const data = {
  /* some data here */
};

const [error] = await validateSchema(testSchemaObj, data);

if (error) {
  return console.log("validation error!", error);
}

console.log("validation success!");

Keywords

FAQs

Package last updated on 19 Dec 2021

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc