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

data-columns

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

data-columns

A column holds meta-data describing the type of data that goes in that column, along with methods to sanitize and validate it.

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

Data Columns

Build Status Contributions Welcome

This package contains objects to help describe columns, including the validation and sanitation for the data of those columns.

const Column = require('data-column').Column;

let column = Column.populate({
    type: 'string',
    name: 'first_name',
    label: 'First Name',
    description: 'The users first name.',
    required: true,
    sanitizers: [{
        name: 'string'
    }],
    validators: [{
        name: 'string',
        options: {
            required: true,
            length: {
                min: 3,
                max: 24,
                message: 'Your name must be in between {min} and {max} characters.'
            }
        }
    }]
});

Keywords

Data

FAQs

Package last updated on 28 Nov 2018

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