
Security News
PEP 810 Proposes Explicit Lazy Imports for Python 3.15
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
@cfpb/cfpb-atomic-component
Advanced tools
Design System atomic component utilities
This component can be used by itself, but it was made for Design System, a front end framework developed at the Consumer Financial Protection Bureau.
Detailed instructions can be found at the Design System documentation site.
Utility functions for checking Javascript types and primitives.
var assert = require( 'assert' );
import {
isUndefined,
isObject,
isFunction,
isDate
} from '../utilities/type-checkers.js';
var UNDEFINED;
var date = new Date( 2011, 7, 21 );
function func() {
return true;
}
var object = {
a: '1',
b: '2',
c: '3'
};
assert.equal( typeCheckers.isUndefined( UNDEFINED ), true );
assert.equal( typeCheckers.isObject( object ), true );
assert.equal( typeCheckers.isFunction( func ), true );
assert.equal( typeCheckers.isDate( date ), true );
We welcome your feedback and contributions.
FAQs
Design System atomic component utilities
The npm package @cfpb/cfpb-atomic-component receives a total of 47 weekly downloads. As such, @cfpb/cfpb-atomic-component popularity was classified as not popular.
We found that @cfpb/cfpb-atomic-component demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 13 open source maintainers 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
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.