tiny-coerce
Advanced tools
Comparing version 1.1.1 to 2.0.0
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16999
5
11
193
27
Yes
1