
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
@newdash/newdash
Advanced tools
NewDash is a hard fork of the lodash utility project, and re-build it with typescript
.
import first from "@newdash/newdash-es6/first" // only load `first` function
first("abc")
// => "a"
works as you want.
// const { first } = require("@newdash/newdash")
const { first } = require("@newdash/newdash/first") // Compatible with es6 module
first("abc")
// => "a"
// import { first } from "@newdash/newdash" // load all functions of @newdash
import first from "@newdash/newdash/first" // only load `first` function
first("abc")
// => "a"
import from CDN, remember to add .ts
suffix.
// import { add } from "https://cdn.jsdelivr.net/npm/@newdash/newdash-deno/index.ts"
import { add } from "https://cdn.jsdelivr.net/npm/@newdash/newdash-deno/add.ts"
add(1, 2)
// => 3
add('1', '2')
// => '12'
add('1', 2) // different types
// throw error: TS2345 [ERROR]: Argument of type '2' is not assignable to parameter of type '"1"'.
just introduce script
with html.
<script src="https://cdn.jsdelivr.net/npm/@newdash/newdash-umd/newdash.min.js"></script>
concurrency/limit
- limit concurrency of async operationsMutex
- exclusive executinghash
- hash js object to stable string (MD5 based)fallback
- fallback functions for resilienceLRUMap
and TTLMap
- Map implementations which concern about evictionIn most cases, just use the @newdash/newdash
package is enough.
@newdash/newdash
- for modern nodejs
environment, ready for all build tools which based on the nodejs commonjs
module system (node, react, vuejs, webpack and more).@newdash/newdash-deno
- for deno language support, with some transform, like add the '.ts' suffix for modules.@newdash/newdash-es5
- for old nodejs
environment, ready for 0.12 <= node version <= 8
.@newdash/newdash-es6
- for modern build system, with es6
module keywords so that build tool could strip the unused modules.@newdash/newdash-umd
- for native browser without any build system, please access it with unpkg
or jsdeliver
FAQs
javascript/typescript utility library
The npm package @newdash/newdash receives a total of 5,357 weekly downloads. As such, @newdash/newdash popularity was classified as popular.
We found that @newdash/newdash demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.