Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

reeverse

1.0.0 • Public • Published

reeverse

A dead simple text reverse library.

This library is created for learning Rollup purpose. It's not recommended for your projects.

Installation

  • Install via npm or yarn:
$ npm install reeverse
# install with yarn 
$ yarn add reeverse
  • Include within your HTML
<script src="https://unpkg.com/reeverse@1.0.0/dist/reeverse.min.js"></script>

Usage

  • In a Node.js application.
const reverse = require('reeverse')
 
const text = 'Hello 12bit.vn'
const reversedText = reverse(text)
 
console.log(reversedText)
// nv.tib21 olleH
  • In a modular environment.
import reverse from 'reeverse'
  • In browsers.
<script>
var text = 'Hello 12bit.vn'
var reversedText = reverse(text)
 
console.log(reversedText)
// nv.tib21 olleH
</script> 

Contribute

All contributions, big or small, are warmheartedly welcome! Please follow these steps if you want to contribute to this project.

Clone and install dependencies

git clone https://github.com/tatthien/reeverse.git
cd reeverse
yarn install

Build the library

yarn build

Once you're happy with the changes, commit the file and create a PR.

License

MIT © Thien Nguyen

Install

npm i reeverse

DownloadsWeekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

4.36 kB

Total Files

10

Last publish

Collaborators

  • avatar