@hishprorg/error-totam

1.2.27 • Public • Published

@hishprorg/error-totam Version Badge

github actions coverage License Downloads

npm badge

A helper to optimistically set Symbol.toStringTag, when possible.

Most common usage:

var assert = require('assert');
var setToStringTag = require('@hishprorg/error-totam');

var obj = {};

assert.equal(Object.prototype.toString.call(obj), '[object Object]');

setToStringTag(obj, 'tagged!');

assert.equal(Object.prototype.toString.call(obj), '[object tagged!]');

Tests

Simply clone the repo, npm install, and run npm test

Readme

Keywords

Package Sidebar

Install

npm i @hishprorg/error-totam

Weekly Downloads

343

Version

1.2.27

License

MIT

Unpacked Size

58.9 kB

Total Files

124

Last publish

Collaborators

  • hatrungvk94