Javascript utility library, applicable to business scenes. Without dependencies.
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')
import { isEmpty } from 'sewing'
isEmpty(10) // => false
isEmpty('') // => true
$ npm i @babel/env babel-plugin-import -D
{
"presets": [
["@babel/env", { "modules": false }]
],
"plugins": [
["import", {
"libraryName": "sewing",
"libraryDirectory": "dist",
"style": false
}]
]
}
git clone git@github.com:Army-U/sewing.git
cd sewing && npm i && npm run dev
Copyright (c) 2017-present, Army-U