0.1.11 • Published 1 year ago

@3-/urlli v0.1.11

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
1 year ago

@3-/urlli

test/main.coffee :

#!/usr/bin/env coffee

> @3-/urlli/Match.js
  @3-/urlli/Re.js
  @3-/urlli/Path.js
  @3-/urlli/i18nReset.js
  @3-/urlli/i18nUrl.js:@ > I18N_URL
  @3-/urlli

urlli(
  Path.abc 'ABC_COM'
)
i18nUrl(
  Re '(.*)/(.*)','RE_COM'
)

match = Match(
  (compent, args)=>
    console.log {
      compent
      args
    }
    return
  (url)=>
    console.log '404 '+url
    return
)
match '123/456'
match 'abc'

console.log I18N_URL
i18nReset()
console.log I18N_URL

output :

{ compent: 'RE_COM', args: [ '123', '456' ] }
{ compent: 'ABC_COM', args: undefined }
[ [Function (anonymous)] ]
[]
0.1.11

1 year ago

0.1.10

1 year ago

0.1.9

1 year ago

0.1.7

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.4

1 year ago

0.1.1

1 year ago