Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
abcq
Advanced tools
Readme
Generates character combinations from numbers: a b c ... aa ab ac ... foo fop foq
npm i abcq
const shortid = new abcQ()
shortid.generate()
// -> a
shortid.generate()
// -> b
shortid.charsAt(1234567890)
// -> clRjXk
Use an Array
for chars
if it contains special characters.
Set the counter to modify the start point
const unicornLove = new abcQ({
chars: ['🦄','💖'],
counter: 42
})
unicornLove.generate()
// -> 🦄💖💖🦄💖
unicornLove.charsAt(8)
// -> 🦄💖🦄
const browserify = require('browserify')
const cssModulesify = require('css-modulesify')
const abcQ = require('abcq')
function generator() {
const shortid = new abcQ()
this.names = {}
return (name, file) => {
const obj = this.names[file] || {}
if (!(name in obj)) {
obj[name] = shortid.generate()
}
this.names[file] = obj
return obj[name]
}
}
const entries = 'index.js'
const output = 'style.css'
const generateScopedName = new generator()
const b = browserify({entries})
b.plugin(cssModulesify, {output, generateScopedName})
chars
counter
generate
const abc = new abcQ()
abc.generate()
// -> a
abc.generate()
// -> b
charsAt
const abc = new abcQ()
abc.charsAt(1234567890)
// -> clRjXk
FAQs
Generates character combinations from numbers: `a b c ... aa ab ac ... foo fop foq`
The npm package abcq receives a total of 386 weekly downloads. As such, abcq popularity was classified as not popular.
We found that abcq 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.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.