
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
@getable/button
Advanced tools
button ui piece
Table of Contents generated with DocToc
npm i -S @getable/button
var Button = require('@getable/button')
new Button(
classes: ['button-cta']
, text: 'Click me'
, onClick: function(){
window.alert('You\'ve won $500! Click here to claim your prize!')
}
)
<Array> classes
An array of classes to be applied to the button. The base class button
is always applied by default.
<String> text
The text label that shows on the button.
<Function> onClick
The function that gets called when the button is clicked.
None yet
None yet
Tests are in tape.
npm test
will run the tests in a browsernpm run tdd
will run the tests in a browser on every file change.To publish, run npm run release -- [{patch,minor,major}]
NOTE: you might need to sudo ln -s /usr/local/bin/node /usr/bin/node
to ensure node is in your path for the git hooks to work
npm i -g npm
git push --follow-tags
will work. brew install git
Artistic 2.0 © Cristi Scheye
v3.4.4 | 2015-05-19
FAQs
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
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.