@keeex/bubble_babble
Advanced tools
Comparing version 2.0.0 to 2.1.5
@@ -1,50 +0,1 @@ | ||
{ | ||
"name": "@keeex/bubble_babble", | ||
"version": "2.0.0", | ||
"description": "Bubble Babble encoding", | ||
"main": "bubble_babble.js", | ||
"scripts": { | ||
"test": "nyc mocha" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com:KeeeX/bubble_babble.git" | ||
}, | ||
"keywords": [ | ||
"bubble", | ||
"babble", | ||
"encode", | ||
"encrypt" | ||
], | ||
"author": "Tylor Reynolds", | ||
"license": "MIT", | ||
"contributors": [ | ||
{ | ||
"name": "Gabriel Paul \"Cley Faye\" Risterucci", | ||
"email": "gabriel@keeex.net" | ||
} | ||
], | ||
"type": "module", | ||
"nyc": { | ||
"extension": [ | ||
".js" | ||
], | ||
"include": [ | ||
"bubble_babble.js" | ||
], | ||
"exclude": [ | ||
"test/**/*" | ||
], | ||
"all": true | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/KeeeX/bubble_babble/issues" | ||
}, | ||
"homepage": "https://github.com/KeeeX/bubble_babble", | ||
"devDependencies": { | ||
"eslint": "^7.27.0", | ||
"mocha": "^8.4.0", | ||
"nyc": "^15.1.0", | ||
"should": "^13.2.3" | ||
} | ||
} | ||
{"name":"@keeex/bubble_babble","version":"2.1.5","description":"Bubble Babble encoding","files":["lib","web"],"main":"lib/bubble_babble.js","browser":"web/bubble_babble.js","scripts":{},"keywords":["bubble","babble","encode","encrypt"],"author":"Tylor Reynolds","license":"MIT","contributors":[{"name":"Gabriel Paul \"Cley Faye\" Risterucci","email":"gabriel@keeex.net"}],"type":"module","homepage":"https://keeex.me/oss"} |
@@ -1,24 +0,24 @@ | ||
bubble_babble | ||
============= | ||
`@keeex/bubble_babble` | ||
====================== | ||
Bubble Babble encoding for nodejs. | ||
Initially forked from tylorr/bubble\_babble to avoid the dependency on `Buffer`. | ||
Bubble Babble encoding. | ||
**Install** | ||
------- | ||
Initially forked from tylorr/bubble\_babble to avoid the dependency on `Buffer`, thus making this | ||
library work in more JavaScript environments. | ||
The built package is not published on any repository; either install the | ||
original package, or install from github: | ||
Installation | ||
------------ | ||
Installation is done from npmjs: | ||
```bash | ||
npm install https://github.com/KeeeX/bubble_babble.git | ||
npm install @keeex/bubble_babble | ||
``` | ||
**Usage** | ||
Usage | ||
----- | ||
```JavaScript | ||
import {encode, decode} from "@keeex/bubble_babble"; | ||
import {encode, decode} from "@keeex/bubble_babble/lib/bubble_babble.js"; | ||
@@ -28,8 +28,13 @@ const encoded = encode("Pineapple"); | ||
const ascii = decode("xesef-disof-gytuf-katof-movif-baxux"); | ||
const ab = decode("xesef-disof-gytuf-katof-movif-baxux"); | ||
const ascii = new TextDecoder().decode(ab); | ||
console.log(ascii); // "1234567890" | ||
``` | ||
Typescript | ||
---------- | ||
This module includes type definition for usage with TypeScript | ||
`encode()` accepts input as UTF8 string, `ArrayBuffer` or `Uint8Array`. | ||
`decode()` returns an `ArrayBuffer`. | ||
There is a secondary export `@keeex/bubblebabble/web/bubble_babble.js` that can be used in | ||
browser environment. | ||
It should be possible to directly import `@keeex/bubble_babble` but this depend on your | ||
environment/bundler. |
Sorry, the diff of this file is not supported yet
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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
18022
0
11
272
40
1
1
1