New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@jianghe/sand-utils

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jianghe/sand-utils

sand工具库

latest
Source
npmnpm
Version
1.2.6-3
Version published
Maintainers
1
Created
Source

@jianghe/sand-utils

sand 工具类

fetch 工具

基于 axios 的 http 请求工具

import { fetch } from '@jianghe/sand-utils';

const { request, get, post } = fetch;

// 基础的请求方法
request('url', {
  method: 'POST',
  data: { ss: 111 },
  //...
});

// get请求
get('url', { ss: 111 }, { timeout: 5000 });

// post请求
post('url', { ss: 111 }, { timeout: 5000 });

html encode/decode 工具

用于 html encode/decode

import { decodeHtml } from '@jianghe/sand-utils';

const html = decodeHtml('111');

debug 工具

用于 debug 日志输出,基于 debug 库

import { debug } from '@jianghe/sand-utils';

Keywords

sand

FAQs

Package last updated on 15 Aug 2020

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