0.0.0 • Published 5 years ago

node-to-deno v0.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

node-to-deno

NPM version NPM downloads CircleCI donate chat

Install

npm i -g node-to-deno

Usage

Let's say you have a file called index.js that totally works in Node.js

const chalk = require('chalk')

module.exports = {
  sayHello() {
    console.log(chalk.red('Hello there!'))
  }
}

Now let's make this file compatible with deno:

node-to-deno index.js

Then the output file will be dist/index.js, try running it with deno:

deno dist/index.js

Hooray 🥳

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

node-to-deno © EGOIST, Released under the MIT License. Authored and maintained by EGOIST with help from contributors (list).

github.com/egoist · GitHub @EGOIST · Twitter @_egoistlily