
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
Convenient and efficient B-splines. This package allows you to generate fairly efficient code for evaluating B-splines of arbitrary degree using de Boor's algorithm.
Constructing and evaluating a second order B-spline:
var splines = require("splines")
var bspline = splines.bspline(2);
var vals = []
for(var i=-3*6; i<=3*6; i++) {
vals.push(bspline(i/6));
}
console.log(vals)
[0,0,0,0,0,0,0,0,0,0,0.013888888888888902,0.05555555555555553,0.125,0.2222222222222222,
0.34722222222222227,0.5,0.638888888888889,0.7222222222222222,0.75,0.7222222222222222,
0.638888888888889,0.5,0.3472222222222223,0.22222222222222213,0.125,0.055555555555555455,
0.013888888888888937,0,0,0,0,0,0,0,0,0,0]
require("splines").bspline(n[, period])Generates function for evaluating an n-th order B-spline.
n is the order of the B-spline (it should be integer-valued and greater than or equal to zero).period is an optional period. Note, however, that (for the moment) this module only supports a period if the period is larger than or equal to the order of the spline+1 (which is the spatial support).Some benchmarks of different techniques: http://jsperf.com/bspline-evaluation
(c) 2013 Jasper van de Gronde. MIT License.
FAQs
Convenient and efficient B-splines.
We found that splines demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers 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.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.