Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tiny-coerce

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tiny-coerce - npm Package Compare versions

Comparing version 1.1.1 to 2.0.0

CHANGELOG.md

40

package.json
{
"name": "tiny-coerce",
"version": "1.1.1",
"version": "2.0.0",
"description": "Tiny coercion library for Client or Server",
"main": "lib/tiny-coerce.js",
"source": "src/coerce.js",
"main": "dist/tiny-coerce.cjs",
"module": "dist/tiny-coerce.esm.js",
"type": "module",
"sourceType": "module",
"engineStrict": true,
"engines": {
"node": ">= 16.0.0"
},
"scripts": {
"test": "grunt test"
"build": "npm run lint && rm -rf dist/* && npm run rollup && npm run mocha",
"changelog": "auto-changelog -p",
"rollup": "rollup --config",
"lint": "eslint *.js src/*.js test/*.js",
"mocha": "mocha test/*.js",
"test": "npm run lint && npm run mocha"
},
"repository": {
"type": "git",
"url": "https://github.com/avoidwork/tiny-coerce.git"
"url": "git://github.com/avoidwork/tiny-coerce.git"
},

@@ -22,20 +35,11 @@ "keywords": [

},
"engineStrict": true,
"engines": {
"node": ">=6.5.0"
},
"homepage": "http://avoidwork.github.io/tiny-coerce",
"devDependencies": {
"babel-core": "^6.26.3",
"babel-minify": "^0.4.3",
"grunt": "^1.0.3",
"grunt-cli": "^1.2.0",
"grunt-contrib-concat": "^1.0.1",
"grunt-contrib-nodeunit": "^2.0.0",
"grunt-contrib-uglify": "^3.3.0",
"grunt-contrib-watch": "^1.1.0",
"grunt-eslint": "^21.0.0",
"grunt-replace": "^1.0.1"
"auto-changelog": "^2.4.0",
"eslint": "^8.23.0",
"mocha": "^10.0.0",
"rollup": "^2.79.0",
"rollup-plugin-terser": "^7.0.2"
},
"dependencies": {}
}
# Tiny Coerce
[![build status](https://secure.travis-ci.org/avoidwork/tiny-coerce.svg)](http://travis-ci.org/avoidwork/tiny-coerce)

@@ -15,3 +14,3 @@ String to primitive coercion for Client or Server. It's great for DOM data attributes, localStorage,

```javascript
const coerce = require("tiny-coerce");
import {coerce} from "tiny-coerce";

@@ -23,4 +22,7 @@ console.log(coerce("true")); // true

## How can I load dom-router?
When loaded with a script tag, `window.tinyCoerce.coerce()` will be created.
## License
Copyright (c) 2018 Jason Mulligan
Copyright (c) 2022 Jason Mulligan
Licensed under the BSD-3 license

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc