Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
A functional library for Norwegians.
Not exactly. Well, not only for Norwegians. Inspired by Ramda, this an automatically curried, data-last, functional JavaScript library.
Declarative code
Much favored over "smart" code. As an example it is preferred to use existing higher-order functions like Array.prototype.every()
instead of reimplementing similar logic using loops.
Predictable behaviors
B.map(B.inc, 1)
should return 2
. Not []
, [undefined]
or [2]
. Just 2
.
ES6 compliant
It is totally fine to do B.map(B.inc, new Set([1, 2, 3]))
. This will simply return Set {2, 3, 4}
.
Feature-rich
As seen above, B.map
knows how to handle Sets
. Similarly, other B
functions that can operate on Arrays, typically knows how to operate on other data structures as well.
const incList = B.map(B.inc)
incList([1, 2, 3])
// => [2, 3, 4]
const isFoo = B.equals('foo')
const allIsFoo = B.all(isFoo)
allIsFoo({x: 'foo', y: 'foo', z: 'foo'})
// => true
Install using yarn
:
yarn add bukk
Or npm
:
npm install --save bukk
Import module:
const B = require('bukk')
Or add the B
variable to global scope:
<script src="nodule_modules/bukk/dist/bukk.js"></script>
Install dependencies:
yarn install
Test once:
yarn run test
Test in watch mode:
yarn run watch:test
"Bukk" means "ram" in Norwegian :)
FAQs
Functional programming for Norwegians ⛷️
The npm package bukk receives a total of 35 weekly downloads. As such, bukk popularity was classified as not popular.
We found that bukk 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.