
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.
class-sheet
Advanced tools
Under construction.
A package that generates image from class-sheet data.
As a server with express.js:
var classSheet = require('class-sheet');
router.get('/:course_data', function (req, res, next) {
// stream and pipe to res, send image/png result as the response
classSheet.imageStream(req.params.course_data, res);
});
As an independent tool:
var classSheet = require('class-sheet');
// output the base64 result
console.log(classSheet.image(course_data));
A JSON string, i.e.:
course_data = '{\
"courses":\
[\
{"name":"人工智能","day":0,"section":"2-4"},\
{"name":"数据通信与计算机网络","day":2,"section":"11-12"},\
{"name":"数据通信与计算机网络","day":0,"section":"6-8"},\
{"name":"操作系统","day":1,"section":"8-9"},\
{"name":"游戏开发基础","day":2,"section":"2-4"},\
{"name":"概率论与数理统计","day":2,"section":"6-8"},\
{"name":"第一哲学沉思集","day":3,"section":"11-12"},\
{"name":"中文信息处理","day":3,"section":"3-4"},\
{"name":"计算机图形学","day":4,"section":"2-4"},\
{"name":"操作系统","day":3,"section":"6-8"},\
{"name":"概率论与数理统计","day":4,"section":"6-7"}\
]\
}'
Then calling classSheet.image with course_data will get the image below (as base64 data):

Notice you can get the JSON string by calling JSON.stringify(course_object_data).
Another example:

From NPM:
$ npm install class-sheetFrom git repo:
$ git clone git@github.com:quietshu/class-sheet.git$ npm installCode style:
$ npm test (current only xo.js)
courses
[][{"name":"Modern Art","day":2,"section":"1-3"}, {"name":"Computer Graphics","day":"4","section":"9-10","text-color":"red"}]lines
[][5, 10] will drop lines under section 5 and section 10custom-line-color
'red'day-content
['一', '二', '三', '四', '五']width
320height
640line-color
'#ccc'text-color
'#000'font-size
12info-text-color
'#555'info-font-size
10background-color
'#f5f5f5'header-height
40header-line-color
'#000'header-text-color
'#000'header-font-size
15sidebar-width
30sidebar-line-color
'#000'sidebar-text-color
'#000'sidebar-font-size
12days
5sections
14course-background-color
'#fff'MIT.
<3
FAQs
Generates image from class sheet data
The npm package class-sheet receives a total of 1 weekly downloads. As such, class-sheet popularity was classified as not popular.
We found that class-sheet 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.