
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
virtual-credit-cards
Advanced tools
Credit card form components built with virtual-dom
$ npm install --save virtual-credit-cards
$ npm run example
An example form (example.js) will open up in your default browser with all three components connected.
virtual-credit-cards comes with inputs for:
var NumberInput = require('virtual-credit-cards/number')
var state = NumberInput()
NumberInput.render(state())
//=> VTree
NumberInput() -> functionReturns the observable number input state. state.value is an observable representation of the parsed card number.
NumberInput.render(state, [options]) -> objectRenders a state object into a virtual DOM tree.
NumberInput.validate(state, [types]) -> booleanValidates the current card number state.
Type: array
Default: []
An array of allowed card types. If no value is provided, a valid card of any type will be valid.
ExpirationInput() -> functionReturns the observable number input state. state.value is an observable representation of the parsed expiration. It will either be null or {month: Number, year: Number}, depending on whether the input is complete.
ExpirationInput.render(state, [options]) -> objectRenders a state object into a virtual DOM tree.
ExpirationInput.validate(state) -> booleanValidates the expiration state.
CvcInput() -> functionReturns the observable number input state. state.value is an observable representation of the parsed CVC.
CvcInput.render(state, [options]) -> objectRenders a state object into a virtual DOM tree.
CvcInput.validate(state, [type]) -> booleanValidates the CVC state.
Type: string
Default: null
If a card type is provided, the validator will check that the provided CVC is valid for that card type.
MIT © Ben Drucker
FAQs
Credit card form components built with virtual-dom
The npm package virtual-credit-cards receives a total of 6 weekly downloads. As such, virtual-credit-cards popularity was classified as not popular.
We found that virtual-credit-cards 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.