{"size": 598, "ext": "js", "max_stars_repo_path": "results/4_extract-code/code/slug/slug_1.js", "max_stars_repo_name": "proglang/dts-generate-results", "max_stars_repo_stars_event_min_datetime": "2021-04-21T16:38:38.000Z", "max_stars_repo_stars_event_max_datetime": "2021-11-17T15:20:30.000Z", "max_issues_repo_path": "results/4_extract-code/code/slug/slug_1.js", "max_issues_repo_name": "proglang/dts-generate-results", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "results/4_extract-code/code/slug/slug_1.js", "max_forks_repo_name": "proglang/dts-generate-results", "max_forks_repo_forks_event_min_datetime": "2019-10-31T18:45:26.000Z", "max_forks_repo_forks_event_max_datetime": "2019-10-31T18:45:26.000Z"}
{"max_stars_count": 2, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 27.1818181818, "max_line_length": 104, "alphanum_fraction": 0.652173913}
var slug = require('slug')
var print = console.log.bind(console, '>')

print(slug('i ♥ unicode'))
// > i-love-unicode

print(slug('unicode ♥ is ☢')) // yes!
// > unicode-love-is-radioactive

print(slug('i ♥ unicode', '_')) // If you prefer something else than `-` as separator
// > i_love_unicode

slug.charmap['♥'] = 'freaking love' // change default charmap or use option {charmap:{…}} as 2. argument
print(slug('I ♥ UNICODE'))
// > I-freaking-love-UNICODE

print(slug('☏-Number', {lower: true})) // If you prefer lower case
// > telephone-number

print(slug('i <3 unicode'))
// > i-love-unicode
