Socket
Socket
Sign inDemoInstall

sj-utility-lib

Package Overview
Dependencies
28
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    sj-utility-lib

shangjian utility library


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

sj_util_lib

shangjian utility library

Build Setup

install dependencies

npm install

serve with hot reload at localhost:8080

npm run dev

build for production with minification

npm run build

add new utility

npm run generate {{category}} {{name}}

npm run generate sort salarySort

editing

文件生成在 /src/utils/{{categoty}}/{{name}}.js 并会自动添加至build列表中.

函数文件应有一个default export作为输出,可在文件中定义其他对default export不产生影响的辅助数据,构建多个函数时创建多个函数文件。

函数的说明文档即函数的JSDoc,请保证输出函数及其JSDoc位于文件顶部。

使用到的JSDoc字段目前有@description,@params,@return@example。JSDoc参考:(http://usejsdoc.org/)

publish

  1. 确保修改package.json 中的版本号
  2. build
  3. publish

FAQs

Last updated on 19 Nov 2018

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc