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

@58fe/58tjfrom-util

Package Overview
Dependencies
Maintainers
11
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.2
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-90%
Maintainers
11
Weekly downloads
 
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发包:

npm publish --access public

Keywords

FAQs

Package last updated on 26 Sep 2021

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