8000 GitHub - yaxingson/estdlib: A ecmascript standard library
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

yaxingson/estdlib

Repository files navigation


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


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

Build Status NPM badge deno land JSR badge

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

Get Started

Install

# npm
npm i estdlib --save

# pnpm
pnpm add estdlib

Usage

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

import * as assert from 'estdlib/assert'
import { isArray, isBoolean } from 'estdlib/assert'

import flatten from 'estdlib/array/flatten'
  1. CommonJS
const estdlib = require('estdlib')
const { head, isBoolean, add } = require('estdlib')

const assert = require('estdlib/assert')
const { isArray, isBoolean } = require('estdlib/assert')
  1. CDN
<!-- note that using latest is taking a significant risk that estdlib API changes could break your code -->
<!-- <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>
  1. Deno
import * as R from "https://deno.land/x/estdlib@latest/mod.ts"

// using nest.land
import * as R from "https://x.nest.land/estdlib@latest/mod.ts"

See the full documentation here

Download

  • unpkg
  • jsdelivr
  • cdnjs

Test & Benchmark

Running the test suite:

npm run test

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.

Contributing

Contributions are welcome and appreciated! Check out the contributing guide before you dive in.

About

A ecmascript standard library

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published
0