
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
Vecteur (Frech for `vector`) is a simple `vector` library for Javascript/Typescript.
Vecteur (Frech for vector) is a simple vector library for Javascript/Typescript.
# npm
npm install vecteur
# yarn
yarn add vecteur
# pnpm
pnpm add vecteur
import { vec2 } from 'vecteur/2d';
const v = vec2(1, 2);
console.log(v.toString()) // x: 1, y: 2
v.add(2, 3).sub(1).mult(-1)
console.log(v.toString()) // x: -2, y: -4
import from specific file for smaller bundle size (tree shaking)
import { vec2, ... } from 'vecteur/2d'; // only 2d vector
import { vec3, ... } from 'vecteur/3d'; // only 3d vector
import { vec2, vec3, ... } from 'vecteur'; // both 2d and 3d vector
While working on a project, I needed a simple vector library. I found Victor but it was not maintained anymore. I also found p5.Vector but it was too heavy for my needs. So I decided to create my own library.
While it might not be as complete as the two libraries mentioned above, it is enough for my needs. I will add more features as I need them.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
FAQs
Vecteur (Frech for `vector`) is a simple `vector` library for Javascript/Typescript.
We found that vecteur demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 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.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.