
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Dynamic Visualizations Library (dvlib) is a JavaScript library which helps to create interactive data visualizations on HTML Canvas. Because dvlib is written in TypeScript, it can be easily used with PowerBI Visual Tools to create outstanding custom visualizations for Power BI using object oriented programming approach.
Recommended installation is via npm.
npm i dvlib
The quickest way to start programming using dvlib is to clone the template repository, which includes also development server.
git clone --depth=1 https://github.com/marepilc/dvlib_template.git projectname
rm -rf !$/.git
cd projectname
Now, you have to install dependencies
npm i
and you are ready to go! Run the server:
npm start
and start coding.
newProject
|- /src
|- main.ts
|- /dist
|- index.html
|- webpack.config.js
index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>dvlib</title>
</head>
<body>
<script type="text/javascript" src="./main.js"></script>
</body>
</html>
webpack.config.js
const path = require('path');
module.exports = {
entry: './src/main.ts',
mode: 'production',
module: {
rules: [{
test: /\.tsx?$/,
use: 'ts-loader',
exclude: /node_modules/
}]
},
resolve: {
extensions: ['.tsx', '.ts', '.js']
},
output: {
filename: 'main.js',
path: path.resolve(__dirname, 'dist')
}
};
npm init -y
npm i --save-dev webpack
npm i --save-dev webpack-cli
Add to the to the "scripts" dictionary in the package.json:
"build": "webpack --config webpack.config.js"
npm i --save-dev typescript ts-loader
npx tsc --init
npm i dvlib
main.ts
import "dvlib";
import {
createCanvas, dvStart, resizeCanvas, background, fill,
textAlign, HAlignment, textSize, text, width, height
} from "dvlib";
dvStart(setup, draw);
function setup(): void {
let body: HTMLElement = document.getElementsByTagName('body')[0];
createCanvas(body);
resizeCanvas(600, 300);
}
function draw() {
background('#2d2f2f');
fill('#faf6ee');
textAlign(HAlignment.center);
textSize(48);
text('Hello, World!', width / 2, height / 2);
}

FAQs
Dynamic Visualizations Library
We found that dvlib 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.