From 2669170b8175164591df0170bac75180303d43b3 Mon Sep 17 00:00:00 2001 From: eru123 Date: Mon, 21 Jun 2021 23:19:18 +0800 Subject: [PATCH] add: deno usage --- README.md | 15 +++++++++++++++ package.json | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 23f7bdf..42b7f1e 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ Custom Number System ## Installation +### NPM or Yarn ```bash npm i numesis @@ -9,7 +10,21 @@ npm i numesis yarn add numesis ``` +### Deno +import numesis module on your project directly +```js +import Numesis from 'https://deno.land/x/numesis/mod.ts' +``` ## Usage +### With deno +```js +import Numesis from 'https://deno.land/x/numesis/mod.ts' + +const n = new Numesis(); + +// Encode +const encoded = n.e(999); // output: P7Ct +``` ### Basic ```js const Numesis = require('numesis') diff --git a/package.json b/package.json index 59d9709..36602ce 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "numesis", - "version": "1.0.0", + "version": "1.0.1", "description": "Custom Number System", "main": "mod.js", "scripts": {