Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@58fe/58tjfrom-util

Package Overview
Dependencies
Maintainers
10
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@58fe/58tjfrom-util

provide create or update 58tjfrom util.

  • 1.0.11
  • latest
  • npm
  • Socket score

Version published
Maintainers
10
Created
Source

提供创建或更新58tjfrom工具方法

npm version

安装

npm i @58fe/58tjfrom-util -S

使用

该工具包提供2个工具方法,分别是创建tjfrom(createTJFrom),和更新tjfrom(updateTJFrom)

createTJFrom

创建新的tjfrom,接受slotslotFrom两个参数根据规则最后生成tjfrom

参数
参数说明类型默认值备注
slotslot值(可以找主站申请(美事: wanglizhou))string
extensiontjfrom中slotFrom的扩展(存放在tjfrom最后json串的slot_from中)object
eg:
const { createTJFrom } = require("@58fe/58tjfrom-util");
const slot = "jianli";
const slotFrom = {"jl_hd": 'huodong', "jl_qd": 812};
createTJFrom(slot, slotFrom)
// jianli__eyJ2IjoxLCJ0IjoyLCJyIjp7fSwidyI6eyJzbG90X2Zyb20iOnsiamxfaGQiOiJodW9kb25nIiwiamxfcWQiOjgxMiwic2xvdF9uYW1lIjoiamlhbmxpIn19fQ==

updateTJFrom

tjfrom中追加slotFrom并生成新的tjfrom

参数
参数说明类型默认值备注
tjfromtjfrom值string
extensiontjfrom中slotFrom的扩展(存放在tjfrom最后json串的slot_from中)object
eg:
const { updateTJFrom } = require("@58fe/58tjfrom-util");
const tjfrom = "lm_list_cpt__adtypes__1__null__c61a1b93-1a94-4757-b482-da8c6602cadf";
const slotFrom = {jl_hd: "chaozhiji", jl_qd: 93};
updateTJFrom(tjfrom, slotFrom)
// lm_list_cpt__adtypes__1__null__c61a1b93-1a94-4757-b482-da8c6602cadf__eyJ2IjoxLCJ0IjoyLCJyIjp7fSwidyI6eyJzbG90X2Zyb20iOnsiamxfaGQiOiJjaGFvemhpamkiLCJqbF9xZCI6OTMsInNsb3RfbmFtZSI6ImxtX2xpc3RfY3B0In19fQ==

npm发包:

  • 补丁版本(1.0.x): npm version patch && npm run build && npm publish --access public
  • 次版本(1.x.0):npm version minor && npm run build && npm publish --access public
  • 主版本(x.0.0):npm version major && npm run build && npm publish --access public

Keywords

FAQs

Package last updated on 01 Apr 2022

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc