Giter Site home page Giter Site logo

staltz / ssb-keys-mnemonic-neon Goto Github PK

View Code? Open in Web Editor NEW
6.0 3.0 0.0 4.37 MB

A drop-in replacement of ssb-keys-mnemonic, implemented in Rust and delivered as a native module in Node.js

License: GNU Lesser General Public License v3.0

JavaScript 10.18% Rust 89.82%

ssb-keys-mnemonic-neon's Introduction

ssb-keys-mnemonic-neon

A drop-in replacement of ssb-keys-mnemonic, implemented in Rust and delivered as a native module in Node.js

npm install ssb-keys-mnemonic-neon

Read more about SSB Neon here.

Usage

There are two ways you can use this npm package.

Option 1: (easiest) automatically replace

In your package.json, assuming you already have ssb-keys-mnemonic, you can replace its implementation by pointing to the GitHub repo for ssb-keys-mnemonic-neon:

   // ...
   "dependencies": {
     "ssb-ebt": "^5.6.7",
     "ssb-friends": "^4.1.4",
     "ssb-invite": "^2.1.3",
-    "ssb-keys-mnemonic": "1.0.0",
+    "ssb-keys-mnemonic": "staltz/ssb-keys-mnemonic-neon#replace-1.0.0",
     "ssb-lan": "^0.2.0",
     "ssb-logging": "^1.0.0",
     "ssb-markdown": "^6.0.4",
   }
   // ...

This is the easiest method because you only need to change package.json, your code can still require('ssb-keys-mnemonic') and under the hood it will load ssb-keys-mnemonic-neon.

Note that you cannot specify version ranges. If you previously had "ssb-keys-mnemonic": "1.0.x", you will have to specify an exact version when you write "staltz/ssb-keys-mnemonic-neon#replace-1.0.0", you cannot write "staltz/ssb-keys-mnemonic-neon#replace-1.0.x".

Option 2: manually replace

This method gives you more control over the usage of ssb-keys-mnemonic-neon, as well as allows you to specify version ranges. Just remove ssb-keys-mnemonic from your package.json, and add ssb-keys-mnemonic-neon:

   // ...
   "dependencies": {
     "ssb-ebt": "^5.6.7",
     "ssb-friends": "^4.1.4",
     "ssb-invite": "^2.1.3",
-    "ssb-keys-mnemonic": "1.0.0",
+    "ssb-keys-mnemonic-neon": ">=1.0.0-1",
     "ssb-lan": "^0.2.0",
     "ssb-logging": "^1.0.0",
     "ssb-markdown": "^6.0.4",
   }
   // ...

Then, you also have to replace usages of ssb-keys manually in JavaScript source files:

-var ssbKeys = require('ssb-keys-mnemonic')
+var ssbKeys = require('ssb-keys-mnemonic-neon')

 // ...

Versioning and support

[email protected] is compatible with [email protected].

Versions of ssb-keys-mnemonic that are mirrored by ssb-keys-mnemonic-neon currently include (and which platforms are prebuilt for):

1.0.0 (click here to see which platforms have prebuilt binaries)

As of [email protected]

  • macOS (darwin-x64)
    • Node 10.x
    • Node 12.x
    • Node 14.x
    • Electron 7.x
    • Electron 8.x
    • Electron 9.x
    • Electron 10.x
  • Linux (linux-x64)
    • Node 10.x
    • Node 12.x
    • Node 14.x
    • Electron 7.x
    • Electron 8.x
    • Electron 9.x
    • Electron 10.x
  • Windows (win32-x64)
    • Node 10.x
    • Node 12.x
    • Node 14.x
    • Electron 7.x
    • Electron 8.x
    • Electron 9.x
    • Electron 10.x
0.3.1 (click here to see which platforms have prebuilt binaries)

As of [email protected]

  • macOS (darwin-x64)
    • Node 10.x
    • Node 12.x
    • Node 14.x
    • Electron 7.x
    • Electron 8.x
    • Electron 9.x
    • Electron 10.x
  • Linux (linux-x64)
    • Node 10.x
    • Node 12.x
    • Node 14.x
    • Electron 7.x
    • Electron 8.x
    • Electron 9.x
    • Electron 10.x
  • Windows (win32-x64)
    • Node 10.x
    • Node 12.x
    • Node 14.x
    • Electron 7.x
    • Electron 8.x
    • Electron 9.x
    • Electron 10.x

License

LGPL-3.0

ssb-keys-mnemonic-neon's People

Contributors

staltz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.