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

sunny-js

Package Overview
Dependencies
Maintainers
1
Versions
104
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sunny-js

![npm version](https://img.shields.io/npm/v/sunny-js) ![npm downloads](https://img.shields.io/npm/dm/sunny-js) ![license](https://img.shields.io/npm/l/sunny-js)

latest
npmnpm
Version
2.3.5
Version published
Weekly downloads
105
-30%
Maintainers
1
Weekly downloads
 
Created
Source

sunny-js

npm version npm downloads license

这个一个工具函数库。

Installation

使用npm安装

npm i sunny-js

使用yarn安装

yarn add sunny-js

使用pnpm安装

pnpm add sunny-js

Usages

cjs

const { sum } = require('sunny-js')
console.log(sum([1, 2]))
// => 3

esm

import { sum } from 'sunny-js'
console.log(sum([1, 2]))
// => 3

更多用例均分布在jsdoc风格的代码注释中,使用时可被IDE读取并展示。

或者借助typedoc生成html文档

npx --yes typedoc --out typedoc --categorizeByGroup false --entryPoints src
npx --yes open-cli typedoc/index.html

Motivation

在ECMAScript定义的函数或lodash无法满足常规需求的情况下,我创建了这个工具函数库。 用来积累日常工作中不太变动、经常出现、且需要避免到处复制粘贴的工具函数。

Browser Compatibility

浏览器兼容性

Changelog

See CHANGELOG.md

FAQs

Package last updated on 15 Sep 2023

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