5.7.0 • Published 5 years ago
@newdash/newdash-node v5.7.0
NewDash
NewDash is a hard fork of the lodash utility project, and re-build it with typescript.
Quick Start
Traditional NodeJS
const { first } = require("@newdash/newdash-node")
first("abc")
// => "a"Load Single Module
const { first } = require("@newdash/newdash-node/first") // Compatible with es6 module
first("abc")
// => "a"ES6 & Typescript
// import { first } from "@newdash/newdash-node" // load all functions of @newdash
import first from "@newdash/newdash-node/first" // only load `first` function
first("abc")
// => "a"Different Release
In most cases, just use the @newdash/newdash-node package is enough.
@newdash/newdash-node- for modernnodejsenvironment, ready for all build tools which based on the nodejscommonjsmodule system (node, react, vuejs, webpack and more).@newdash/newdash-es5- for oldnodejsenvironment, ready for0.12 <= node version <= 8.@newdash/newdash-es6- for modern build system, withes6module keywords so that build tool could strip the unused modules.@newdash/newdash-umd- for native browser without any build system, please access it withunpkgorjsdeliver@newdash/newdash- all in one, includes all built artifacts in the@newdash/newdash/distdirectory.