1.0.0 • Published 2 years ago

basic-hypertext v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

basic-hypertext

Description

basic-hypertext is a small and simple library that can take a body of text and replace the valid URLs with hypertext formatted URLs.

For example:

This text http://www.example.com

Is transformed into:

This text <a href="http://www.example.com">http://www.example.com</a>

Using code like the following:

import { create } from 'basic-hypertext';
const text = 'Text http://www.example.com';
const transformed = create(text);

Installation

$ npm i basic-hypertext

Testing

$ npm i
$ npm test

License

basic-hypertext is released under the MIT license.

1.0.0

2 years ago