Node

Hexo修改highlight代码样式

Hexo修改highlight代码样式

如修改code样式 themes/hiker/source/css/_partial/highlight.styl .article-entry pre, code font-family: font-mono code background: rgba(208,211,2

Joe.Ye Joe.Ye 2023-02-25
0 0 0
NodeJS crypto加密

NodeJS crypto加密

加密 const crypto = require('crypto'); let sha256 = crypto.createHash("sha256") let password = "admin" let newPwd = sha25

Joe.Ye Joe.Ye 2023-02-25
0 0 0
Hexo模板

Hexo模板

hexo-theme-hiker Github:https://github.com/iTimeTraveler/hexo-theme-hiker Demo:https://itimetraveler.github.io/hexo-theme-hiker/ 官网:http://itimetrave

Joe.Ye Joe.Ye 2023-02-25
0 0 1
Node.js包管理工具yarn安装使用

Node.js包管理工具yarn安装使用

Npm是Node.js的包管理器,是全球最大的开源库生态系统。Yarn是Facebook最近发布的一款依赖包安装工具。Yarn是一个新的快速安全可信赖的可以替代NPM的依赖管理工具。 Yarn跟npm的作用差不多,缓存了每个下载过的包,所以再次使用时无需重复下载。 同时利用并行下载以最大化资源利用率

Joe.Ye Joe.Ye 2023-02-23
0 0 0
Nodejs crypto密码模块

Nodejs crypto密码模块

crypto安装 $ npm install crypto crypto使用 createHash 适用于md4,md5,sha1,sha2(sha224,sha384,sha256,sha512)等 let sha1 = crypto.createHash('sha1').u

Joe.Ye Joe.Ye 2023-02-23
0 0 0
Node.js 测试

Node.js 测试

安装与准备 $ npm init -y $ npm i mocha -g $ mkdir test $ mocha 在项目目录下安装: $ npm install mocha --save-dev "scripts": { "test": ".

Joe.Ye Joe.Ye 2023-02-23
0 0 1
Node.js 入门

Node.js 入门

管理安装在系统上的 Node.js $ nvm ls-remote(查看远程所有版本) $ nvm install v6.11.0(安装指定版本) $ nvm install --lts(安装最新LTS版本) $ nvm install node(安装最新版本) $ nvm ls(列出安装的Node

Joe.Ye Joe.Ye 2023-02-23
0 0 0
1 2