Skip to content

jeremy-ww/sewing

Repository files navigation

sewing

Build Status Dependency Status Version Download

Introduction

Javascript utility library, applicable to business scenes. Without dependencies.

Quick Start

Using npm:

$ npm i sewing

In TypeScript/ESM:

import sewing from 'sewing'
import isEmpty from 'sewing/dist/isEmpty'

In Node.js:

// You can't require whole library, it contains browser env code.
const isEmpty = require('sewing/libs/isEmpty')

Examples

import { isEmpty } from 'sewing'

isEmpty(10) // => false
isEmpty('') // => true

Load on demand

$ npm i @babel/env babel-plugin-import -D
{
  "presets": [
    ["@babel/env", { "modules": false }]
  ],
  "plugins": [
    ["import", {
      "libraryName": "sewing",
      "libraryDirectory": "dist",
      "style": false
    }]
  ]
}

Development

git clone git@github.com:Army-U/sewing.git
cd sewing && npm i && npm run dev

License

MIT

Copyright (c) 2017-present, Army-U

Releases

No releases published

Packages

No packages published