string.fromcodepoint
Advanced tools
Comparing version 0.2.1 to 1.0.0
@@ -1,2 +0,2 @@ | ||
Copyright Mathias Bynens <http://mathiasbynens.be/> | ||
Copyright Mathias Bynens <https://mathiasbynens.be/> | ||
@@ -3,0 +3,0 @@ Permission is hereby granted, free of charge, to any person obtaining |
{ | ||
"name": "string.fromcodepoint", | ||
"version": "0.2.1", | ||
"version": "1.0.0", | ||
"description": "A robust & optimized `String.fromCodePoint` polyfill, based on the ECMAScript 6 specification.", | ||
"homepage": "http://mths.be/fromcodepoint", | ||
"main": "fromcodepoint.js", | ||
"homepage": "https://mths.be/fromcodepoint", | ||
"main": "index.js", | ||
"exports": { | ||
".": "./index.js", | ||
"./auto": "./auto.js", | ||
"./shim": "./shim.js", | ||
"./getPolyfill": "./getPolyfill.js", | ||
"./implementation": "./implementation.js", | ||
"./package.json": "./package.json" | ||
}, | ||
"keywords": [ | ||
@@ -14,11 +22,6 @@ "string", | ||
], | ||
"licenses": [ | ||
{ | ||
"type": "MIT", | ||
"url": "http://mths.be/mit" | ||
} | ||
], | ||
"license": "MIT", | ||
"author": { | ||
"name": "Mathias Bynens", | ||
"url": "http://mathiasbynens.be/" | ||
"url": "https://mathiasbynens.be/" | ||
}, | ||
@@ -29,16 +32,20 @@ "repository": { | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/mathiasbynens/String.fromCodePoint/issues" | ||
"bugs": "https://github.com/mathiasbynens/String.fromCodePoint/issues", | ||
"scripts": { | ||
"pretest": "es-shim-api --bound", | ||
"test": "npm run tests-only", | ||
"tests-only": "tape 'tests/*.js'", | ||
"cover": "istanbul cover --report html --verbose --dir coverage tape 'tests/*.js'" | ||
}, | ||
"files": [ | ||
"LICENSE-MIT.txt", | ||
"fromcodepoint.js" | ||
], | ||
"directories": { | ||
"test": "tests" | ||
"dependencies": { | ||
"define-properties": "^1.1.3", | ||
"es-abstract": "^1.17.5" | ||
}, | ||
"scripts": { | ||
"test": "node tests/tests.js", | ||
"cover": "istanbul cover --report html --verbose --dir coverage tests/tests.js" | ||
"devDependencies": { | ||
"@es-shims/api": "^2.1.2", | ||
"function-bind": "^1.1.1", | ||
"functions-have-names": "^1.2.1", | ||
"istanbul": "^0.4.5", | ||
"tape": "^5.0.0" | ||
} | ||
} |
@@ -1,5 +0,7 @@ | ||
# ES6 `String.fromCodePoint` polyfill [![Build status](https://travis-ci.org/mathiasbynens/String.fromCodePoint.svg?branch=master)](https://travis-ci.org/mathiasbynens/String.fromCodePoint) | ||
# ES6 `String.fromCodePoint` polyfill [![Build status](https://travis-ci.org/mathiasbynens/String.fromCodePoint.svg?branch=master)](https://travis-ci.org/mathiasbynens/String.fromCodePoint) [![Code coverage status](http://img.shields.io/coveralls/mathiasbynens/String.fromCodePoint/master.svg)](https://coveralls.io/r/mathiasbynens/String.fromCodePoint) | ||
An robust & optimized ES3-compatible polyfill for [the `String.fromCodePoint` method in ECMAScript 6](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-string.fromcodepoint). | ||
An robust & optimized polyfill for [the `String.fromCodePoint` method in ECMAScript 6](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-string.fromcodepoint). | ||
This package implements the [es-shim API](https://github.com/es-shims/api) interface. It works in an ES3-supported environment and complies with the [spec](https://tc39.es/ecma262/#sec-string.fromcodepoint). | ||
Other polyfills for `String.fromCodePoint` are available: | ||
@@ -13,8 +15,2 @@ | ||
In a browser: | ||
```html | ||
<script src="fromcodepoint.js"></script> | ||
``` | ||
Via [npm](http://npmjs.org/): | ||
@@ -29,12 +25,19 @@ | ||
```js | ||
require('string.fromcodepoint'); | ||
var fromCodePoint = require('string.fromcodepoint'); | ||
``` | ||
// On Windows and on Mac systems with default settings, case doesn’t matter, | ||
// which allows you to do this instead: | ||
require('String.fromCodePoint'); | ||
In a browser: | ||
```html | ||
<script src="https://bundle.run/string.fromcodepoint"></script> | ||
``` | ||
> **NOTE**: It's recommended that you install this module using a package manager | ||
> such as `npm`, because loading multiple polyfills from a CDN (such as `bundle.run`) | ||
> will lead to duplicated code. | ||
## Notes | ||
[A polyfill + test suite for `String.prototype.codePointAt`](http://mths.be/codepointat) is available, too. | ||
[A polyfill + test suite for `String.prototype.codePointAt`](https://mths.be/codepointat) is available, too. | ||
@@ -47,6 +50,6 @@ The tests for this repository [are now used by Mozilla](http://hg.mozilla.org/integration/mozilla-inbound/rev/2411714cd058), to help ensure their native `String.fromCodePoint` implementation is correct. | ||
|---| | ||
| [Mathias Bynens](http://mathiasbynens.be/) | | ||
| [Mathias Bynens](https://mathiasbynens.be/) | | ||
## License | ||
This polyfill is available under the [MIT](http://mths.be/mit) license. | ||
This polyfill is available under the [MIT](https://mths.be/mit) license. |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
10965
14
162
0
53
2
5
1
2
+ Addeddefine-properties@^1.1.3
+ Addedes-abstract@^1.17.5
+ Addedarray-buffer-byte-length@1.0.1(transitive)
+ Addedarraybuffer.prototype.slice@1.0.3(transitive)
+ Addedavailable-typed-arrays@1.0.7(transitive)
+ Addedcall-bind@1.0.7(transitive)
+ Addeddata-view-buffer@1.0.1(transitive)
+ Addeddata-view-byte-length@1.0.1(transitive)
+ Addeddata-view-byte-offset@1.0.0(transitive)
+ Addeddefine-data-property@1.1.4(transitive)
+ Addeddefine-properties@1.2.1(transitive)
+ Addedes-abstract@1.23.3(transitive)
+ Addedes-define-property@1.0.0(transitive)
+ Addedes-errors@1.3.0(transitive)
+ Addedes-object-atoms@1.0.0(transitive)
+ Addedes-set-tostringtag@2.0.3(transitive)
+ Addedes-to-primitive@1.2.1(transitive)
+ Addedfor-each@0.3.3(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedfunction.prototype.name@1.1.6(transitive)
+ Addedfunctions-have-names@1.2.3(transitive)
+ Addedget-intrinsic@1.2.4(transitive)
+ Addedget-symbol-description@1.0.2(transitive)
+ Addedglobalthis@1.0.4(transitive)
+ Addedgopd@1.0.1(transitive)
+ Addedhas-bigints@1.0.2(transitive)
+ Addedhas-property-descriptors@1.0.2(transitive)
+ Addedhas-proto@1.0.3(transitive)
+ Addedhas-symbols@1.0.3(transitive)
+ Addedhas-tostringtag@1.0.2(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedinternal-slot@1.0.7(transitive)
+ Addedis-array-buffer@3.0.4(transitive)
+ Addedis-bigint@1.0.4(transitive)
+ Addedis-boolean-object@1.1.2(transitive)
+ Addedis-callable@1.2.7(transitive)
+ Addedis-data-view@1.0.1(transitive)
+ Addedis-date-object@1.0.5(transitive)
+ Addedis-negative-zero@2.0.3(transitive)
+ Addedis-number-object@1.0.7(transitive)
+ Addedis-regex@1.1.4(transitive)
+ Addedis-shared-array-buffer@1.0.3(transitive)
+ Addedis-string@1.0.7(transitive)
+ Addedis-symbol@1.0.4(transitive)
+ Addedis-typed-array@1.1.13(transitive)
+ Addedis-weakref@1.0.2(transitive)
+ Addedisarray@2.0.5(transitive)
+ Addedobject-inspect@1.13.2(transitive)
+ Addedobject-keys@1.1.1(transitive)
+ Addedobject.assign@4.1.5(transitive)
+ Addedpossible-typed-array-names@1.0.0(transitive)
+ Addedregexp.prototype.flags@1.5.2(transitive)
+ Addedsafe-array-concat@1.1.2(transitive)
+ Addedsafe-regex-test@1.0.3(transitive)
+ Addedset-function-length@1.2.2(transitive)
+ Addedset-function-name@2.0.2(transitive)
+ Addedside-channel@1.0.6(transitive)
+ Addedstring.prototype.trim@1.2.9(transitive)
+ Addedstring.prototype.trimend@1.0.8(transitive)
+ Addedstring.prototype.trimstart@1.0.8(transitive)
+ Addedtyped-array-buffer@1.0.2(transitive)
+ Addedtyped-array-byte-length@1.0.1(transitive)
+ Addedtyped-array-byte-offset@1.0.2(transitive)
+ Addedtyped-array-length@1.0.6(transitive)
+ Addedunbox-primitive@1.0.2(transitive)
+ Addedwhich-boxed-primitive@1.0.2(transitive)
+ Addedwhich-typed-array@1.1.15(transitive)