Catalog npm
Back to packageRELEASE DETAILS

1.1.1

npm

2utf8

Tranform string text to UTF-8

charcharsetconvertdetectorencodingutfutf-8utf8chardetlatin1
Published11 Oct 2017
Direct dependencies5
Transitive dependenciesNot calculated

README

Current package documentation

2UTF8

Tranform string text or text buffer to UTF-8

NPM URL

http://npmjs.com/package/2utf8

GIT URL

https://github.com/warlock/2utf8

Example:

const toUtf8 = require('2utf8')
const request = require(request)

request('https://www.js.gl', { encoding: null }, (err, res, bodybuffer) => {
  try {
    const text = toUtf8(bodybuffer)
    console.log(text)
  } catch (error) {
    console.error(error)
  }
})

License

The MIT License (MIT) Copyright (c) 2017 Josep Subils (js@js.gl)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 5

Native requirements
5 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
charset
Environment
{
  "local_name": "charset",
  "alias": false,
  "peer_metadata": null
}
^1.0.0runtime
iconv
Environment
{
  "local_name": "iconv",
  "alias": false,
  "peer_metadata": null
}
2.2.1runtime
jschardet
Environment
{
  "local_name": "jschardet",
  "alias": false,
  "peer_metadata": null
}
^1.4.2runtime
node-icu-charset-detector
Environment
{
  "local_name": "node-icu-charset-detector",
  "alias": false,
  "peer_metadata": null
}
^0.2.0runtime
tck
Environment
{
  "local_name": "tck",
  "alias": false,
  "peer_metadata": null
}
*runtime

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-PdWoa3b8y0xKCFeTOd/7N0/SEkyAiQh/QnhDjeVhcoDzPgHNjU/CCKkB5tbazAqKXPpQ4DsJOrSpPb+mpEuhQA==",
  "shasum": "62bdf26a6594bb77ffdd233b9122a729c3fa68cd",
  "tarball": "https://registry.npmjs.org/2utf8/-/2utf8-1.1.1.tgz",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEQCIGIKfOL3qnRvJUduv3xbnbLb4UaynrNopuzNdxIETLgVAiAxnsWWGUio8SMGm14dQHa3THWUI06h4REpqU1m1bl5kg=="
    }
  ]
}

Repository

ACCESSIBLE
warlock/2utf8

Shared repository data · GitHub

License detected in repository
MIT
License branch / ref
master
Last push
23 Jul 2020
Archived
No
Contributor identities
— · partial collection

Public sponsor counts have not been collected. These signals belong to the repository owner.

Downloads & popularity

0count
Gauge · observed snapshots24 Oct 2026
10.50
2026-10-24: 0 · observed 2026-10-24T21:07:52.9859939Z
24 Oct24 Oct

github · 1 observations shown. Missing days are unknown.

View observed values
Date / source periodValueObserved at
2026-10-2402026-10-24T21:07:52.9859939Z

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 19:19 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:1ee20a0522ea3e1e40bf8af3338c11fcfb8326dd387bdbe8063ef06b84df9a3b

Other collected versions

3.0.023 Jul2.1.07 Nov2.0.07 Nov1.2.16 May1.2.03 May1.1.211 OctView all collected versions →