UNPKG

4.94 kBMarkdownView Raw
1# Shuutils
2
3[![GitHub license](https://img.shields.io/github/license/shuunen/shuutils.svg?color=informational)](https://github.com/Shuunen/shuutils/blob/master/LICENSE)
4[![npm version](https://img.shields.io/npm/v/shuutils.svg?color=informational)](https://www.npmjs.com/package/shuutils)
5[![npm monthly downloads](https://img.shields.io/npm/dm/shuutils.svg?color=informational)](https://www.npmjs.com/package/shuutils)
6[![Install size](https://badgen.net/packagephobia/install/shuutils)](https://packagephobia.com/result?p=shuutils)
7[![Publish size](https://img.shields.io/bundlephobia/min/shuutils?label=publish%20size)](https://bundlephobia.com/package/shuutils)
8[![Package Quality](https://npm.packagequality.com/shield/shuutils.svg)](https://packagequality.com/#?package=shuutils)
9[![Code Climate maintainability](https://img.shields.io/codeclimate/maintainability/Shuunen/shuutils?style=flat)](https://codeclimate.com/github/Shuunen/shuutils)
10[![Scrutinizer Score](https://scrutinizer-ci.com/g/Shuunen/shuutils/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/Shuunen/shuutils)
11<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
12[![All Contributors](https://img.shields.io/badge/all_contributors-3-orange.svg?style=flat-square)](#contributors-)
13<!-- ALL-CONTRIBUTORS-BADGE:END -->
14
15> My collection of *mostly* pure JS utils functions :zap:
16
17## Install
18
19`npm install shuutils`
20
21## Use
22
23```js
24import { getTimestamp } from 'shuutils'
25// or for older js : var getTimestamp = require("shuutils").getTimestamp
26
27console.log('Hello world, current timestamp is', getTimestamp())
28```
29
30## TODO
31
32- [ ] use zod
33- [ ] add willOutputToFile option to the logger
34
35## Thanks
36
37- [Angus Croll](https://github.com/angus-c/just) : for the inspiration of some dependency free functions
38- [Box icon](https://www.iconfinder.com/icons/2123914/app_box_essential_ui_icon) : nice icon
39- [Dependency-cruiser](https://github.com/sverweij/dependency-cruiser) : handy tool to validate and visualize dependencies
40- [Esbuild](https://github.com/evanw/esbuild) : an extremely fast JavaScript bundler and minifier
41- [Eslint](https://eslint.org) : super tool to find & fix problems
42- [Github](https://github.com) : for all their great work year after year, pushing OSS forward
43- [Jakub Juszczak's article](https://hackernoon.com/how-to-publish-your-package-on-npm-7fc1f5aae600): nice article about publishing on npm
44- [Josh Crowther's repo](https://github.com/jshcrowthe/howto-browser-modules): great ressource about modules
45- [Repo-checker](https://github.com/Shuunen/repo-checker) : eslint cover /src code and this tool the rest ^^
46- [Shields.io](https://shields.io) : for the nice badges on top of this readme
47- [Shuutils](https://github.com/Shuunen/shuutils) : collection of pure JS utils
48- [V8](https://github.com/demurgos/v8-coverage) : simple & effective cli for code coverage
49- [Vitest](https://github.com/vitest-dev/vitest) : super fast vite-native testing framework
50- [Watchlist](https://github.com/lukeed/watchlist) : recursively watch a list of directories & run a command on any file system
51- [Yoctocolors](https://github.com/sindresorhus/yoctocolors) : for the extra-lightweight color utilities
52
53## Contributors ✨
54
55Thanks goes to these wonderful people :
56
57<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
58<!-- prettier-ignore-start -->
59<!-- markdownlint-disable -->
60<table>
61 <tbody>
62 <tr>
63 <td align="center" valign="top" width="14.28%"><a href="https://fr.linkedin.com/in/romain-racamier"><img src="https://avatars.githubusercontent.com/u/439158?v=4?s=100" width="100px;" alt="Romain Racamier"/><br /><sub><b>Romain Racamier</b></sub></a><br /><a href="#infra-Shuunen" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="https://github.com/Shuunen/shuutils/commits?author=Shuunen" title="Tests">⚠️</a> <a href="https://github.com/Shuunen/shuutils/commits?author=Shuunen" title="Code">💻</a></td>
64 <td align="center" valign="top" width="14.28%"><a href="https://github.com/babforlife"><img src="https://avatars.githubusercontent.com/u/55501953?v=4?s=100" width="100px;" alt="babforlife"/><br /><sub><b>babforlife</b></sub></a><br /><a href="https://github.com/Shuunen/shuutils/commits?author=babforlife" title="Code">💻</a></td>
65 <td align="center" valign="top" width="14.28%"><a href="https://github.com/jordan-boyer"><img src="https://avatars.githubusercontent.com/u/6780830?v=4?s=100" width="100px;" alt="jordan boyer"/><br /><sub><b>jordan boyer</b></sub></a><br /><a href="https://github.com/Shuunen/shuutils/commits?author=jordan-boyer" title="Code">💻</a></td>
66 </tr>
67 </tbody>
68</table>
69
70<!-- markdownlint-restore -->
71<!-- prettier-ignore-end -->
72
73<!-- ALL-CONTRIBUTORS-LIST:END -->
74
75This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!