
Security News
Deno 2.6 + Socket: Supply Chain Defense In Your CLI
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.
cycle-values
Advanced tools
Npm javascript package
Cycle through values.
// npm install cycle-values
var cycle = require('cycle-values')
// cycle(Array values = [])
var nums = cycle([1, 2, 3])
// Returns a function that when called will give you a new value
console.log(nums())
// > 1
console.log(nums())
// > 2
// You can pass an offset to the fn to skip or go back
console.log(nums(0))
// > 2
console.log(nums(2))
// > 1
console.log(nums(-1))
// > 3
npm test for testing the code after doing an npm install
FAQs
Cycle through an array values
The npm package cycle-values receives a total of 0 weekly downloads. As such, cycle-values popularity was classified as not popular.
We found that cycle-values 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
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.