Skip to content

yaxingson/estdlib

Repository files navigation


 _______   ________  _________  ________  ___       ___  ________
|\  ___ \ |\   ____\|\___   ___\\   ___ \|\  \     |\  \|\   __  \
\ \   __/|\ \  \___|\|___ \  \_\ \  \_|\ \ \  \    \ \  \ \  \|\ /_
 \ \  \_|/_\ \_____  \   \ \  \ \ \  \ \\ \ \  \    \ \  \ \   __  \
  \ \  \_|\ \|____|\  \   \ \  \ \ \  \_\\ \ \  \____\ \  \ \  \|\  \
   \ \_______\____\_\  \   \ \__\ \ \_______\ \_______\ \__\ \_______\
    \|_______|\_________\   \|__|  \|_______|\|_______|\|__|\|_______|
             \|_________|


The estdlib is a standard library for the browser and node.js built on modern ecmascript.

Features

  • 💪 Type strong, write in typescript
  • 📦 Use native ESM to achieve a smaller packaging volume
  • 🚀 Excellent performance

Get Started

Install

# npm
npm i estdlib --save

# pnpm
pnpm add estdlib

Usage

  1. esm
import * as _ from 'estdlib'
import { first, isBoolean, add } from 'estdlib'

import * as assert from 'estdlib/assert'
import { isArray, isBoolean } from 'estdlib/assert'
  1. cjs
const estdlib = require('estdlib')
const { head, isBoolean, add } = require('estdlib')

const assert = require('estdlib/assert')
const { isArray, isBoolean } = require('estdlib/assert')
  1. cdn
<!-- <script src="https://unpkg.com/estdlib@latest/dist/estdlib.min.js"></script> -->
<script src="https://unpkg.com/estdlib@latest/dist/estdlib.js"></script>
<script type="module">
  import * as _ from 'https://unpkg.com/estdlib@latest/dist/estdlib.esm.js'

</script>

See the full documentation here

Download

  • unpkg
  • jsdelivr

Support

Tested in Chrome 74-75, Firefox 66-67, IE 11, Edge 18, Safari 11-12, & Node.js 8-12.

Automated browser & CI test runs are available.

About

A ecmascript standard library

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published