-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
34 lines (34 loc) · 1.66 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
"name": "ascii-json",
"version": "0.2.0",
"description": "Generates ASCII-only JSON with escaped non-ASCII chracters.",
"main": "lib/ascii-json.js",
"repository": {
"type": "git",
"url": "git://github.com/donpark/ascii-json.git"
},
"keywords": [
"ascii",
"json"
],
"author": {
"name": "Don Park",
"email": "donpark@docuverse.com"
},
"homepage": "https://github.com/donpark/ascii-json",
"license": "BSD",
"devDependencies": {
"should": "*"
},
"readme": "Generates ASCII-only JSON with escaped non-ASCII chracters.\n\n## Install\n\n npm install ascii-json\n\n## Examples\n\n var asciiJSON = require('ascii-json');\n\nSee if a string is all ASCII or not\n\n asciiJSON.isAscii(\"this is all ASCII\"); // true\n asciiJSON.isAscii(\"this is not 에스키\"); // false\n\nEscape non-ASCII strings\n\n console.log(asciiJSON.escapeNonAsciis('this is not 에스키'));\n\n // output: this is not \\uc5d0\\uc2a4\\ud0a4\"\n\nStringify object with non-ASCII property value\n\n troublemaker = {\n ascii: \"hello world\",\n nonascii: \"안녕하세요\"\n };\n asciiOnly = asciiJSON.stringify(troublemaker);\n console.log(asciiOnly);\n\n // output: {\"ascii\":\"hello world\",\"nonascii\":\"\\uc548\\ub155\\ud558\\uc138\\uc694\"}\n\n",
"readmeFilename": "README.md",
"bugs": {
"url": "https://github.com/donpark/ascii-json/issues"
},
"_id": "ascii-json@0.2.0",
"dist": {
"shasum": "6a2004fccb4e8b154f3422cb48f7bb59d3ce1a74"
},
"_from": "ascii-json@~0.2",
"_resolved": "https://registry.npmjs.org/ascii-json/-/ascii-json-0.2.0.tgz"
}