npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

santie-tools

v0.2.0

Published

a tools for santie web developer

Downloads

5

Readme

santie-tools

简要描述
  • 三铁电商平台公共工具库
开发背景

随着项目的增加和业务的迭代,急需统一的工具库将项目中的部分处理函数以及方法抽离形成高度可用的工具库,既提高了开发效率又可以高度复用于其他项目,贴近公司业务。

技术盏架构

主要使用了TypeScript,架构结合npm开源项目包的搭建方式,采用面向对象的以及纯函数的设计思想,将单一的功能设计成纯函数,纯函数具有行为一致,无副作用,适合统一的工具方法封装。结合主工具类,以及入口工厂函数,方便后期做工具库的配置以及扩展。

项目地址

https://www.npmjs.com/package/santie-tools //npm官方资源包地址

API使用文档地址

https://www.showdoc.com.cn/santieTools?page_id=6252840633134401

欢迎使用santie-tools

##资源包安装

npm install santie-tools --save-dev   // 安装依赖
cnpm install santie-tools  --save-dev // cnpm安装
yarn add santie-tools  --save-dev// yarn 安装

##项目引用

引入使用

 import  { dateTool }  from ' santie-tools' ; // 按需引入
 import santieTool  from  'santie-tools'; // 全局引入

##模块使用

import  { dateTool }  from ' santie-tools' ; // 按需模块引入
// 示例 (获取当前事件36天之后的时间)
dateTool.getTimeAfterDays(new Date(),36,  'yyyy-mm-dd HH:MM:SS', ) ;
// 或者
import santieTool  from  'santie-tools'; // 整体工具类引入
const { dateTool } = santieTool(options); // options配置可根据项目传入
备注
  • 该项目由三铁前端内部团队开发并维护
  • 项目使用过程中有任何问题或者错误请联系三铁前端团队
  • 项目目前处于开发阶段,API变更频繁,请及时查看最新文档