ECMAScript "ToPrimitive" algorithm. Provides ES5 and ES6/ES2015 versions.
☆21Jun 26, 2026Updated 4 months ago
Alternatives and similar repositories for es-to-primitive
Users that are interested in es-to-primitive are comparing it to the libraries listed below. We may earn a commission when you buy through links labeled 'Ad' on this page.
Sorting:
- Is this value a JS Date object? This module works cross-realm/iframe, and despite ES6 @@toStringTag.☆16Dec 30, 2025Updated 10 months ago
- Is this value a JS regex?☆24Apr 8, 2026Updated 6 months ago
- Is this an ES6 Symbol value?☆19Mar 16, 2026Updated 7 months ago
- Define multiple non-enumerable properties at once. Uses `Object.defineProperty` when available; falls back to standard assignment in olde…☆20Dec 30, 2025Updated 10 months ago
- Is this JS value callable? Works with Functions and GeneratorFunctions, despite ES6 @@toStringTag.☆41Dec 30, 2025Updated 10 months ago
- End-to-end encrypted email - Proton Mail • AdSpecial offer: 40% Off Yearly / 80% Off First Month. All Proton services are open source and independently audited for security.
- DES for browserify☆10Dec 21, 2024Updated last year
- getpass for node.js☆18Apr 25, 2017Updated 9 years ago
- Use node's fs.realpath, but fall back to the JS implementation if the native one fails☆25Oct 25, 2025Updated last year
- Temporarily substitute tokens in the given `string` with placeholders, then put them back after transforming the string.☆14Sep 25, 2016Updated 10 years ago
- node's assert.deepEqual algorithm except for the fact that (NaN === NaN) and (+0 !== -0).☆21Sep 4, 2021Updated 5 years ago
- deterministic JSON.stringify() with custom sorting to get deterministic hashes from stringified results☆13Apr 11, 2021Updated 5 years ago
- Spec-compliant shim for `Object.getOwnPropertyDescriptors` that works in ES5.☆20Jan 13, 2026Updated 9 months ago
- ES6 spec-compliant Function.prototype.name sham.☆12Jun 11, 2026Updated 4 months ago
- Check if an object can be used like an Array☆17Sep 13, 2025Updated last year
- Deploy to Railway using AI coding agents - Free Credits Offer • AdUse Claude Code, Codex, OpenCode, and more. Autonomous software development now has the infrastructure to match with Railway.
- Removes all separators from the end of a string.☆12Dec 12, 2017Updated 8 years ago
- Returns `true` if a file path appears to be relative. Moved from the "relative" lib.☆14May 6, 2018Updated 8 years ago
- Object.keys shim☆44Mar 17, 2026Updated 7 months ago
- Array.prototype.includes spec-compliant polyfill☆43Sep 11, 2026Updated last month
- Array#filter for older browsers.☆18Feb 23, 2024Updated 2 years ago
- Right-align the text in a string.☆19May 4, 2018Updated 8 years ago
- Try to guess if your terminal supports unicode☆18Dec 16, 2020Updated 5 years ago
- Create an array by repeating the given string n times.☆19Apr 7, 2021Updated 5 years ago
- ☆19Dec 21, 2024Updated last year
- GPU virtual machines on DigitalOcean Gradient AI • AdGet to production fast with high-performance AMD and NVIDIA GPUs you can spin up in seconds. The definition of operational simplicity.
- PostCSS helpers to throw or output GNU style messages☆10Jul 2, 2024Updated 2 years ago
- Returns true if a value has the characteristics of a valid JavaScript accessor descriptor.☆15Jul 12, 2026Updated 3 months ago
- ☆20Oct 18, 2021Updated 5 years ago
- ECMAScript spec abstract operations.☆125Sep 17, 2026Updated last month
- Get an ArrayBuffer from a Buffer as fast as possible☆20Jul 9, 2021Updated 5 years ago
- Moved to https://github.com/nodejs/string_decoder☆23Jun 21, 2017Updated 9 years ago
- process.nextTick always accepts args, always☆34Jun 19, 2019Updated 7 years ago
- A transform to make UglifyJS work in browserify☆20Feb 18, 2020Updated 6 years ago
- ☆19Dec 21, 2024Updated last year
- End-to-end encrypted email - Proton Mail • AdSpecial offer: 40% Off Yearly / 80% Off First Month. All Proton services are open source and independently audited for security.
- The map of HTTP status codes from the builtin http module☆19Apr 21, 2022Updated 4 years ago
- A library of cross-platform tested terminal/console command strings for doing things like color and cursor positioning. This is a subset…☆31Dec 18, 2020Updated 5 years ago
- ☆20Oct 19, 2026Updated 2 weeks ago
- abstract base class for hash-streams☆12Sep 23, 2025Updated last year
- Detect whether or not an object is a Typed Array☆22Jan 23, 2024Updated 2 years ago
- schema package for HTTPArchive (HAR)☆23Jun 4, 2020Updated 6 years ago
- Like `new Map` but for older JavaScripts☆21Oct 25, 2025Updated last year