
Security News
Open VSX Begins Implementing Pre-Publish Security Checks After Repeated Supply Chain Incidents
Following multiple malicious extension incidents, Open VSX outlines new safeguards designed to catch risky uploads earlier.
Installation:
npm install c5cl
Usage:
import React from 'react';
import {Button} from 'c5cl';
function App(){
return <Button label="click me" />
}
export default App;
There are a number of helper utilites, example usage: formateDate: takes a string or a date and returns a string representation of only the date. formatMoney: fixes issues with money values that only have a decimal precision of 1. isValid: return true or false depending on the existence of a string, a number that is not zero, or an object with keys.
import {formatDate, formatMoney, isValid} from 'c5cl';
isValid(null);
// returns false
isValid(undefined)
// returns false
isValid('hello')
// returns true
isValid({name: 'mike'})
// returns true
isValid({})
// returns false
formatDate('1/1/2022 2:00 PM')
// returns '1/1/2022'
formatMoney('1.1')
// returns '$1.10
TextInput example usage:
import {TextInput} from 'c5cl';
return (
<TextInput
id="someid"
name="somename"
label="somelabel"
placeholder="some placeholder"
onChange={(e) => console.log(e.target.value) }
type="text"
value="someValue"
error="This field is required"
/>
)
SelectField example usage:
import {SelectField} from 'c5cl';
const states = [
{abbr: 'AL', name:'Alabama'},
{abbr: 'TN', name: 'Tennessee'}
]
return (
<SelectField
id="someid"
name="somename"
label="somelabel"
displayField="name"
valueField="abbr"
onChange={(e) => console.log(e.target.value)}
emptyMsg="Please select a state"
data={states}
error="This field is required"
/>
)
note: The error field in both components is used for when the form validation fails, you can send in a unique error message to each element of your form.
If for some reason you are using CRA and are getting an error about not being able to find source maps, this is a known issue with Webpack5 and is being address. The workaround is to add this to your .env file:
GENERATE_SOURCEMAP=false
FAQs
component library for react
The npm package c5cl receives a total of 2 weekly downloads. As such, c5cl popularity was classified as not popular.
We found that c5cl 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
Following multiple malicious extension incidents, Open VSX outlines new safeguards designed to catch risky uploads earlier.

Research
/Security News
Threat actors compromised four oorzc Open VSX extensions with more than 22,000 downloads, pushing malicious versions that install a staged loader, evade Russian-locale systems, pull C2 from Solana memos, and steal macOS credentials and wallets.

Security News
Lodash 4.17.23 marks a security reset, with maintainers rebuilding governance and infrastructure to support long-term, sustainable maintenance.