mirror of
https://github.com/arthur-pbty/portfolio2023.git
synced 2026-06-05 13:52:25 +02:00
modified
This commit is contained in:
-8
@@ -1,8 +0,0 @@
|
||||
module.exports = {
|
||||
printWidth: 160,
|
||||
tabWidth: 4,
|
||||
singleQuote: true,
|
||||
endOfLine: 'lf',
|
||||
trailingComma: 'none',
|
||||
arrowParens: 'avoid'
|
||||
};
|
||||
-25
@@ -1,25 +0,0 @@
|
||||
language: node_js
|
||||
sudo: false
|
||||
node_js:
|
||||
- "0.10"
|
||||
- 0.12
|
||||
- iojs
|
||||
- 4
|
||||
- 5
|
||||
env:
|
||||
- CXX=g++-4.8
|
||||
addons:
|
||||
apt:
|
||||
sources:
|
||||
- ubuntu-toolchain-r-test
|
||||
packages:
|
||||
- g++-4.8
|
||||
notifications:
|
||||
email:
|
||||
- andris@kreata.ee
|
||||
webhooks:
|
||||
urls:
|
||||
- https://webhooks.gitter.im/e/0ed18fd9b3e529b3c2cc
|
||||
on_success: change # options: [always|never|change] default: always
|
||||
on_failure: always # options: [always|never|change] default: always
|
||||
on_start: false # default: false
|
||||
-16
@@ -1,16 +0,0 @@
|
||||
Copyright (c) 2012-2014 Andris Reinman
|
||||
|
||||
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 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.
|
||||
-41
@@ -1,41 +0,0 @@
|
||||
# Encoding
|
||||
|
||||
**encoding** is a simple wrapper around [iconv-lite](https://github.com/ashtuchkin/iconv-lite/) to convert strings from one encoding to another.
|
||||
|
||||
[](http://travis-ci.org/andris9/Nodemailer)
|
||||
[](http://badge.fury.io/js/encoding)
|
||||
|
||||
Initially _encoding_ was a wrapper around _node-iconv_ (main) and _iconv-lite_ (fallback) and was used as the encoding layer for Nodemailer/mailparser. Somehow it also ended up as a dependency for a bunch of other project, none of these actually using _node-iconv_. The loading mechanics caused issues for front-end projects and Nodemailer/malparser had moved on, so _node-iconv_ was removed.
|
||||
|
||||
## Install
|
||||
|
||||
Install through npm
|
||||
|
||||
npm install encoding
|
||||
|
||||
## Usage
|
||||
|
||||
Require the module
|
||||
|
||||
var encoding = require("encoding");
|
||||
|
||||
Convert with encoding.convert()
|
||||
|
||||
var resultBuffer = encoding.convert(text, toCharset, fromCharset);
|
||||
|
||||
Where
|
||||
|
||||
- **text** is either a Buffer or a String to be converted
|
||||
- **toCharset** is the characterset to convert the string
|
||||
- **fromCharset** (_optional_, defaults to UTF-8) is the source charset
|
||||
|
||||
Output of the conversion is always a Buffer object.
|
||||
|
||||
Example
|
||||
|
||||
var result = encoding.convert("ÕÄÖÜ", "Latin_1");
|
||||
console.log(result); //<Buffer d5 c4 d6 dc>
|
||||
|
||||
## License
|
||||
|
||||
**MIT**
|
||||
-18
@@ -1,18 +0,0 @@
|
||||
{
|
||||
"name": "encoding",
|
||||
"version": "0.1.13",
|
||||
"description": "Convert encodings, uses iconv-lite",
|
||||
"main": "lib/encoding.js",
|
||||
"scripts": {
|
||||
"test": "nodeunit test"
|
||||
},
|
||||
"repository": "https://github.com/andris9/encoding.git",
|
||||
"author": "Andris Reinman",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"iconv-lite": "^0.6.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"nodeunit": "0.11.3"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user