javascript parse utility library.
# install npm.
npm install --save-dev js-parse-module
// import.
import PARSE_MODULE from 'js-parse-module';
<script src="./js-parse-module.js"></script>
<script>
let str = PARSE_MODULE.Str2AutoLink('https://wwww.google.com');
console.log(str);
</script>
Parameter | Type | Default | Description |
---|---|---|---|
str | string | - ※省略不可 | 文字列にhtmlのリンクが付与されます。 |
target | string | '_blank' | リンクのtarget属性を指定します。 |
Parameter | Type | Default | Description |
---|---|---|---|
str | string | - ※省略不可 | 文字列(ハッシュタグ)にhtmlのリンクが付与されます。 |
target | string | '_blank' | リンクのtarget属性を指定します。 |
none
For Developer
- Fork it ( https://github.com/yama-dev/js-parse-module/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create new Pull Request
Install node modules.
$ npm install
Run npm script 'develop'
$ npm run develop
Run npm script 'production'
$ npm run production