Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    to-binarypublic

    toBinary

    converts decimal to binary recursively

    installation

    npm install to-binary
    

    usage

    var toBinary = require('to-binary')
    console.log(toBinary(98)) // => 01100010
     
    var ch = 'k'
    var ascii = ch.charCodeAt(0) 
    console.log(toBinary(ascii)) // => 01101011

    install

    npm i to-binary

    Downloadsweekly downloads

    10

    version

    0.0.1

    license

    MIT

    repository

    githubgithub

    last publish

    collaborators

    • avatar