sn-js-utils

JS | TS 常用工具类库

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
sn-js-utils
0.1.73 years ago5 years agoMinified + gzip package size for sn-js-utils in KB

Readme

license Build Status Coveralls npm NPM downloads Percentage of issues still open
简体中文 | English
The third party JS|TS common library

:star: special

- The third party JS|TS common library

:pill: Compatibility

Unit tests guarantee support on the following environment:
| IE | CH | FF | SF | OP | IOS | Android | Node | | ---- | ---- | ---- | ---- | ---- | ---- | ---- | ----- | | 6+ | 29+ | 55+ | 9+ | 50+ | 9+ | 4+ | 4+ |

:rocket: Usage Instructions

Using npm, download and install the code.
$ npm install --save sn-js-utils

For node environment:
const snJsUtils = require('../dist/index.js');

For webpack or similar environment:
import { DateUtil } from 'sn-js-utils';

For requirejs environment:
requirejs(['node_modules/sn-js-utils/dist/index.aio.js'], function (snJsUtils) {
    console.log(snJsUtils.DateUtil.formatDate(new Date(), 'yyyy-MM-dd'));
})

For browser environment:
<script src="node_modules/sn-js-utils/dist/index.aio.js"></script>

:bookmarktabs: Documents

API

Contributors

contributors

:gear: Change Log

CHANGELOG.md

:airplane: TODO

TODO.md

:bulb: Current Users