deep-keywords
v0.1.0
Published
Create a list of keywords based on the texts found
Downloads
8
Readme
Deep-Keywords
keyword generation tool
* does not accept list elements
Using with texts
const deepKeywords = require('deep-keywords')
console.log(
deepKeywords.text(
'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque eget turpis id massa iaculis gravida.',
),
)
/* returns [
'lorem', 'ipsum',
'dolor', 'sit',
'amet', 'consectetur',
'adipiscing', 'elit',
'quisque', 'eget',
'turpis', 'id',
'massa', 'iaculis',
'gravida'
]
*/
Using with objects
const deepKeywords = require('deep-keywords')
console.log(
deepKeywords.text(
{
name: 'Lorem ipsum dolor sit',
meta: {
type: 'Quisque eget turpis',
},
},
['name', 'meta.type'],
),
)
/*
returns [
'lorem', 'ipsum',
'dolor', 'sit',
'quisque', 'eget',
'turpis'
]
*/