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

cd-fe

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cd-fe

潮点前端(cdfe)公用库libs

latest
Source
npmnpm
Version
1.0.6
Version published
Maintainers
1
Created
Source

cdFe

潮点视频前端工具库

build by cdFe teamwork, goal to reduce some front-end work. hope you enjoy. please remember es6+ runtimes is required 潮点视频前端开发,目标是降低一些业务常用的功能的重复开发 以及多处复用。需要es6及以上环境

Main files

关键文件目录

dist/
├── cd-fe.js         (UMD, default)
├── cd-fe.min.js     (UMD, compressed)
├── cd-fe.esm.js     (ECMAScript Module)
├── cd-fe.esm.min.js (ECMAScript Module, compressed)
└── cd-fe.d.ts       (TypeScript Declaration File)

Getting started

开始使用

Installation

安装方式

npm install cd-fe

In browser:

<script src="/path/to/cd-fe.min.js"></script>

Usage

使用方法 待完善

Syntax

cdFe.appenJs(script1, script2, ..., scriptN)
  .then(() => {})
  .catch((err) => {})
  .finally(() => {});

cdFe.appenCss(link1, link2, ..., linkN)
  .then(() => {})
  .catch((err) => {})
  .finally(() => {});

cdFe.ColorMode
/*
addClass: ƒ h(e)
getColorScheme: ƒ w()
preference: "system"
removeClass: ƒ (e)
value: 'light'
*/

Example

scrollSpy的使用请参考 scrollSpy readMe

cdFe.scrollSpy 在线 demo

Browser support

浏览器兼容

  • Chrome (latest)
  • Firefox (latest)
  • Safari (latest)
  • Opera (latest)
  • Edge (latest)
  • Internet Explorer ie9+

代码使用了 Promise / Arrow Function ,请确保您的环境兼容

License

MIT © Apple Sun

Keywords

chaodian

FAQs

Package last updated on 21 Dec 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