Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

58tjfrom

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

58tjfrom

provide create or update 58tjfrom util.

latest
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

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

npm version

安装

npm i @58fe/58tjfrom -S

使用

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

createTJFrom

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

参数

参数说明类型默认值备注
slotslot值(可以找主站申请(美事: wanglizhou))string
slotFromtjfrom中slotFrom的扩展)object

ex:

const { createTJFrom } = require("@58fe/58tjfrom");
const slot = "jl";
const slotFrom = {'jl_qd': 1, 'jl_hd': 2};
createTJFrom(slot, slotFrom)

updateTJFrom

tjfrom中追加slotFrom并生成新的tjfrom

参数

参数说明类型默认值备注
tjfromtjfrom值string
slotFromtjfrom中slotFrom的扩展)object

ex:

const { updateTJFrom } = require("@58fe/58tjfrom");
const tjfrom = "slot__{...}";
const newSlotFrom = {};
updateTJFrom(tjfrom, newSlotFrom)

Keywords

tjfrom

FAQs

Package last updated on 15 Jul 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