1.0.1 • Published 2 years ago
wyq_svg v1.0.1
#下载👵
npm init -y # 生成package.json文件
npm i wyq_svg -D
#使用👵
const http = require('http')
const svg = require('wyq_svg')
const app = http.createServer((req, res) => {
res.setHeader('content-type', 'text/html;charset=utf-8')
let temp = svg.create()
res.end(temp.data)
})
app.listen(3000, () => {
console.log('启动成功, 访问 http://localhost:3000');
})