Socket
Socket
Sign inDemoInstall

string.fromcodepoint

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

string.fromcodepoint - npm Package Compare versions

Comparing version 0.2.1 to 1.0.0

.editorconfig

2

LICENSE-MIT.txt

@@ -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.
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