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

@neanic/forms

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

@neanic/forms

The Neanic Forms library

latest
npmnpm
Version
9.0.0
Version published
Maintainers
1
Created
Source

Neanic Forms Library

Neanic Forms is a powerful TypeScript library for building and managing forms with Vue.js. It provides a flexible and extensible architecture for handling form state, validation, and rendering.

Features

  • Easy form state management with Vue reactivity
  • Extensible validation logic with both synchronous and asynchronous support
  • Customizable form element rendering to fit various UI frameworks
  • Seamless integration with Vue.js components and reactivity system

Installation

To install Neanic Forms, use npm or yarn:

npm install @neanic/forms
# or
yarn add @neanic/forms

Usage

Here's a basic example of how to use Neanic Forms to create a simple form:

import { Form, Val } from "@neanic/forms";

// Define your form structure
const form = Form.object({
  firstName: Form.string([Val.isRequired]),
  lastName: Form.string(),
  age: Form.number(),
});

API Reference

Neanic Forms offers a variety of form-related classes and utilities. Here is a quick overview:

  • Form: The main factory for creating form controls.
  • FormObject, FormArray, FormString, FormNumber, FormBoolean: Classes representing different types of form entries.
  • Val: A collection of standard validators.
  • formDefaultsForVue: A utility to set default templates for rendering Vue components based on form entry types.

License

This project is licensed under the ISC License – see the LICENSE file for details. Developed by Neanic.

FAQs

Package last updated on 18 May 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